/**
 * ═══════════════════════════════════════════════════════════════════
 * ATC Premium Booking Modal Styles
 * Make My Trip-like premium booking wizard
 * ═══════════════════════════════════════════════════════════════════
 */

/* ==================== BOOKING MODAL ==================== */
.atc-premium-booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
}

.atc-premium-booking-modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease-out, visibility 0s linear 0s;
}

.atc-premium-booking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.atc-premium-booking-modal.active .atc-premium-booking-overlay {
    opacity: 1;
}

.atc-premium-booking-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 40px auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.atc-premium-booking-modal.active .atc-premium-booking-content {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== BOOKING HEADER ==================== */
.atc-premium-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.atc-premium-booking-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.atc-premium-booking-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.atc-premium-booking-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ==================== BOOKING STEPS ==================== */
.atc-premium-booking-steps {
    display: flex;
    justify-content: space-between;
    padding: 25px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.atc-booking-step {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    position: relative;
}

.atc-booking-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 60px;
    right: -50%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.atc-booking-step.completed:not(:last-child)::after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.atc-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.atc-booking-step.active .atc-step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.atc-booking-step.completed .atc-step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.atc-step-info {
    flex: 1;
}

.atc-step-title {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.atc-booking-step.active .atc-step-title {
    color: #667eea;
}

.atc-step-desc {
    font-size: 12px;
    color: #64748b;
}

/* ==================== BOOKING BODY ==================== */
.atc-premium-booking-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    min-height: 300px;
}

.atc-booking-form-section {
    display: none;
}

.atc-booking-form-section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== BOOKING FORM ==================== */
.atc-premium-booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.atc-premium-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.atc-premium-form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.atc-premium-form-group input,
.atc-premium-form-group textarea,
.atc-premium-form-group select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
    color: #1e293b;
}

.atc-premium-form-group input:focus,
.atc-premium-form-group textarea:focus,
.atc-premium-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.atc-premium-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==================== BOOKING FOOTER ==================== */
.atc-premium-booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 2px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

.atc-booking-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.atc-booking-total-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

#atc-booking-total-amount {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.atc-booking-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.atc-btn-nav {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.atc-btn-nav-back {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.atc-btn-nav-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.atc-btn-nav-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.atc-btn-nav-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.atc-btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== BOOKING PACKAGE CARD ==================== */
.atc-booking-package-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 20px;
}

.atc-booking-package-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .atc-premium-booking-modal {
        padding: 10px;
    }
    
    .atc-premium-booking-content {
        max-width: 100%;
        margin: 20px 0;
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .atc-premium-booking-header {
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .atc-premium-booking-header h2 {
        font-size: 20px;
    }
    
    .atc-premium-booking-steps {
        padding: 20px 15px;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .atc-booking-step {
        flex: 1 1 100%;
    }
    
    .atc-booking-step:not(:last-child)::after {
        display: none;
    }
    
    .atc-step-info {
        display: none;
    }
    
    .atc-premium-booking-body {
        padding: 20px;
    }
    
    .atc-premium-booking-footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 0 0 16px 16px;
    }
    
    .atc-booking-total {
        width: 100%;
        text-align: center;
    }
    
    .atc-booking-nav {
        width: 100%;
        flex-direction: column;
    }
    
    .atc-btn-nav {
        width: 100%;
    }
    
    .atc-booking-package-card {
        flex-direction: column;
    }
    
    .atc-booking-package-card img {
        width: 100%;
        height: 200px;
    }
}

/* ==================== BODY SCROLL LOCK ==================== */
body.atc-modal-open {
    overflow: hidden;
}

