/* ==========================================
   CAROMEDIA VTC — Booking Form Styles
   Mobile-First Responsive
   ========================================== */

/* ============ RESET & BASE ============ */
.vtc-wrap, .vtc-wrap * { box-sizing: border-box; }
.vtc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    max-width: 960px;
    margin: 0 auto;
    color: #222;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
}

/* ============ STEP 1 — MOBILE FIRST ============ */
.vtc-s1 { display: flex; flex-direction: column; border: 1px solid #dce1e7; background: #fff; }
.vtc-s1-left  { padding: 18px 14px; border-bottom: 1px solid #dce1e7; }
.vtc-s1-right { padding: 18px 14px; }

.vtc-title { font-size: 15px; font-weight: 700; color: #111; margin: 0 0 18px; text-transform: uppercase; letter-spacing: .5px; }
.vtc-label { font-size: 13px; font-weight: 700; color: #111; margin: 0 0 7px; display: block; }

/* Address */
.vtc-addr { display: flex; align-items: center; border: 1px solid #c5cbd3; border-radius: 4px; overflow: hidden; margin-bottom: 14px; background: #fff; transition: border-color .2s; }
.vtc-addr:focus-within { border-color: #185FA5; box-shadow: 0 0 0 3px rgba(24,95,165,.1); }
.vtc-addr-ic { width: 40px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: #f7f8fa; border-right: 1px solid #dce1e7; flex-shrink: 0; }
.vtc-addr input { flex: 1; border: none; outline: none; padding: 12px; font-size: 15px; color: #222; background: transparent; width: 100%; min-width: 0; }
.vtc-addr input::placeholder { color: #b0b8c1; }

/* Stop */
.vtc-stop-row { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.vtc-stop-btn { display: flex; align-items: center; gap: 7px; border: none; background: none; padding: 6px 0; cursor: pointer; font-size: 13px; font-weight: 600; color: #333; }
.vtc-stop-ic { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0; line-height: 1; }

/* Radios */
.vtc-radio-row { display: flex; gap: 20px; margin-bottom: 14px; }
.vtc-radio-item { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; color: #555; cursor: pointer; }
.vtc-radio-item input { width: 19px; height: 19px; accent-color: #185FA5; cursor: pointer; }
.vtc-opt-label { font-size: 12px; font-weight: 600; color: #555; margin-bottom: 5px; display: block; }

/* Selects */
.vtc-select {
    border: 1.5px solid #c5cbd3; border-radius: 6px; padding: 10px 32px 10px 10px;
    font-size: 14px; color: #222; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 10px center;
    cursor: pointer; width: 100%; -webkit-appearance: none; appearance: none;
}
.vtc-select:focus { outline: none; border-color: #185FA5; box-shadow: 0 0 0 3px rgba(24,95,165,.1); }

/* Options grid */
.vtc-opts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }

/* Date */
.vtc-date-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.vtc-date-wrap { display: flex; align-items: center; border: 1.5px solid #c5cbd3; border-radius: 6px; overflow: hidden; background: #fff; transition: border-color .2s; }
.vtc-date-wrap:focus-within { border-color: #185FA5; box-shadow: 0 0 0 3px rgba(24,95,165,.1); }
.vtc-date-ic { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: #f0f4f8; border-right: 1px solid #dce1e7; flex-shrink: 0; }
.vtc-date-input { flex: 1; border: none; outline: none; padding: 10px; font-size: 14px; color: #222 !important; background: #fff !important; min-width: 0; cursor: pointer; -webkit-appearance: none; color-scheme: light; }
.vtc-date-hm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Night */
.vtc-night { display: none; background: #0f172a; color: #7dd3fc; padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-top: 10px; align-items: center; gap: 8px; }
.vtc-night.active { display: flex; }

/* Zone info */
.zone-info { font-size: 12px; color: #185FA5; padding: 5px 9px; background: #eff6ff; border-radius: 3px; display: none; margin-bottom: 10px; }
.zone-info.active { display: block; }
.flight-field { display: none; }
.flight-field.active { display: block; }

/* Honeypot */
.vtc-honeypot { position: absolute; left: -9999px; opacity: 0; }

/* Main button */
.vtc-btn-main {
    width: 100%; padding: 17px; background: #185FA5; color: #fff;
    border: none; font-size: 15px; font-weight: 700; cursor: pointer;
    letter-spacing: 1.5px; text-transform: uppercase; transition: background .2s;
    display: block; border-radius: 0; -webkit-appearance: none;
}
.vtc-btn-main:hover { background: #1565c0; }
.vtc-btn-main:active { background: #0d47a1; transform: scale(.99); }
.vtc-btn-main:disabled { background: #93c5fd; cursor: not-allowed; }

/* ============ STEP 2 ============ */
.vtc-s2 { display: none; }
.vtc-s2-recap { display: flex; flex-direction: column; border: 1px solid #dce1e7; background: #fff; border-bottom: none; }
.vtc-map-box { min-height: 180px; background: #e8eef7; position: relative; overflow: hidden; }
.vtc-map-box > div { width: 100% !important; height: 180px !important; }
.vtc-recap-box { padding: 16px; border-top: 1px solid #dce1e7; }
.vtc-recap-section { font-size: 12px; font-weight: 700; color: #111; margin: 0 0 10px; border-bottom: 1px solid #eee; padding-bottom: 7px; text-transform: uppercase; letter-spacing: .3px; }
.vtc-recap-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: #444; }
.vtc-recap-row span:first-child { color: #777; }
.vtc-recap-row span:last-child { font-weight: 600; color: #111; }
.vtc-recap-opts { margin-top: 12px; }
.vtc-recap-opts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.vtc-recap-opt { display: flex; justify-content: space-between; font-size: 12px; color: #555; padding: 4px 0; border-bottom: 1px dashed #f0f0f0; }

/* Vehicle cards — mobile first */
.vtc-vehicles { border: 1px solid #dce1e7; border-top: none; }
.vtc-vcard { display: flex; flex-direction: row; border-top: 1px solid #dce1e7; background: #fff; cursor: pointer; transition: background .15s; }
.vtc-vcard:hover { background: #f5f8ff; }
.vtc-vcard.selected { background: #f0f7ff; border-left: 3px solid #185FA5; }
.vtc-vcard-photo { width: 100px; min-width: 100px; overflow: hidden; background: #f1f5f9; }
.vtc-vcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.vtc-vcard:hover .vtc-vcard-photo img { transform: scale(1.04); }
.vtc-vcard-body { flex: 1; padding: 12px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.vtc-vcard-info { flex: 1; min-width: 0; }
.vtc-vcard-name { font-size: 13px; font-weight: 700; color: #111; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; }
.vtc-vcard-caps { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #555; }
.vtc-vcard-cap { display: flex; align-items: center; gap: 5px; }
.vtc-vcard-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.vtc-vcard-price { font-size: 24px; font-weight: 800; color: #111; line-height: 1; white-space: nowrap; }
.vtc-vcard-price sup { font-size: 14px; font-weight: 500; color: #555; }
.vtc-reserver { background: #111827; color: #fff; border: none; padding: 9px 14px; font-size: 11px; font-weight: 700; cursor: pointer; letter-spacing: .5px; text-transform: uppercase; transition: background .2s; white-space: nowrap; border-radius: 2px; }
.vtc-reserver:hover, .vtc-vcard.selected .vtc-reserver { background: #185FA5; }
.vtc-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #185FA5; cursor: pointer; margin: 14px 0 4px; font-weight: 600; border: none; background: none; padding: 4px 0; text-decoration: underline; }

/* ============ STEP 3 ============ */
.vtc-s3 { display: none; }
.vtc-s3-wrap { display: flex; flex-direction: column; border: 1px solid #dce1e7; background: #fff; }
.vtc-s3-left { border-bottom: 1px solid #dce1e7; }
.vtc-s3-right { padding: 16px; background: #fafbfc; }

.vtc-s3-veh-box { padding: 12px 14px; border-bottom: 1px solid #dce1e7; }
.vtc-s3-veh-label { font-size: 11px; color: #777; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 8px; }
.vtc-s3-veh-card { border: 1px solid #dce1e7; border-radius: 4px; padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; }
.vtc-s3-veh-name { font-size: 14px; font-weight: 700; color: #111; text-transform: uppercase; margin-bottom: 5px; }
.vtc-s3-veh-badge { display: inline-block; background: #f1f5f9; color: #555; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 3px; letter-spacing: .5px; text-transform: uppercase; }
.vtc-s3-veh-price { font-size: 28px; font-weight: 800; color: #111; line-height: 1; }
.vtc-s3-veh-price sup { font-size: 15px; font-weight: 400; color: #555; }

.vtc-s3-form { padding: 16px 14px; }
.vtc-s3-form-title { font-size: 13px; font-weight: 700; color: #111; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 12px; }
.vtc-s3-tabs { display: flex; border: 1px solid #dce1e7; border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.vtc-s3-tab { flex: 1; padding: 11px 6px; text-align: center; font-size: 12px; font-weight: 700; cursor: pointer; background: #fff; color: #555; letter-spacing: .3px; text-transform: uppercase; border: none; transition: all .2s; }
.vtc-s3-tab.active { background: #111827; color: #fff; }

.vtc-s3-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; }
.vtc-s3-field { display: flex; flex-direction: column; gap: 5px; }
.vtc-s3-field label { font-size: 11px; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.vtc-s3-field input, .vtc-s3-field textarea { padding: 11px 10px; border: 1px solid #c5cbd3; border-radius: 3px; font-size: 15px; color: #222; background: #fff; width: 100%; -webkit-appearance: none; }
.vtc-s3-field input:focus, .vtc-s3-field textarea:focus { outline: none; border-color: #185FA5; box-shadow: 0 0 0 2px rgba(24,95,165,.1); }
.vtc-s3-field input::placeholder { color: #bbb; font-size: 13px; }
.vtc-s3-field textarea { resize: vertical; font-family: inherit; }

.vtc-s3-promo { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.vtc-s3-promo input { padding: 11px 10px; border: 1px solid #c5cbd3; border-radius: 3px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #222; background: #fff; -webkit-appearance: none; }
.vtc-s3-promo button { padding: 12px; background: #7c3aed; color: #fff; border: none; border-radius: 3px; font-size: 12px; font-weight: 700; cursor: pointer; letter-spacing: .5px; }
.vtc-s3-pax-title { font-size: 13px; font-weight: 700; color: #111; margin: 12px 0 8px; display: flex; align-items: center; gap: 5px; }

/* S3 right recap */
.vtc-s3-addr-row { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 13px; color: #333; line-height: 1.4; }
.vtc-s3-addr-row:last-child { border-bottom: none; }
.vtc-s3-recap-title { font-size: 13px; font-weight: 700; color: #111; margin: 14px 0 9px; border-bottom: 1px solid #eee; padding-bottom: 7px; }
.vtc-s3-recap-row { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; color: #444; }
.vtc-s3-recap-row span:first-child { color: #777; }
.vtc-s3-recap-row span:last-child { font-weight: 600; color: #111; }
.vtc-s3-opts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.vtc-s3-opt { display: flex; justify-content: space-between; font-size: 12px; color: #555; padding: 4px 0; border-bottom: 1px dashed #f0f0f0; }

/* Price breakdown */
.price-breakdown .row { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; color: #555; border-bottom: 1px solid #e0f2fe; }
.price-breakdown .row:last-child { border-bottom: none; font-weight: 700; color: #111; font-size: 14px; margin-top: 4px; }
.price-breakdown .row.night { color: #185FA5; }

/* Payment */
.vtc-pay-option { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #dce1e7; border-radius: 3px; cursor: pointer; font-size: 14px; margin-bottom: 8px; }
.vtc-pay-option input { accent-color: #185FA5; }

/* Autocomplete dropdown */
.pac-container { border-radius: 6px; margin-top: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.15); border: 1px solid #eee; font-family: inherit; z-index: 99999 !important; }
.pac-item { padding: 12px 14px; cursor: pointer; font-size: 14px; }
.pac-item:hover { background: #f5f5f5; }

/* ============ TABLET 640px ============ */
@media (min-width: 640px) {
    .vtc-s1-left  { padding: 22px 20px; }
    .vtc-s1-right { padding: 22px 20px; }
    .vtc-title { font-size: 16px; }
    .vtc-addr input { font-size: 14px; }

    /* Date row inline */
    .vtc-date-row { flex-direction: row; align-items: flex-end; }
    .vtc-date-row > div:first-child { flex: 1; }
    .vtc-date-hm { display: flex; gap: 8px; flex-shrink: 0; }
    .vtc-date-hm > div { width: 80px; }

    /* Options */
    .vtc-opts-grid { grid-template-columns: repeat(2, minmax(90px, 130px)); justify-content: flex-start; }

    /* Vehicle card photo wider */
    .vtc-vcard-photo { width: 130px; min-width: 130px; }
    .vtc-vcard-price { font-size: 28px; }

    /* Map taller */
    .vtc-map-box > div { height: 200px !important; }

    /* S3 grid 2 cols */
    .vtc-s3-grid { grid-template-columns: 1fr 1fr; }
    .vtc-s3-promo { flex-direction: row; }
    .vtc-s3-promo input { flex: 1; }
    .vtc-s3-promo button { padding: 0 16px; }
}

/* ============ DESKTOP 900px ============ */
@media (min-width: 900px) {
    /* Step 1 side-by-side */
    .vtc-s1 { flex-direction: row; }
    .vtc-s1-left  { flex: 1; border-right: 1px solid #dce1e7; border-bottom: none; padding: 26px 24px; }
    .vtc-s1-right { flex: 1; padding: 26px 24px; }
    .vtc-title { font-size: 17px; }

    /* Step 2 recap side-by-side */
    .vtc-s2-recap { flex-direction: row; }
    .vtc-map-box { flex: 1; min-height: 220px; }
    .vtc-map-box > div { height: 220px !important; }
    .vtc-recap-box { width: 280px; flex-shrink: 0; border-top: none; border-left: 1px solid #dce1e7; }

    /* Vehicle cards */
    .vtc-vcard-photo { width: 160px; min-width: 160px; height: 115px; }
    .vtc-vcard-body { padding: 14px 18px; gap: 14px; }
    .vtc-vcard-right { min-width: 120px; }
    .vtc-vcard-price { font-size: 30px; }

    /* Step 3 side-by-side */
    .vtc-s3-wrap { flex-direction: row; }
    .vtc-s3-left { flex: 1; border-bottom: none; border-right: 1px solid #dce1e7; }
    .vtc-s3-right { width: 280px; flex-shrink: 0; }
    .vtc-s3-form { padding: 18px 20px; }
    .vtc-s3-veh-box { padding: 14px 20px; }
}

/* ============ TOUCH DEVICES ============ */
@media (hover: none) and (pointer: coarse) {
    .vtc-vcard { -webkit-tap-highlight-color: transparent; }
    .vtc-vcard:active { background: #f0f7ff; }
    .vtc-btn-main:active { opacity: .88; }
    .vtc-reserver:active { background: #185FA5; }
    .vtc-stop-btn:active { opacity: .7; }
}
