/**
 * Event Booking System Styles
 */

/* Thank You Page */
.booking-success {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Form Processing Loader - Exact Match to Image */
.form-processing-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.form-processing-loader .loader-content {
    text-align: center;
}

/* Orange Circular Loader */
.form-processing-loader .circular-loader {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #eb6d1f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-processing-loader .loader-text {
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide form content when processing */
.booking-form-wrapper {
    position: relative;
    min-height: 400px;
}

.booking-form-wrapper.processing .booking-form-content {
    display: none;
}

.booking-form-wrapper.processing .form-processing-loader {
    display: flex;
}

/* Default hide the loader */
.form-processing-loader {
    display: none;
}

/* Custom Alert Modal */
#custom-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.alert-message {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.close-alert {
    background: linear-gradient(97deg, rgb(235, 109, 31) 0%, rgb(133, 62, 18) 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.close-alert:hover {
    transform: translateY(-2px);
}

/* Progress Bar */
.booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

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

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

.progress-step .step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: linear-gradient(97deg, rgb(235, 109, 31) 0%, rgb(133, 62, 18) 100%);
    color: white;
}

.progress-step .step-title {
    display: block;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.progress-step.active .step-title {
    color: #eb6d1f;
    font-weight: 600;
}

/* Form Steps */
.booking-step {
    display: none;
    animation: fadeIn 0.3s;
}

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

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

.booking-step h3 {
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eb6d1f;
}

.booking-step h4 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Event Details Summary */
.event-details-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
	align-items: center;
    gap: 20px;
}

.detail-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-row label {
    font-weight: 600;
    color: #495057;
    width: 150px;
    flex-shrink: 0;
}

.detail-row span {
    color: #333;
}

.available-seats {
    color: #28a745;
    font-weight: bold;
}

/* Terms Container */
.terms-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.terms-container::-webkit-scrollbar {
    width: 8px;
}

.terms-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-container::-webkit-scrollbar-thumb {
    background: #eb6d1f;
    border-radius: 4px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
display: flex;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  align-items: center;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #eb6d1f;
    box-shadow: 0 0 0 3px rgba(235, 109, 31, 0.1);
}

.form-group input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* File Upload */
input[type="file"] {
    padding: 8px 0;
}

/* Checkout Summary */
.checkout-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.checkout-summary h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.summary-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #333;
    border-bottom: none;
    font-size: 18px;
    font-weight: bold;
    color: #eb6d1f;
}

.summary-row label {
    font-weight: 600;
    color: #495057;
}

.summary-row input[type="number"] {
    width: 80px;
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    text-align: center;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 30px;
}

.payment-methods h4 {
    margin-bottom: 20px;
    color: #333;
}

.payment-method {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: #eb6d1f;
    background: #fef5f0;
}

.payment-method input[type="radio"] {
    margin-right: 10px;
}

.payment-method input[type="radio"]:checked + span {
    font-weight: 600;
    color: #eb6d1f;
}

.bank-details {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 14px;
}

/* Card Element (Stripe) */
#card-element {
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background: white;
    margin-bottom: 20px;
}


/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.form-navigation button {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
}

.btn-next,
.btn-submit {
    background: linear-gradient(97deg, rgb(235, 109, 31) 0%, rgb(133, 62, 18) 100%);
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 109, 31, 0.3);
}

.btn-submit {
    padding: 14px 40px;
    font-size: 18px;
}

/* Loading State */
#booking-loading {
    text-align: center;
    padding: 40px;
}

.loader {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #eb6d1f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
#booking-message {
    margin-top: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Validation Errors */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
}

.form-group .error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-progress {
        flex-direction: column;
        align-items: center;
    }
    
    .booking-progress::before {
        display: none;
    }
    
    .progress-step {
        margin-bottom: 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-row label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-navigation button {
        width: 100%;
    }
}

/* Thank You Page Styles */
.booking-success {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(97deg, rgb(235, 109, 31) 0%, rgb(133, 62, 18) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.booking-details-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.booking-details-card h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eb6d1f;
}

.booking-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.booking-info-row:last-child {
    border-bottom: none;
}

.booking-info-row label {
    font-weight: 600;
    color: #666;
}

.booking-info-row span {
    color: #333;
    font-weight: 500;
}

/* Event Dates Display - Enhanced Design */
.event-dates-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1px solid #e9ecef;
    width: 100%;
}

.event-date-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 50px;
    width: 100%;
}

.event-date-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #eb6d1f, #ff8c42);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.event-date-item:hover {
    border-color: #eb6d1f;
    box-shadow: 0 4px 12px rgba(235, 109, 31, 0.15);
    transform: translateY(-1px);
}

.event-date-item:hover::before {
    transform: scaleX(1);
}

.event-date-item i {
    font-size: 16px;
    color: #eb6d1f;
    margin-right: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.event-date-item:hover i {
    color: #ff8c42;
    transform: scale(1.05);
}

.event-date-item .date-text {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 480px) {
    .event-dates-display {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .event-date-item {
        padding: 8px 10px;
        min-height: 45px;
    }
    
    .event-date-item i {
        font-size: 14px;
        margin-right: 6px;
    }
    
    .event-date-item .date-text {
        font-size: 12px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .event-dates-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .event-date-item {
        padding: 9px 11px;
        min-height: 48px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .event-dates-display {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1025px) {
    .event-dates-display {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}
