/* Enhanced Booking Form Styling - Improved UX */

/* Event Details Wrapper - Compact for top positioning */
.event-details-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 80px;
    max-height: 90vh;
    overflow-y: auto;
}

.event-details-wrapper h3 {
    margin-top: 0;
    font-size: 20px;
}

/* Step Indicator - Multi-Step Booking Process */
.booking-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.booking-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.booking-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.booking-step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #999;
    font-size: 18px;
    transition: all 0.3s;
}

.booking-step.active .booking-step-circle {
    background: linear-gradient(135deg, #1A3372 0%, #1A3372 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 51, 114, 0.3);
    transform: scale(1.1);
}

.booking-step.completed .booking-step-circle {
    background: #28a745;
    color: white;
}

.booking-step.completed .booking-step-circle::after {
    content: '✓';
    font-size: 20px;
}

.booking-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
}

.booking-step.active .booking-step-label {
    color: #1A3372;
    font-weight: 700;
}

.booking-step.completed .booking-step-label {
    color: #28a745;
}

/* Booking Section Container */
.booking-section {
    display: none;
    animation: slideIn 0.3s ease-out;
}

.booking-section.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers */
.booking-section-header {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.booking-section-header i {
    font-size: 24px;
    color: #1A3372;
}

/* Invoice Summary - Sticky Sidebar */
#invoice-summary-sticky {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    border: 2px solid #f0f0f0;
}

.invoice-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.invoice-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
}

.invoice-item.total {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #1A3372;
    margin-top: 10px;
    padding: 12px 0;
}

.invoice-item.total .amount {
    color: #1A3372;
    font-size: 18px;
}

#ticket-breakdown-invoice {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.6;
    border-left: 3px solid #1A3372;
}

#ticket-breakdown-invoice div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

/* Booking Card */
.booking-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #1A3372;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Form Group with Label */
.form-group-wrapper {
    margin-bottom: 20px;
}

.form-group-wrapper label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group-wrapper small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

.form-group-wrapper .required {
    color: #dc3545;
}

/* Improved Form Controls */
.form_control, input.form_control, select, textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s;
    font-family: inherit;
    background-color: #fff !important;
}

.form_control:focus, input.form_control:focus, select:focus, textarea:focus {
    border-color: #1A3372 !important;
    box-shadow: 0 0 0 3px rgba(26, 51, 114, 0.1) !important;
    outline: none;
}

.form_control::placeholder {
    color: #aaa;
}

/* Price List */
.price-list {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.price-list .price {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-list .price:last-child {
    border-bottom: none;
}

.price-list .price .base-color {
    font-size: 15px;
    font-weight: 700;
    color: #1A3372;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.price-item:last-child {
    border-bottom: none;
}

/* Ticket Selection */
.ticket-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ticket-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
    transition: all 0.3s;
}

.ticket-list li:hover {
    border-color: #1A3372;
    box-shadow: 0 2px 8px rgba(26, 51, 114, 0.1);
}

.ticket-list li label {
    font-weight: 600;
    margin-bottom: 0;
    color: #333;
    font-size: 15px;
    flex: 1;
}

.ticket-quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 4px;
    min-width: 120px;
}

.ticket-quantity-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    color: #1A3372;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ticket-quantity-control button:hover {
    background: #1A3372;
    color: #fff;
}

.ticket-quantity-control input {
    width: 45px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.ticket-quantity-control input:focus {
    outline: none;
}

/* Payment Method Selection - Radio Button Style */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method-option {
    position: relative;
}

.payment-method-option input[type="radio"] {
    display: none;
}

.payment-method-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    font-weight: 600;
    color: #666;
    min-height: 90px;
    text-align: center;
    font-size: 13px;
}

.payment-method-option input[type="radio"]:checked + label {
    border-color: #1A3372;
    background: linear-gradient(135deg, rgba(26, 51, 114, 0.1) 0%, rgba(26, 51, 114, 0.05) 100%);
    color: #1A3372;
    font-weight: 700;
}

.payment-method-option label i {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

/* Payment Gateway Sections */
#stripe-section, #razorpay-section, #payumoney-section {
    margin-top: 20px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #1A3372;
    display: none;
}

#stripe-section.active, #razorpay-section.active, #payumoney-section.active {
    display: block;
}

#card-element {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

#card-element:focus {
    border-color: #1A3372;
    box-shadow: 0 0 0 3px rgba(26, 51, 114, 0.1);
}

.gateway-desc {
    background: #e8f4f8;
    font-size: 13px;
    padding: 12px 15px;
    margin-bottom: 15px;
    color: #333;
    border-radius: 6px;
    border-left: 3px solid #1A3372;
}

/* Booking Actions */
.booking-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.booking-actions button, .booking-actions a {
    padding: 14px 25px !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: auto !important;
}

.booking-actions .main-btn {
    background: linear-gradient(135deg, #1A3372 0%, #1A3372 100%) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(26, 51, 114, 0.3);
    min-width: 150px;
}

.booking-actions .main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(26, 51, 114, 0.4);
}

.booking-actions .btn-secondary {
    background: #f5f7fa !important;
    color: #333 !important;
    border: 2px solid #ddd;
    min-width: 140px;
}

.booking-actions .btn-secondary:hover {
    background: #e8ecf1 !important;
    border-color: #999;
}

/* Helper Text and Validation */
.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.help-text i {
    color: #1A3372;
}

.form-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-alert i {
    font-size: 18px;
}

/* Date Picker Improvements */
#event-calendar {
    border: 2px solid #1A3372 !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    font-weight: 500;
    color: #333;
}

#event-calendar:focus {
    box-shadow: 0 0 0 3px rgba(26, 51, 114, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-progress-steps {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .booking-step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    #invoice-summary-sticky {
        position: static;
        margin-bottom: 25px;
    }

    .payment-methods {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }

    .booking-actions {
        flex-direction: column;
    }

    .booking-actions button, .booking-actions a {
        width: 100%;
        min-width: 100%;
    }

    .booking-section-header {
        font-size: 18px;
    }

    .invoice-header h4 {
        font-size: 18px;
    }
}

/* Additional Helpers */
.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.success-badge i {
    font-size: 14px;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #1A3372;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
}

.info-box strong {
    color: #1A3372;
}
