/* ==========================================================================
   VTC Reservation — Independent Styles
   Clean, theme-compatible, no aggressive !important
   ========================================================================== */

#vtc-booking-app {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 20px 48px;
    box-sizing: border-box;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

#vtc-booking-app *,
#vtc-booking-app *::before,
#vtc-booking-app *::after {
    box-sizing: border-box;
}

#vtc-booking-app h1,
#vtc-booking-app h2,
#vtc-booking-app h3,
#vtc-booking-app h4 {
    margin: 0;
    padding: 0;
    color: #1a1a1a;
    background: transparent;
    border: none;
    box-shadow: none;
    font-style: normal;
}

#vtc-booking-app p {
    margin: 0;
    padding: 0;
}

#vtc-booking-app form {
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

#vtc-booking-app .vtc-booking-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

#vtc-booking-app .vtc-booking-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
}

#vtc-booking-app .vtc-booking-subtitle {
    font-size: 15px;
    color: #666;
}

/* ==========================================================================
   Step-by-Step Indicator
   ========================================================================== */

#vtc-booking-app .vtc-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

#vtc-booking-app .vtc-step-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 24px;
    cursor: pointer;
    background: #f0f0f0;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

#vtc-booking-app .vtc-step-tab.active {
    background: #1a1a1a;
    color: #fff;
}

#vtc-booking-app .vtc-step-tab.completed {
    background: #e8e8e8;
    color: #333;
}

#vtc-booking-app .vtc-step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

#vtc-booking-app .vtc-step-tab.active .vtc-step-number {
    background: #fff;
    color: #1a1a1a;
}

#vtc-booking-app .vtc-step-tab.completed .vtc-step-number {
    background: #333;
    color: #fff;
}

#vtc-booking-app .vtc-step-connector {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

#vtc-booking-app .vtc-step-connector.active {
    background: #1a1a1a;
}

/* ==========================================================================
   Step Content
   ========================================================================== */

#vtc-booking-app .vtc-step-content {
    display: none;
}

#vtc-booking-app .vtc-step-content.active {
    display: block;
}

#vtc-booking-app .vtc-step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

#vtc-booking-app .vtc-form-group {
    margin-bottom: 16px;
}

#vtc-booking-app .vtc-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

#vtc-booking-app .vtc-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: 48px;
}

#vtc-booking-app .vtc-form-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.15);
}

#vtc-booking-app .vtc-form-input::placeholder {
    color: #aaa;
}

#vtc-booking-app .vtc-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

#vtc-booking-app .vtc-textarea {
    resize: vertical;
    min-height: 72px;
}

/* ==========================================================================
   Geolocation Button
   ========================================================================== */

#vtc-booking-app .vtc-pickup-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

#vtc-booking-app .vtc-pickup-wrapper .vtc-form-input {
    padding-right: 44px;
    border-radius: 6px;
}

#vtc-booking-app .vtc-btn-locate {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    padding: 0;
    transition: color 0.15s ease, background 0.15s ease;
}

#vtc-booking-app .vtc-btn-locate:hover {
    color: #1a1a1a;
    background: #f0f0f0;
}

#vtc-booking-app .vtc-btn-locate.locating {
    color: #1a1a1a;
    animation: vtcPulse 1s ease infinite;
}

@keyframes vtcPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==========================================================================
   Radio Group
   ========================================================================== */

#vtc-booking-app .vtc-radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#vtc-booking-app .vtc-radio-item {
    flex: 1;
    position: relative;
    min-width: 0;
}

#vtc-booking-app .vtc-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

#vtc-booking-app .vtc-radio-text {
    display: block;
    padding: 9px 14px;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    background: #f0f0f0;
    transition: background 0.15s ease;
    min-height: 40px;
    line-height: 1.4;
}

#vtc-booking-app .vtc-radio-item input[type="radio"]:checked + .vtc-radio-text {
    background: #1a1a1a;
    color: #fff;
}

/* ==========================================================================
   Address Group
   ========================================================================== */

#vtc-booking-app .vtc-address-group {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
}

#vtc-booking-app .vtc-address-group .vtc-form-group {
    margin-bottom: 12px;
}

#vtc-booking-app .vtc-address-group .vtc-form-group:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Row / Col — always on same row
   ========================================================================== */

#vtc-booking-app .vtc-row {
    display: flex;
    gap: 12px;
}

#vtc-booking-app .vtc-col {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   Map
   ========================================================================== */

#vtc-booking-app .vtc-map-container {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
}

#vtc-booking-app .vtc-map {
    height: 180px;
    background: #f0f0f0;
}

#vtc-booking-app .vtc-route-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

#vtc-booking-app .vtc-route-item {
    text-align: center;
    padding: 14px 10px;
    border-right: 1px solid #e5e5e5;
}

#vtc-booking-app .vtc-route-item:last-child {
    border-right: none;
}

#vtc-booking-app .vtc-route-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

#vtc-booking-app .vtc-route-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

#vtc-booking-app .vtc-price-value {
    font-size: 18px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

#vtc-booking-app .vtc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, opacity 0.15s ease;
    line-height: 1.2;
    min-height: 48px;
    background: #f0f0f0;
    color: #1a1a1a;
}

#vtc-booking-app .vtc-btn:hover {
    background: #e0e0e0;
}

#vtc-booking-app .vtc-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

#vtc-booking-app .vtc-btn-primary {
    background: #1a1a1a;
    color: #fff;
}

#vtc-booking-app .vtc-btn-primary:hover {
    background: #333;
    color: #fff;
}

#vtc-booking-app .vtc-btn-secondary {
    background: #f0f0f0;
    color: #1a1a1a;
}

#vtc-booking-app .vtc-btn-secondary:hover {
    background: #e0e0e0;
}

#vtc-booking-app .vtc-btn-outline {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
}

#vtc-booking-app .vtc-btn-outline:hover {
    background: #f0f0f0;
}

#vtc-booking-app .vtc-btn-block {
    width: 100%;
}

#vtc-booking-app .vtc-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#vtc-booking-app .vtc-btn-group .vtc-btn-primary {
    flex: 1;
}

#vtc-booking-app .vtc-btn-group-step2 {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

#vtc-booking-app .vtc-btn-group-step2 .vtc-btn-secondary {
    flex: 0 0 auto;
}

#vtc-booking-app .vtc-btn-group-step2 .vtc-btn-primary {
    flex: 1;
}

/* ==========================================================================
   Vehicle Cards — Improved UI
   ========================================================================== */

#vtc-booking-app .vtc-vehicles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

#vtc-booking-app .vtc-vehicle-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

#vtc-booking-app .vtc-vehicle-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#vtc-booking-app .vtc-vehicle-card.selected {
    border-color: #1a1a1a;
    background: #fafafa;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

#vtc-booking-app .vtc-vehicle-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d5d5d5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    color: transparent;
    background: #fff;
}

#vtc-booking-app .vtc-vehicle-card.selected .vtc-vehicle-check {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    transform: scale(1.1);
}

#vtc-booking-app .vtc-vehicle-card.vtc-unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

#vtc-booking-app .vtc-vehicle-card.vtc-unavailable::after {
    content: 'Inadapté';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

#vtc-booking-app .vtc-vehicles-subtitle {
    font-size: 13px;
    color: #888;
    margin: -8px 0 16px 0;
}

#vtc-booking-app .vtc-vehicles-no-match {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 14px;
}

#vtc-booking-app .vtc-vehicle-info {
    flex: 1;
    min-width: 0;
}

#vtc-booking-app .vtc-vehicle-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

#vtc-booking-app .vtc-vehicle-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#vtc-booking-app .vtc-vehicle-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

#vtc-booking-app .vtc-vehicle-detail-item svg {
    flex-shrink: 0;
}

#vtc-booking-app .vtc-vehicle-price {
    flex-shrink: 0;
    text-align: right;
    min-width: 70px;
}

#vtc-booking-app .vtc-vehicle-price-value {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    color: #1a1a1a;
}

/* ==========================================================================
   Booking Summary
   ========================================================================== */

#vtc-booking-app .vtc-booking-summary {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

#vtc-booking-app .vtc-summary-route {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
}

#vtc-booking-app .vtc-summary-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 3px 0;
}

#vtc-booking-app .vtc-summary-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

#vtc-booking-app .vtc-dot-pickup { background: #1a1a1a; }
#vtc-booking-app .vtc-dot-destination { background: #888; }

#vtc-booking-app .vtc-summary-address {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

#vtc-booking-app .vtc-summary-line {
    width: 2px;
    height: 12px;
    background: repeating-linear-gradient(to bottom, #ccc 0px, #ccc 3px, transparent 3px, transparent 6px);
    margin-left: 3px;
}

#vtc-booking-app .vtc-summary-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

#vtc-booking-app .vtc-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

#vtc-booking-app .vtc-summary-row span:first-child {
    color: #888;
}

#vtc-booking-app .vtc-summary-row span:last-child {
    font-weight: 500;
}

#vtc-booking-app .vtc-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #e5e5e5;
}

#vtc-booking-app .vtc-summary-total > span:first-child {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

#vtc-booking-app .vtc-summary-price {
    font-size: 22px;
    font-weight: 700;
}

#vtc-booking-app .vtc-summary-promo {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e5e5;
}

#vtc-booking-app .vtc-summary-total-final {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e5e5e5;
}

#vtc-booking-app .vtc-promo-discount {
    font-weight: 600;
}

/* ==========================================================================
   Promo Section
   ========================================================================== */

#vtc-booking-app .vtc-promo-section {
    margin-bottom: 16px;
}

#vtc-booking-app .vtc-promo-input-group {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

#vtc-booking-app .vtc-promo-input {
    width: 60%;
    max-width: 60%;
    flex: none;
    text-transform: uppercase;
    min-width: 0;
}

#vtc-booking-app .vtc-promo-btn {
    width: 40%;
    max-width: 40%;
    flex: none;
    padding: 12px 10px;
    white-space: nowrap;
}

#vtc-booking-app .vtc-promo-message {
    font-size: 12px;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #f0f0f0;
}

/* ==========================================================================
   Return Fields
   ========================================================================== */

#vtc-booking-app .vtc-return-fields {
    background: #f5f5f5;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* ==========================================================================
   Loading
   ========================================================================== */

#vtc-booking-app .vtc-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

#vtc-booking-app .vtc-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e5e5e5;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: vtcSpin 0.7s linear infinite;
}

@keyframes vtcSpin {
    to { transform: rotate(360deg); }
}

#vtc-booking-app .vtc-loading-overlay p {
    color: #555;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================================
   Success & Error
   ========================================================================== */

#vtc-booking-app .vtc-success-message,
#vtc-booking-app .vtc-error-message {
    text-align: center;
    padding: 40px 20px;
}

#vtc-booking-app .vtc-success-icon {
    color: #1a1a1a;
    margin-bottom: 14px;
}

#vtc-booking-app .vtc-success-message h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

#vtc-booking-app .vtc-success-message p {
    color: #555;
    font-size: 14px;
    margin: 4px 0;
}

#vtc-booking-app .vtc-success-ref {
    font-size: 15px;
    margin-top: 14px;
}

#vtc-booking-app .vtc-success-ref strong {
    color: #1a1a1a;
}

#vtc-booking-app .vtc-success-contact {
    color: #999;
    margin-bottom: 20px;
}

#vtc-booking-app .vtc-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 14px;
}

#vtc-booking-app .vtc-error-icon {
    color: #dc2626;
    margin-bottom: 6px;
}

#vtc-booking-app .vtc-error-message p {
    color: #991b1b;
    font-weight: 500;
    font-size: 13px;
}

/* ==========================================================================
   Google Places Autocomplete
   ========================================================================== */

.pac-container {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e5e5;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    z-index: 10000;
}

.pac-item {
    padding: 8px 14px;
    cursor: pointer;
}

.pac-item:hover {
    background: #f5f5f5;
}

.pac-item-query {
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */

@media (max-width: 768px) {
    #vtc-booking-app {
        padding: 24px 16px 36px;
    }

    #vtc-booking-app .vtc-booking-title {
        font-size: 22px;
    }

    #vtc-booking-app .vtc-vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #vtc-booking-app .vtc-summary-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */

@media (max-width: 600px) {
    #vtc-booking-app {
        padding: 20px 14px 32px;
    }

    #vtc-booking-app .vtc-booking-title {
        font-size: 20px;
    }

    #vtc-booking-app .vtc-booking-subtitle {
        font-size: 13px;
    }

    /* Step indicator compact */
    #vtc-booking-app .vtc-steps-indicator {
        gap: 0;
    }

    #vtc-booking-app .vtc-step-tab {
        padding: 8px 10px;
        font-size: 12px;
        gap: 5px;
    }

    #vtc-booking-app .vtc-step-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    #vtc-booking-app .vtc-step-connector {
        width: 24px;
    }

    /* Form inputs taller on mobile */
    #vtc-booking-app .vtc-form-input {
        min-height: 52px;
        padding: 14px 14px;
        font-size: 16px;
    }

    #vtc-booking-app select.vtc-form-input {
        min-height: 56px;
        padding: 14px 36px 14px 14px;
    }

    #vtc-booking-app .vtc-btn {
        min-height: 52px;
    }

    /* Keep rows side by side on mobile, prevent overlap */
    #vtc-booking-app .vtc-row {
        flex-direction: row;
        gap: 10px;
        flex-wrap: nowrap;
    }

    #vtc-booking-app .vtc-row .vtc-col {
        min-width: 0;
        flex: 1 1 50%;
    }

    /* Date/time inputs: prevent native picker icon overlap */
    #vtc-booking-app .vtc-row input[type="date"],
    #vtc-booking-app .vtc-row input[type="time"] {
        padding-right: 8px;
        font-size: 15px;
    }

    /* Route info always side by side */
    #vtc-booking-app .vtc-route-info {
        grid-template-columns: repeat(3, 1fr);
    }

    #vtc-booking-app .vtc-route-item:not(:last-child) {
        border-right: 1px solid #e5e5e5;
        border-bottom: none;
    }

    /* Vehicles single column */
    #vtc-booking-app .vtc-vehicles-grid {
        grid-template-columns: 1fr;
    }

    /* Summary single column */
    #vtc-booking-app .vtc-summary-details {
        grid-template-columns: 1fr;
    }

    /* Button group stacked */
    #vtc-booking-app .vtc-btn-group {
        flex-direction: column-reverse;
    }

    #vtc-booking-app .vtc-btn-group .vtc-btn {
        width: 100%;
    }

    /* Step 2 buttons stacked */
    #vtc-booking-app .vtc-btn-group-step2 {
        flex-direction: column-reverse;
    }

    #vtc-booking-app .vtc-btn-group-step2 .vtc-btn {
        width: 100%;
    }

    /* Promo 60/40 stays side by side on mobile */
    #vtc-booking-app .vtc-promo-input {
        width: 60%;
        max-width: 60%;
    }

    #vtc-booking-app .vtc-promo-btn {
        width: 40%;
        max-width: 40%;
        font-size: 13px;
        padding: 12px 6px;
    }
}
