/* =============================================================
   TowPilot Funnel Redesign — single stylesheet for all
   redesigned funnel components (header, steps, service picker).
   Edit colour tokens in :root to retheme the whole funnel.
   ============================================================= */

:root {
    --tp-green:           #10B981;
    --tp-green-hover:     #059669;
    --tp-text-dark:       #111827;
    --tp-text-mid:        #6b7280;
    --tp-text-muted:      #9ca3af;
    --tp-border:          #e5e7eb;
    --tp-border-light:    #f3f4f6;
    --tp-border-disabled: #d1d5db;
    --tp-bg-page:         #f7f7f7;
    --tp-white:           #ffffff;
    --tp-shadow-header:   0 2px 8px rgba(0, 0, 0, 0.07);
}

/* ── Page ───────────────────────────────────────────────────── */
body {
    background-color: var(--tp-bg-page);
}

/* ── Header ─────────────────────────────────────────────────── */
.tp-redesign-header {
    background: var(--tp-white);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--tp-shadow-header);
    position: sticky;
    top: 0;
    z-index: 100;
}
.tp-hdr-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tp-hdr-icon-box {
    width: 38px;
    height: 38px;
    background: var(--tp-green);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tp-hdr-brand-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--tp-text-dark);
    letter-spacing: -0.3px;
}
.tp-hdr-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--tp-green);
    color: var(--tp-white) !important;
    text-decoration: none !important;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}
.tp-hdr-call-btn:hover {
    background: var(--tp-green-hover);
    color: var(--tp-white) !important;
}

/* ── Steps tracker ──────────────────────────────────────────── */
.tp-steps-container {
    background: var(--tp-white);
    padding: 18px 20px 16px;
    text-align: center;
    border-bottom: 1px solid var(--tp-border-light);
}
.tp-steps-eyebrow {
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-green) !important;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.tp-steps-track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
}
.tp-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 80px;
    position: relative;
    z-index: 1;
}
.tp-step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tp-white);
    border: 2px solid var(--tp-border);
}
.tp-step-circle.is-active {
    background: var(--tp-green);
    border-color: var(--tp-green);
}
.tp-step-circle img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.tp-step-text {
    font-size: 11px;
    color: var(--tp-text-muted);
    margin-top: 8px;
    line-height: 1.3;
    font-weight: 500;
    text-align: center;
}
.tp-step-text.is-active {
    color: var(--tp-text-dark);
    font-weight: 700;
}
.tp-step-connector {
    flex: 1;
    height: 2px;
    background: var(--tp-border);
    /* margin-top centers the 2px line on the 48px circle: (48/2) - 1 = 23px */
    margin-top: 23px;
    /* pull each end in by half the gap so the line meets the circle edge:
       gap = (node-width − circle-width) / 2 = (80 − 48) / 2 = 16px */
    margin-left: -16px;
    margin-right: -16px;
    z-index: 0;
}
.tp-step-connector.is-active {
    background: var(--tp-green);
}

/* ── Service picker ─────────────────────────────────────────── */
.tp-service-section {
    padding: 20px 16px 32px;
    max-width: 480px;
    margin: 0 auto;
}
.tp-service-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--tp-text-dark);
    margin: 0 0 6px;
    line-height: 1.25;
}
.tp-service-subheading {
    font-size: 14px;
    color: var(--tp-text-mid);
    margin: 0 0 18px;
    line-height: 1.5;
}
.tp-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.tp-service-card {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: 14px;
    padding: 14px 12px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.tp-service-card.selected {
    border-color: var(--tp-green);
    box-shadow: 0 0 0 1px var(--tp-green);
}
.tp-card-icon-box {
    width: 52px;
    height: 52px;
    background: var(--tp-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tp-card-icon-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.tp-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tp-text-dark);
    display: block;
    line-height: 1.2;
}
.tp-card-sub {
    font-size: 12px;
    color: var(--tp-text-mid);
    display: block;
    margin-top: 2px;
}

/* ── Continue button ────────────────────────────────────────── */
.tp-continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background: var(--tp-green);
    color: var(--tp-white) !important;
    text-align: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s, opacity 0.2s;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 50px;
}
.tp-continue-btn.tp-disabled {
    background: var(--tp-border-disabled);
    color: var(--tp-text-muted) !important;
    cursor: not-allowed;
    pointer-events: none;
    border-radius: 50px;
}
.tp-continue-btn:hover:not(.tp-disabled) {
    background: var(--tp-green-hover);
    border-radius: 50px;
}
.icon-box-payment{
    margin: 10px auto 20px;
}
/* Custom radio circle: matches native look but in green */
.custom-form-selection input[type=radio] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: var(--tp-white);
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
    transition: border-color 0.15s;
    margin-right: 6px;
}
.custom-form-selection input[type=radio]:checked {
    border-color: var(--primary-clr);
    background-color: var(--tp-white);
}
.custom-form-selection input[type=radio]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--primary-clr);
}

/* Custom checkbox: green bg + white check icon */
.authorization-box {
    appearance: none;
    -webkit-appearance: none;
    width: 18px !important;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
    background-color: var(--tp-white);
    transition: background-color 0.15s, border-color 0.15s;
}
.authorization-box:checked {
    background-color: var(--primary-clr);
    border-color: var(--primary-clr);
}
.authorization-box:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid var(--tp-white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
/* Custom checkbox: green bg + white check icon for conatct info part*/
#consentToSMS{
    appearance: none;
    -webkit-appearance: none;
    width: 18px !important;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
    background-color: var(--tp-white);
    transition: background-color 0.15s, border-color 0.15s;
}
#consentToSMS:checked {
    background-color: var(--primary-clr);
    border-color: var(--primary-clr);
}
#consentToSMS:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid var(--tp-white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
/* ── Tire-position radios: green "checked" state to match the Yes/No radios ── */
.tyres-radio input[type=radio]:checked ~ label:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 9px 9px !important;
    background-color: var(--primary-clr) !important;
    border: 1px solid var(--primary-clr) !important;
}

/* ---- nearby repair shops (tow drop-off) ----
 *
 * This list had a heading and an empty div for as long as the funnel has
 * existed; $carRepairs was hard-coded to [] everywhere. Now that it has
 * contents, it needs to look like something you can tap.
 */
.shop-row {
    position: relative; text-align: left; cursor: pointer;
    padding: 12px 14px; margin-bottom: 8px;
    border: 2px solid #e6e7e9; border-radius: 12px; background: var(--tp-white);
}
.shop-row:hover, .shop-row.on { border-color: #10B981; background: rgba(16,185,129,.06); }
.shop-name { font-weight: 700; font-size: 15px; color: #0A0A0B; padding-right: 52px; }
.shop-addr { font-size: 13px; color: #6B7570; margin-top: 2px; line-height: 1.4; }
/* Distance out of the name's way -- it is what the choice is made on. */
.shop-mi { position: absolute; top: 12px; right: 14px; font-weight: 800; font-size: 12.5px; color: #0A7A55; }

/* Partner stores marked: Pep Boys is an arrangement, the rest of the list is a
   public directory, and without a mark the two are indistinguishable. */
.shop-tag {
    display: inline-block; margin-top: 5px;
    padding: 2px 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--accent, #10B981) 15%, transparent);
    color: #0A7A55; font-size: 10.5px; font-weight: 800; letter-spacing: .03em;
}
