/**
 * Event Booking Management - Full Page Booking System Styles
 * Mobile-first responsive design
 */

/* ========================================
   LAYOUT & CONTAINER
   ======================================== */

.ebm-booking-page-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
    /* Center the booking container horizontally on all themes */
    display: flex;
    justify-content: center;
}

.ebm-booking-container {
    max-width: 1360px;
    margin: 0 auto; /* keep auto margins for safety */
    padding: 0 20px;
}

/* ========================================
   PROGRESS INDICATOR
   ======================================== */

.ebm-booking-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ebm-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.ebm-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.ebm-progress-step.active .ebm-step-number {
    background: #0d6efd;
    color: white;
    transform: scale(1.1);
}

.ebm-progress-step.completed .ebm-step-number {
    background: #198754;
    color: white;
}

.ebm-step-label {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

.ebm-progress-step.active .ebm-step-label {
    color: #0d6efd;
    font-weight: 600;
}

.ebm-progress-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 10px;
    position: relative;
    top: -20px;
}

.ebm-progress-line.completed {
    background: #198754;
}

/* ========================================
   MAIN CONTENT LAYOUT
   ======================================== */

.ebm-booking-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1180px;
    margin: 0 auto;
}

.ebm-booking-main {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ebm-booking-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* ========================================
   HEADERS
   ======================================== */

.ebm-booking-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.ebm-back-to-event {
    display: inline-block;
    color: #6c757d;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.ebm-back-to-event:hover {
    color: #0d6efd;
}

.ebm-booking-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #212529;
}

.ebm-booking-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

.ebm-event-meta-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.ebm-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
}

.ebm-icon {
    font-size: 18px;
}

/* ========================================
   FORM SECTIONS
   ======================================== */

.ebm-form-section {
    margin-bottom: 30px;
}

.ebm-section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #212529;
}

/* ========================================
   TICKETS & SERVICES
   ======================================== */

.ebm-ticket-list,
.ebm-service-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ebm-ticket-item,
.ebm-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ebm-ticket-item:hover,
.ebm-service-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.ebm-ticket-info,
.ebm-service-info {
    flex: 1;
}

.ebm-ticket-name,
.ebm-service-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #212529;
}

.ebm-ticket-price,
.ebm-service-price {
    font-size: 16px;
    font-weight: 600;
    color: #0d6efd;
    margin: 0 0 8px 0;
}

.ebm-ticket-description,
.ebm-service-description {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Quantity Controls */
.ebm-ticket-quantity,
.ebm-service-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ebm-qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    color: #212529; /* ensure + / − are visible */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebm-qty-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd; /* highlight symbol on hover */
}

.ebm-qty-input {
    width: 60px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* ========================================
   PAYMENT OPTIONS
   ======================================== */

.ebm-payment-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ebm-payment-option-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
}

.ebm-payment-option-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15);
}

.ebm-payment-option-label {
    display: block;
    cursor: pointer;
}

.ebm-payment-option-label input[type="radio"] {
    display: none;
}

.ebm-option-content {
    padding: 20px 22px;
    background: white;
    transition: all 0.3s ease;
}

.ebm-payment-option-label input:checked ~ .ebm-option-content {
    background: linear-gradient(135deg, #e7f1ff 0%, #cfe2ff 100%);
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.15);
}

.ebm-option-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ebm-option-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.ebm-option-info {
    flex: 1;
}

.ebm-option-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #212529;
}

.ebm-option-info p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.ebm-option-check {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: transparent; /* hide checkmark until selected */
    background: #e9ecef;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ebm-payment-option-label input:checked ~ .ebm-option-content .ebm-option-check {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff; /* reveal checkmark when selected */
}

/* Installment Plans */
.ebm-installment-plans {
    padding: 16px 22px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.ebm-plans-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #495057;
}

.ebm-installment-plan-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ebm-installment-plan-label:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

/* Improve radio alignment bullets for plans */
.ebm-installment-plan-label input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.ebm-plan-content {
    flex: 1;
}

.ebm-plan-name {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
    margin-bottom: 3px;
}

.ebm-plan-description {
    font-size: 13px;
    color: #6c757d;
}

/* Tidy up plan checkmark appearance */
.ebm-plan-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent; /* hide until selected */
    background: #e9ecef;
    transition: all 0.3s ease;
    opacity: 1;
    flex-shrink: 0;
}

.ebm-installment-plan-label input:checked ~ .ebm-plan-content ~ .ebm-plan-check {
    background: #198754;
    border-color: #198754;
    color: #ffffff; /* show checkmark */
}

.ebm-radio-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ebm-radio-label:hover {
    border-color: #0d6efd;
    background: #f8f9fa;
}

.ebm-radio-label input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.ebm-radio-label input[type="radio"]:checked + .ebm-radio-custom,
.ebm-radio-label:has(input:checked) {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.ebm-radio-text {
    font-weight: 500;
}

.ebm-split-plans {
    margin-left: 30px;
    padding-left: 20px;
    border-left: 3px solid #e9ecef;
}

.ebm-plan-label {
    padding: 12px 15px !important;
}

/* ========================================
   PAYMENT METHODS
   ======================================== */

.ebm-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ebm-payment-method-card {
    display: block;
    cursor: pointer;
}

.ebm-payment-method-card input[type="radio"] {
    display: none;
}

.ebm-method-content {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    gap: 15px;
}

.ebm-payment-method-card:hover .ebm-method-content {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.ebm-payment-method-card input:checked ~ .ebm-method-content {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.ebm-method-icon {
    font-size: 32px;
}

.ebm-method-info {
    flex: 1;
}

.ebm-method-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.ebm-method-info p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.ebm-method-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.ebm-payment-method-card input:checked ~ .ebm-method-content .ebm-method-check {
    opacity: 1;
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* ========================================
   FORMS
   ======================================== */

.ebm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.ebm-form-group {
    display: flex;
    flex-direction: column;
}

.ebm-form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.ebm-input,
.ebm-input[type="text"],
.ebm-input[type="email"],
.ebm-input[type="tel"],
.ebm-input[type="number"],
textarea.ebm-input,
select.ebm-input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ebm-input:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.required {
    color: #dc3545;
}

.ebm-field-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* ========================================
   ATTENDEE CARDS
   ======================================== */

.ebm-attendee-card {
    padding: 25px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #f8f9fa;
}

.ebm-attendee-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

/* Wider layout for attendee fields */
.ebm-attendee-fields-wide {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
}

/* Billing fields grid (reuse wide layout) */
.ebm-billing-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 15px;
}

.ebm-attendee-fields .ebm-form-group {
    margin-bottom: 0;
}

/* Billing Section */
.ebm-billing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #0d6efd;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.1);
}

.ebm-billing-section .ebm-section-title {
    color: #0d6efd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ebm-attendee-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ebm-copy-from-first,
.ebm-btn-link {
    background: none;
    border: none;
    color: #0d6efd;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.ebm-copy-from-first:hover,
.ebm-btn-link:hover {
    color: #0a58ca;
}

/* ========================================
   TERMS & CONDITIONS
   ======================================== */

.ebm-terms-agreement {
    padding: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
}

.ebm-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.ebm-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ebm-checkbox-text {
    font-weight: 500;
    line-height: 1.6;
}

.ebm-checkbox-text a {
    color: #0d6efd;
    text-decoration: underline;
}

/* ========================================
   CANCELLATION POLICY TABLE
   ======================================== */

.ebm-cancellation-policy {
    overflow-x: auto;
}

.ebm-policy-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

.ebm-policy-table th,
.ebm-policy-table td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #e9ecef;
    font-size: 13px;
    line-height: 1.4;
}

.ebm-policy-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 12px;
}

/* Tickets cancellation table - mild red background */
#ebm-tickets-cancellation-policy {
    background-color: #fee;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

#ebm-tickets-cancellation-policy .ebm-policy-table {
    background-color: transparent;
}

/* Services cancellation table - mild orange background */
#ebm-services-cancellation-policy {
    background-color: #fff4e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

#ebm-services-cancellation-policy .ebm-policy-table {
    background-color: transparent;
}

/* Cancellation Policy title - red color with icon */
.ebm-cancellation-policy-title {
    color: #dc3545 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Proper spacing for cancellation section */
.ebm-cancellation-charges-section {
    margin-top: 30px;
}

/* ========================================
   TERMS & CONDITIONS SECTION
   ======================================== */

.ebm-terms-agreement-section {
    margin-top: 30px;
}

.ebm-terms-checkboxes {
    margin-top: 20px;
}

.ebm-checkbox-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.ebm-checkbox-item:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ebm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.ebm-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #0d6efd;
}

.ebm-checkbox-text {
    flex: 1;
    line-height: 1.6;
    color: #495057;
    font-size: 14px;
}

.ebm-terms-link {
    color: #0d6efd;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ebm-terms-link:hover {
    color: #0a58ca;
    text-decoration: none;
}

/* Terms Modal */
#ebm-terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

#ebm-terms-modal .ebm-modal-content {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#ebm-terms-modal .ebm-modal-header {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 24px;
    padding-right: 40px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

#ebm-terms-modal .ebm-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    color: #495057;
    line-height: 1.8;
    font-size: 14px;
}

#ebm-terms-modal .ebm-modal-body h3 {
    color: #2d3748;
    margin-top: 20px;
    margin-bottom: 10px;
}

#ebm-terms-modal .ebm-modal-body p {
    margin-bottom: 15px;
}

#ebm-terms-modal .ebm-modal-body ul,
#ebm-terms-modal .ebm-modal-body ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

#ebm-terms-modal .ebm-modal-body li {
    margin-bottom: 8px;
}

#ebm-close-terms-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#ebm-close-terms-modal:hover {
    background: #f8f9fa;
    color: #212529;
}

/* ========================================
   BOOKING SUMMARY SIDEBAR
   ======================================== */

.ebm-booking-summary {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ebm-summary-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.ebm-summary-section {
    margin-bottom: 20px;
}

.ebm-summary-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #6c757d;
    text-transform: uppercase;
}

.ebm-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.ebm-item-name {
    font-size: 14px;
    color: #495057;
}

.ebm-item-price {
    font-weight: 600;
    color: #212529;
}

.ebm-item-price .woocommerce-Price-currencySymbol {
    font-family: inherit;
    margin-right: 2px;
}

.ebm-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 2px solid #212529;
    margin-top: 20px;
}

.ebm-total-label {
    font-size: 18px;
    font-weight: 700;
}

.ebm-total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #0d6efd;
}

/* ========================================
   BUTTONS
   ======================================== */

.ebm-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.ebm-btn {
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.ebm-btn-primary {
    background: #0d6efd;
    color: white;
    border: 2px solid #0d6efd;
}

.ebm-btn-primary:hover {
    background: #0a58ca;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.ebm-btn-secondary {
    background: white;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.ebm-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #6c757d;
}

.ebm-btn-outline {
    background: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.ebm-btn-outline:hover {
    background: #0d6efd;
    color: white;
}

/* ========================================
   CONFIRMATION PAGE
   ======================================== */

.ebm-confirmation-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.ebm-verification-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ebm-verification-title {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.ebm-verification-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.ebm-confirmation-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ebm-confirmation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.ebm-confirmation-left,
.ebm-confirmation-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .ebm-confirmation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.ebm-order-info-card,
.ebm-order-summary-card {
    margin-bottom: 30px;
}

.ebm-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ebm-info-item {
    display: flex;
    flex-direction: column;
}

.ebm-info-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
}

.ebm-info-value {
    font-size: 16px;
    color: #212529;
    font-weight: 500;
}

.ebm-confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.ebm-next-steps {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ebm-next-steps h3 {
    margin: 0 0 20px 0;
}

.ebm-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ebm-steps-list li {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.ebm-steps-list li:last-child {
    border-bottom: none;
}

.ebm-step-icon {
    font-size: 24px;
    flex-shrink: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .ebm-booking-content {
        grid-template-columns: 1fr;
    }
    
    .ebm-booking-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .ebm-booking-progress {
        padding: 20px 15px;
    }
    
    .ebm-step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .ebm-step-label {
        font-size: 12px;
    }
    
    .ebm-booking-main {
        padding: 20px;
    }
    
    .ebm-booking-title {
        font-size: 24px;
    }
    
    .ebm-form-row {
        grid-template-columns: 1fr;
    }
    
    .ebm-form-actions {
        flex-direction: column-reverse;
    }
    
    .ebm-btn {
        width: 100%;
    }
    
    .ebm-info-grid {
        grid-template-columns: 1fr;
    }

    .ebm-attendee-fields-wide {
        grid-template-columns: 1fr;
    }
    .ebm-billing-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ebm-booking-page-wrapper {
        padding: 10px 0;
    }
    
    .ebm-booking-container {
        padding: 0 10px;
    }
    
    .ebm-step-label {
        display: none;
    }
    
    .ebm-ticket-item,
    .ebm-service-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .ebm-ticket-quantity,
    .ebm-service-quantity {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   NOTICES
   ======================================== */

.ebm-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ebm-notice-error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.ebm-notice-success {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.ebm-notice-info {
    background: #cfe2ff;
    border: 1px solid #b6d4fe;
    color: #084298;
}

/* Validation states for age input - Legacy support */
.ebm-age-input {
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
}

/* When using icon-based validation (new approach), remove background image */
.ebm-age-input-wrapper .ebm-age-input {
    padding-right: 12px; /* Standard padding when icon is separate */
    background-image: none;
}

.ebm-age-input.ebm-valid {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.ebm-age-input.ebm-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Fallback for age inputs without wrapper (legacy) */
.ebm-age-input:not(.ebm-age-input-wrapper .ebm-age-input).ebm-valid {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23198754' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'%3E%3C/path%3E%3C/svg%3E");
}

.ebm-age-input:not(.ebm-age-input-wrapper .ebm-age-input).ebm-invalid {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

/* ========================================
   ERROR NOTICE & PAYMENT INSTRUCTIONS
   ======================================== */

.ebm-error-notice {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.ebm-error-notice h3 {
    margin: 0 0 10px 0;
    color: #721c24;
}

.ebm-error-notice p {
    margin: 0;
}

.ebm-payment-instructions {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.ebm-payment-instructions h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.ebm-payment-instructions div {
    color: #6c757d;
    line-height: 1.5;
}

/* Split Payment Summary Styles */
.ebm-split-payment-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.ebm-split-payment-summary h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #495057;
}

.ebm-installment-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.ebm-installment-line:last-child {
    border-bottom: none;
}

.ebm-installment-line.ebm-current-installment {
    background: rgba(255, 152, 0, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.ebm-installment-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ebm-installment-label {
    font-weight: 600;
    color: #495057;
}

.ebm-installment-date {
    font-size: 0.875rem;
    color: #6c757d;
}

.ebm-installment-amount {
    font-weight: 600;
    color: #198754;
}

/* ========================================
   AGE VALIDATION ICONS
   ======================================== */

.ebm-age-group {
    position: relative;
}

.ebm-age-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ebm-age-input-wrapper .ebm-age-input {
    flex: 1;
}

.ebm-age-validation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.3s ease;
    animation: fadeInScale 0.3s ease;
}

.ebm-age-validation-icon.ebm-age-valid-icon {
    background-color: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.ebm-age-validation-icon.ebm-age-invalid-icon {
    background-color: #ef4444;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.ebm-age-input.ebm-age-valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.ebm-age-input.ebm-age-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tooltip on hover */
.ebm-age-validation-icon {
    cursor: help;
    position: relative;
}

.ebm-age-validation-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 10px;
    background-color: #1f2937;
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 1000;
    font-weight: normal;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ebm-age-validation-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 5px solid transparent;
    border-top-color: #1f2937;
    z-index: 1000;
}

