/* VTC CALCULATOR CUSTOM STYLES */
/* Glassmorphism & Layout */

#vtc-calculator {
    margin-top: -4rem;
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    /* Reduced from 2rem for mobile */
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    /* Crucial for padding */
}

@media (min-width: 768px) {
    #vtc-calculator {
        padding: 2rem;
    }
}

/* Hub Generator Overrides (if needed for specific margins) */
.hub-calculator-override {
    margin-top: 2rem !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

/* Header */
.vtc-calc-header {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #0F172A;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* Live Status Badge */
.vtc-live-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #10B981;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 16px;
    border-radius: 99px;
    width: fit-content;
    margin-inline: auto;
}

.pulsing-dot {
    display: block;
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

/* Vehicle Grid */
.vtc-vehicle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 1.2rem;
}

.vehicle-option {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

/* PHASE 2: Premium hover effect */
.vehicle-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.vehicle-option.selected {
    border: 1px solid #10B981;
    background: rgba(16, 185, 129, 0.05);
}

.vehicle-option .v-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.vehicle-option .v-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    /* ✅ Amélioration contraste WCAG AA (était #64748B) */
}

.vehicle-option.selected .v-label {
    color: #10B981;
}

/* Luggage Row */
.vtc-luggage-row {
    margin-bottom: 1.2rem;
}

.luggage-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 16px;
}

.luggage-label {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.luggage-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.luggage-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #CBD5E1;
    background: none;
    cursor: pointer;
    font-weight: bold;
    color: #475569;
}

#luggage-display {
    font-weight: 700;
    color: #0F172A;
    width: 20px;
    text-align: center;
}

/* Input Fields */
.vtc-input-wrapper {
    position: relative;
    /* margin-bottom handled by grid gap */
}

.vtc-input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.vtc-input-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.vtc-input-std {
    padding: 1rem 1.2rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    background: white;
    font-family: inherit;
    color: #334155;
    appearance: none;
    -webkit-appearance: none;
}

.vtc-input-std:focus {
    border-color: #10B981;
}

.input-icon-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.3rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

/* Flight Field */
#flight-field {
    display: none;
    animation: fadeIn 0.3s;
    margin-bottom: 12px;
}

/* Chips */
.vtc-chips-container {
    display: flex;
    gap: 8px;
    margin-bottom: 1.2rem;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    /* Center on index, flex-start on hubs? */
}

/* Submit Button */
#vtc-calc-btn {
    background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#vtc-calc-btn:disabled {
    opacity: 0.8;
    cursor: wait;
}

/* Animations */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PHASE 2: Premium Delight Animations */
@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.check-bounce {
    animation: checkBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* PHASE 3: Mobile Polishing & Responsiveness Fixes */
@media (max-width: 480px) {
    .vtc-vehicle-grid {
        gap: 6px;
    }

    .vehicle-option {
        padding: 8px 4px;
    }

    .vehicle-option .v-icon {
        font-size: 1.2rem;
    }

    .vehicle-option .v-label {
        font-size: 0.7rem;
    }

    .vtc-input-std {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
}

/* Fix for the overlapping 'Valider' button on small screens */
.vtc-phone-capture-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 4px;
    margin-top: 10px;
}

.vtc-phone-capture-wrap .vtc-input-std {
    border: none !important;
    padding: 0.75rem !important;
    margin-bottom: 0 !important;
}

@media (max-width: 380px) {
    .vtc-phone-capture-wrap {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }

    .vtc-phone-capture-wrap .vtc-input-std {
        border: 1px solid #E2E8F0 !important;
        margin-bottom: 8px !important;
        border-radius: 12px !important;
        width: 100% !important;
    }

    .vtc-phone-capture-wrap button {
        width: 100% !important;
        border-radius: 12px !important;
    }
}

/* Style for the social proof fires on mobile */
.vtc-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 1rem;
}

/* SHARED CHIP STYLES (MATCHING VTC/INDEX.HTML) */
.chips-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    justify-content: center;
}

.chip {
    font-size: 0.75rem;
    background: #F1F5F9;
    color: #64748B;
    padding: 0.4rem 0.8rem;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chip:hover {
    background: white;
    color: #10B981;
    border-color: #10B981;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}