/* Booking Modal Styles */
.afo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
}

.afo-summary-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.afo-summary-item {
    flex: 1;
    min-width: 200px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    font-size: 14px;
}

.afo-summary-price {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 8px;
    text-align: center;
    border: 2px solid #10b981;
}

.afo-price-badge {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #065f46;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.afo-price-value {
    font-size: 28px;
    font-weight: 800;
    color: #047857;
    line-height: 1;
}


.afo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.afo-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 800px;
    width: 92%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.afo-modal-header {
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
}

.afo-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.afo-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.afo-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    animation: bounceOut 0.4s;
}

@keyframes bounceOut {
    0% { transform: scale(1); opacity: 1; }
    60% { transform: scale(1.1); opacity: 0.7; }
    80% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(0.7); opacity: 0; }
}

.afo-btn-secondary.afo-modal-close:hover {
    animation: fadeOut 0.4s;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.afo-modal-body {
    padding: 16px 18px;
}

.afo-booking-section {
    margin-bottom: 18px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.afo-booking-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.afo-booking-summary {
    padding: 20px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    border: 2px solid #667eea;
    margin-bottom: 30px;
}

.afo-booking-summary h3 {
    margin: 0 0 15px 0;
    color: #667eea;
}

.afo-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px;
}

.afo-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.afo-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.afo-form-group input,
.afo-form-group select,
.afo-form-group textarea {
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    font-size: 14px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 500;
    transition: all 0.2s ease;
}

.afo-form-group input:focus,
.afo-form-group select:focus,
.afo-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.afo-passenger-card {
    padding: 8px;
    background: #ffffff;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    margin-bottom: 8px;
}

.afo-passenger-card-header {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.afo-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.afo-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.afo-booking-disclaimer {
    margin-top: 15px;
    padding: 12px 16px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
}

.afo-booking-disclaimer strong {
    color: #78350f;
}

.afo-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

.afo-btn-primary,
.afo-btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.afo-btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.afo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.5);
}

.afo-btn-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.afo-btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.afo-btn-secondary:hover {
    background: #f9fafb;
    border-color: #667eea;
}

/* Success Modal */
.afo-success-modal .afo-modal-body {
    text-align: center;
    padding: 50px 30px;
}

.afo-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.afo-booking-ref-display {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.afo-ref-code {
    font-size: 28px;
    font-weight: 800;
    color: #667eea;
    margin-top: 10px;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.afo-confirmation-text {
    color: #6b7280;
    margin-top: 20px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .afo-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .afo-modal-header,
    .afo-modal-body,
    .afo-modal-footer {
        padding: 20px;
    }
    
    .afo-form-row {
        grid-template-columns: 1fr;
    }
    
    .afo-modal-footer {
        flex-direction: column;
    }
    
    .afo-btn-primary,
    .afo-btn-secondary {
        width: 100%;
    }
}

/* Compact form helpers */
.afo-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.afo-me-fields {
    display: none;
    margin-top: 8px;
}

.afo-me-label {
    font-weight: 600;
}

.afo-booking-agent-note {
    font-size: 13px;
    color: #374151;
    margin-top: 8px;
}

.afo-confirm-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}
