/* ============================================
   COSTI MOBILE BARBER - BOOKING PAGE STYLES
   ============================================ */

/* Contact Sidebar */
.contact-sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.contact-sidebar .bg-dark {
    transition: var(--transition);
}

.contact-sidebar .bg-dark:hover {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* Booking Wizard Enhancements */
.booking-wizard {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.booking-wizard::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
    padding: 0 10px;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.1);
    transform: translateY(-50%);
    z-index: 1;
}

.step-dot {
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    flex-shrink: 0;
    cursor: default;
}

.step-dot:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.step-dot.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(201,160,83,0.4);
    transform: scale(1.1);
}

.step-dot.completed {
    background: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    color: #000;
}

.step-label {
    position: absolute;
    top: 45px;
    width: 100px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* Form Steps Animation */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

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

/* Form Input Styling */
.form-control,
.form-select {
    background-color: var(--bg-secondary);
    border: 1px solid #333;
    color: var(--text-light);
    padding: 0.85rem;
    border-radius: 6px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(201, 160, 83, 0.25);
    color: #fff;
    background-color: #1a1b20;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
}

.invalid-feedback {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* ✅ Date & Time Input Styling (Optional Enhancements) */
#booking-date,
#booking-time {
    background-color: var(--bg-secondary);
    border: 1px solid #333;
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

#booking-date:focus,
#booking-time:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(201, 160, 83, 0.25);
    outline: none;
    background-color: #1a1b20;
}

/* Style browser-native date/time pickers */
#booking-date::-webkit-calendar-picker-indicator,
#booking-time::-webkit-calendar-picker-indicator {
    filter: invert(0.8) brightness(1.2);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#booking-date::-webkit-calendar-picker-indicator:hover,
#booking-time::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Firefox date input styling */
#booking-date::-moz-focus-inner {
    border: 0;
}

/* Mobile optimization - prevent zoom on focus */
@media (max-width: 767px) {
    #booking-date,
    #booking-time,
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.85rem;
    }
}

/* Price Summary Box */
.price-summary {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.price-row:last-of-type {
    margin-bottom: 0;
}

.price-total {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* PayPal Container */
#paypal-button-container {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#paypal-button-container .alert {
    margin: 0 !important;
}

.paypal-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5;
}

.paypal-note i {
    vertical-align: -2px;
}

/* Button Enhancements */
.btn-gold {
    background: var(--accent-gold);
    color: #000 !important;
    border: 2px solid var(--accent-gold);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-gold:hover::after {
    left: 100%;
}

.btn-gold:hover,
.btn-gold:focus {
    background: transparent;
    color: var(--accent-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 160, 83, 0.3);
}

.btn-gold:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-outline-gold {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: #000 !important;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-light);
}

/* Success Message Styling */
#form-success {
    animation: slideUp 0.5s ease-out;
}

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

#form-success i {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Alert Styling */
#booking-alert {
    animation: fadeIn 0.3s ease-out;
}

#booking-alert.alert-success {
    background: rgba(25, 135, 84, 0.15);
    border-color: #198754;
    color: #75b798;
}

#booking-alert.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
    color: #ea868f;
}

#booking-alert.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    border-color: #ffc107;
    color: #ffd97d;
}

/* Hover Effects for Links */
.hover-gold:hover {
    color: var(--accent-gold) !important;
    transition: color 0.2s ease;
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 998;
    background: #25D366;
    color: #fff !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #fff !important;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
    background: var(--accent-gold);
    color: #000 !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: var(--accent-gold-hover);
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991.98px) {
    .contact-sidebar {
        position: static;
        top: auto;
        margin-bottom: 2rem;
    }
    
    .step-label {
        display: none; /* Hide labels on mobile to save space */
    }
    
    .booking-wizard {
        padding: 2rem 1.5rem;
    }
    
    .steps-indicator {
        padding: 0 5px;
    }
    
    .price-summary {
        padding: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .booking-wizard {
        padding: 1.5rem 1rem;
    }
    
    .steps-indicator {
        margin-bottom: 2rem;
    }
    
    .step-dot {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .price-row {
        font-size: 0.9rem;
    }
    
    .price-total {
        font-size: 1.2rem;
    }
    
    /* Stack date/time inputs on very small screens */
    .col-7, .col-5 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    #booking-time {
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .steps-indicator {
        margin-bottom: 1.5rem;
    }
    
    .step-dot {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .btn-gold,
    .btn-outline-gold {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between .btn {
        width: 100%;
    }
}

/* ============================================
   ACCESSIBILITY & PRINT
   ============================================ */

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .whatsapp-float,
    .back-to-top,
    #paypal-button-container,
    .btn {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .booking-wizard {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}