/* ============================================
   BOOKING PAGE STYLES - Smart & Premium
   ============================================
   IMPORTANT: Uses ONLY main.css variables
   NO hardcoded colors - all from centralized main.css
   ============================================ */

/* ============================================
   PAGE LAYOUT
   ============================================ */

.booking-page {
    background: var(--light-bg);
}

.booking-main {
    padding: 60px 0;
    min-height: 50vh;
}

/* ============================================
   SMART HELPER ASSISTANT
   ============================================ */

.smart-helper-container {
    max-width: 900px;
    margin: 0 auto;
}

.smart-helper {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
    color: var(--white);
    border-radius: 15px;
    padding: 20px 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0, 168, 150, 0.2);
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.helper-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.helper-content {
    flex: 1;
}

.helper-text {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */

.booking-progress-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.booking-progress {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--border-gray);
    z-index: 0;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--lighter-gray);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 3px solid var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.step-icon {
    font-size: 1.5rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    color: var(--white);
    transform: scale(1.1);
}

.step.active .step-icon {
    opacity: 1;
    transform: scale(1.1);
}

.step.active .step-label {
    color: var(--primary-orange);
    font-weight: 600;
}

.step.completed .step-number {
    background: var(--primary-teal);
    color: var(--white);
}

.step.completed .step-icon {
    opacity: 1;
}

.step.completed .step-label {
    color: var(--primary-teal);
}

/* ============================================
   BOOKING CARD
   ============================================ */

.booking-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   FORM SECTIONS
   ============================================ */

.form-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-gray);
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.section-title i {
    color: var(--primary-orange);
    font-size: 1.3rem;
}

/* ============================================
   FORM LABELS
   ============================================ */

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: '*';
    color: var(--primary-red);
    margin-left: 4px;
}

.label-text {
    display: inline-block;
}

.label-status {
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    float: right;
}

/* ============================================
   SMART FIELD STATES
   ============================================ */

.smart-field .form-control {
    transition: all 0.3s ease;
}

/* User Filled State */
.smart-field .form-control.user-filled {
    border-color: var(--primary-teal);
    background: var(--teal-50);
}

.smart-field .user-filled ~ .label-status {
    color: var(--primary-teal);
}

/* Auto-filled by System */
.smart-field .form-control.auto-filled {
    border-color: var(--primary-orange);
    background: var(--orange-50);
    animation: gentle-pulse 2s ease-in-out;
}

.smart-field .auto-filled ~ .label-status {
    color: var(--primary-orange);
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

/* Locked/Committed State */
.smart-field .form-control.locked {
    border-color: var(--orange-600);
    background: var(--orange-50);
}

.smart-field .locked ~ .label-status {
    color: var(--orange-600);
}

/* ============================================
   FIELD HELPERS
   ============================================ */

.field-helper {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.4;
}

/* ============================================
   DURATION DISPLAY
   ============================================ */

.duration-display {
    background: linear-gradient(135deg, var(--teal-50) 0%, var(--teal-100) 100%);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.duration-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-teal);
}

.duration-info {
    flex: 1;
}

.duration-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.duration-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-teal);
}

/* ============================================
   FLEXIBLE DATES OPTION
   ============================================ */

.flexible-dates-option {
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
}

.form-check-label i {
    color: var(--primary-teal);
}

/* ============================================
   PACKAGE PREVIEW CARD
   ============================================ */

.package-preview-card {
    background: linear-gradient(135deg, var(--orange-50) 0%, var(--orange-100) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--orange-300);
}

.preview-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.preview-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.preview-duration {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.preview-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   DURATION MISMATCH PANEL
   ============================================ */

.duration-mismatch-panel .alert-warning {
    background: var(--orange-50);
    border-color: var(--orange-400);
    color: var(--text-primary);
}

.mismatch-details {
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
}

#user-dates-summary,
#package-duration-summary {
    color: var(--primary-orange);
    font-weight: 600;
}

/* ============================================
   BOOKING SUMMARY
   ============================================ */

.booking-summary-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 25px;
}

.summary-item {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--border-gray);
}

.summary-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.summary-item .badge {
    margin-top: 5px;
}

.summary-item .badge.bg-success {
    background: var(--primary-teal) !important;
}

.summary-item .badge.bg-warning {
    background: var(--orange-400) !important;
}

.summary-item .badge.bg-info {
    background: var(--teal-300) !important;
}

/* ============================================
   SUBMIT SECTION
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--primary-orange) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline-primary:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
}

.trust-indicators .text-primary {
    color: var(--primary-orange) !important;
}

.trust-indicators .text-success {
    color: var(--primary-teal) !important;
}

.trust-indicators .text-danger {
    color: var(--primary-red) !important;
}

/* ============================================
   ALERTS
   ============================================ */

.alert-success {
    background: var(--teal-50);
    color: var(--teal-900);
    border-color: var(--teal-200);
}

.alert-danger {
    background: var(--red-50);
    color: var(--red-900);
    border-color: var(--red-200);
}

.alert-warning {
    background: var(--orange-50);
    color: var(--orange-900);
    border-color: var(--orange-200);
}

.alert-info {
    background: var(--teal-50);
    color: var(--teal-900);
    border-color: var(--teal-200);
}

/* ============================================
   FORM VALIDATION
   ============================================ */

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.15);
}

.form-control.is-invalid {
    border-color: var(--primary-red);
}

.invalid-feedback {
    color: var(--primary-red);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .booking-card {
        padding: 25px 20px;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .smart-helper {
        flex-direction: column;
        text-align: center;
    }
    
    .booking-main {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.d-none {
    display: none !important;
}

/* Fade in animation for helper text */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}