/* ================================================================
   LRPR Funnel — Shared Styles
   Brand: Little Racer Party Rentals
   Theme: Clean, energetic, family-fun. Red + white + dark accents.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Baloo+2:wght@700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --lf-red:         #E8212B;
    --lf-red-dark:    #C41920;
    --lf-red-light:   #FFF0F1;
    --lf-dark:        #1A1A2E;
    --lf-grey:        #6B7280;
    --lf-grey-light:  #F3F4F6;
    --lf-border:      #E5E7EB;
    --lf-white:       #FFFFFF;
    --lf-success:     #059669;
    --lf-success-bg:  #ECFDF5;
    --lf-warning-bg:  #FFFBEB;
    --lf-warning:     #D97706;
    --lf-radius:      14px;
    --lf-shadow:      0 4px 24px rgba(0,0,0,0.08);
    --lf-font:        'Nunito', sans-serif;
    --lf-font-display:'Baloo 2', sans-serif;
    --lf-max-width:   520px;
    --lf-progress-h:  6px;
}

/* ── Reset ─────────────────────────────────────────────────── */
.lf-funnel-body *, .lf-funnel-body *::before, .lf-funnel-body *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Page layout ───────────────────────────────────────────── */
.lf-funnel-body {
    font-family: var(--lf-font);
    background: #F7F8FC;
    min-height: 100vh;
    color: var(--lf-dark);
}

.lf-funnel-wrap {
    max-width: var(--lf-max-width);
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* ── Progress bar ──────────────────────────────────────────── */
.lf-progress {
    height: var(--lf-progress-h);
    background: var(--lf-border);
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0 -16px;
}
.lf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--lf-red), #FF6B6B);
    transition: width 0.5s ease;
    border-radius: 0 3px 3px 0;
}

/* ── Header ────────────────────────────────────────────────── */
.lf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 12px;
}
.lf-logo img {
    height: 48px;
    width: auto;
}
.lf-back-link {
    font-size: 14px;
    color: var(--lf-grey);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.lf-back-link:hover { color: var(--lf-red); }

/* ── Card ──────────────────────────────────────────────────── */
.lf-card {
    background: var(--lf-white);
    border-radius: var(--lf-radius);
    box-shadow: var(--lf-shadow);
    padding: 32px 28px;
    margin-top: 8px;
}

/* ── Step badge ────────────────────────────────────────────── */
.lf-step-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--lf-red);
    background: var(--lf-red-light);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Headings ──────────────────────────────────────────────── */
.lf-heading {
    font-family: var(--lf-font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--lf-dark);
    line-height: 1.2;
    margin-bottom: 6px;
}
.lf-subheading {
    font-size: 15px;
    color: var(--lf-grey);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ── Form fields ───────────────────────────────────────────── */
.lf-form { display: flex; flex-direction: column; gap: 18px; }

.lf-field { display: flex; flex-direction: column; gap: 6px; }

.lf-field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--lf-dark);
}

.lf-required { color: var(--lf-red); }

.lf-field input[type="text"],
.lf-field input[type="email"],
.lf-field input[type="tel"],
.lf-field input[type="number"],
.lf-field textarea,
.lf-field select {
    border: 1.5px solid var(--lf-border);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--lf-font);
    font-size: 15px;
    color: var(--lf-dark);
    background: var(--lf-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}
.lf-field input:focus,
.lf-field textarea:focus,
.lf-field select:focus {
    border-color: var(--lf-red);
    box-shadow: 0 0 0 3px rgba(232,33,43,0.12);
}

.lf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 400px) {
    .lf-field-row { grid-template-columns: 1fr; }
}

/* ── Radio cards ───────────────────────────────────────────── */
.lf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lf-radio-card {
    cursor: pointer;
}
.lf-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.lf-radio-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--lf-border);
    border-radius: 10px;
    background: var(--lf-white);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lf-radio-card input:checked + .lf-radio-inner {
    border-color: var(--lf-red);
    background: var(--lf-red-light);
    box-shadow: 0 0 0 3px rgba(232,33,43,0.08);
}
.lf-radio-icon { font-size: 20px; }
.lf-radio-label { font-size: 14px; font-weight: 700; color: var(--lf-dark); }

/* Package cards (larger) */
.lf-package-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lf-package-card .lf-radio-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 18px;
}
.lf-package-name { font-size: 16px; font-weight: 800; color: var(--lf-dark); }
.lf-package-price { font-size: 14px; color: var(--lf-red); font-weight: 700; }
.lf-package-desc { font-size: 13px; color: var(--lf-grey); line-height: 1.4; margin-top: 4px; }
.lf-package-tag {
    font-size: 11px;
    background: var(--lf-red-light);
    color: var(--lf-red);
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Address autocomplete ──────────────────────────────────── */
.lf-address-wrap {
    width: 100%;
}

#lf-autocomplete-container {
    background: var(--lf-white);
    border-radius: 10px;
    border: 1.5px solid var(--lf-border);
    overflow: visible;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#lf-autocomplete-container:focus-within {
    border-color: var(--lf-red);
    box-shadow: 0 0 0 3px rgba(232,33,43,0.12);
}

#lf_address_search {
    border: none !important;
    box-shadow: none !important;
    padding: 12px 14px;
    font-family: var(--lf-font);
    font-size: 15px;
    color: var(--lf-dark);
    background: transparent;
    outline: none;
    width: 100%;
    border-radius: 10px;
}

/* Google autocomplete dropdown override */
.pac-container {
    border-radius: 10px;
    border: 1.5px solid var(--lf-border);
    box-shadow: var(--lf-shadow);
    font-family: var(--lf-font);
    margin-top: 4px;
}

gmp-place-autocomplete {
    width: 100%;
    display: block;
    color-scheme: light;
}

/* ── Duration options (packages step) ─────────────────────── */
.lf-duration-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.lf-duration-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border: 1.5px solid var(--lf-border);
    border-radius: 10px;
    background: var(--lf-white);
    font-family: var(--lf-font);
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: left;
}
.lf-duration-option:hover {
    border-color: var(--lf-red);
    background: var(--lf-red-light);
    box-shadow: 0 0 0 3px rgba(232,33,43,0.08);
}
.lf-duration-label {
    font-weight: 700;
    color: var(--lf-dark);
}
.lf-duration-price {
    font-weight: 800;
    color: var(--lf-red);
    font-size: 16px;
}

/* ── Package cards ─────────────────────────────────────────── */
.lf-package-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}
.lf-package-card {
    position: relative;
    border: 1.5px solid var(--lf-border);
    border-radius: 12px;
    padding: 18px;
    background: var(--lf-white);
}
.lf-package-icon {
    font-size: 28px;
    margin-bottom: 6px;
}
.lf-package-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    background: var(--lf-red-light);
    color: var(--lf-red);
    border-radius: 20px;
    padding: 2px 10px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lf-package-badge-gold {
    background: #FEF3C7;
    color: #B45309;
}
.lf-package-features {
    list-style: none;
    margin: 8px 0 14px;
    padding: 0;
    font-size: 13px;
    color: var(--lf-grey);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lf-package-features li::before {
    content: '✓ ';
    color: var(--lf-success);
    font-weight: 700;
}

/* ── Radio row (side-by-side yes/no) ───────────────────────── */
.lf-radio-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.lf-radio-row .lf-radio-card {
    flex: 1;
}
.lf-radio-row .lf-radio-inner {
    justify-content: center;
    padding: 10px;
}

/* ── Checkbox card ─────────────────────────────────────────── */
.lf-checkbox-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--lf-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 8px;
}
.lf-checkbox-card:has(input:checked) {
    border-color: var(--lf-red);
    background: var(--lf-red-light);
}
.lf-checkbox-card input[type="checkbox"] {
    accent-color: var(--lf-red);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.lf-checkbox-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--lf-dark);
}
.lf-addon-price {
    color: var(--lf-red);
}

/* ── Summary total ─────────────────────────────────────────── */
.lf-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1.5px solid var(--lf-border);
    font-size: 16px;
    font-weight: 800;
    color: var(--lf-dark);
}

/* ── Addon note ────────────────────────────────────────────── */
.lf-addon-note {
    font-size: 12px;
    color: var(--lf-grey);
    margin: 2px 0 6px;
}
.lf-label-sm {
    font-size: 14px;
    font-weight: 700;
    color: var(--lf-dark);
}
.lf-addon-row {
    margin-bottom: 14px;
}

/* ── Routing status ────────────────────────────────────────── */
.lf-routing-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--lf-grey-light);
    border-radius: 10px;
    font-size: 14px;
    color: var(--lf-grey);
    font-weight: 600;
}
.lf-routing-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--lf-border);
    border-top-color: var(--lf-red);
    border-radius: 50%;
    animation: lf-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes lf-spin { to { transform: rotate(360deg); } }

/* ── Alerts ────────────────────────────────────────────────── */
.lf-alert {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}
.lf-alert-success {
    background: var(--lf-success-bg);
    color: var(--lf-success);
    border: 1.5px solid #A7F3D0;
}
.lf-alert-error {
    background: var(--lf-red-light);
    color: var(--lf-red-dark);
    border: 1.5px solid #FECACA;
}
.lf-alert-info {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1.5px solid #BFDBFE;
}
.lf-alert-warning {
    background: var(--lf-warning-bg);
    color: var(--lf-warning);
    border: 1.5px solid #FDE68A;
}

/* ── Error text ────────────────────────────────────────────── */
.lf-error {
    font-size: 12px;
    color: var(--lf-red);
    font-weight: 600;
    min-height: 16px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.lf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: var(--lf-font);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    width: 100%;
    margin-top: 8px;
}
.lf-btn-primary {
    background: var(--lf-red);
    color: var(--lf-white);
    box-shadow: 0 4px 14px rgba(232,33,43,0.30);
}
.lf-btn-primary:hover:not(:disabled) {
    background: var(--lf-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232,33,43,0.35);
}
.lf-btn-primary:active:not(:disabled) { transform: translateY(0); }
.lf-btn-primary:disabled {
    background: #D1D5DB;
    box-shadow: none;
    cursor: not-allowed;
}

.lf-btn-secondary {
    background: var(--lf-white);
    color: var(--lf-dark);
    border: 1.5px solid var(--lf-border);
}
.lf-btn-secondary:hover:not(:disabled) {
    background: var(--lf-grey-light);
    border-color: #9CA3AF;
}

/* ── Help text ─────────────────────────────────────────────── */
.lf-help-text {
    text-align: center;
    font-size: 13px;
    color: var(--lf-grey);
    margin-top: 20px;
}
.lf-help-text a { color: var(--lf-red); font-weight: 700; text-decoration: none; }
.lf-help-text a:hover { text-decoration: underline; }

/* ── Order summary (deposit page) ─────────────────────────── */
.lf-order-summary {
    background: var(--lf-grey-light);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}
.lf-order-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--lf-border);
    gap: 12px;
}
.lf-order-row:last-child { border-bottom: none; }
.lf-order-label { color: var(--lf-grey); font-weight: 600; flex-shrink: 0; }
.lf-order-value { color: var(--lf-dark); font-weight: 700; text-align: right; }
.lf-order-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 800;
}
.lf-order-total-label { color: var(--lf-dark); }
.lf-order-total-value { color: var(--lf-red); }

/* ── Affiliate notice banner ───────────────────────────────── */
.lf-affiliate-notice {
    background: #FFF7ED;
    border: 1.5px solid #FED7AA;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #92400E;
    line-height: 1.5;
    margin-bottom: 16px;
}
.lf-affiliate-notice strong { display: block; font-size: 14px; margin-bottom: 2px; }

/* ── Checkbox addon items ──────────────────────────────────── */
.lf-addon-list { display: flex; flex-direction: column; gap: 10px; }
.lf-addon-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--lf-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.lf-addon-item:has(input:checked) {
    border-color: var(--lf-red);
    background: var(--lf-red-light);
}
.lf-addon-item input[type="checkbox"],
.lf-addon-item input[type="radio"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--lf-red); }
.lf-addon-label { font-size: 14px; font-weight: 700; color: var(--lf-dark); }
.lf-addon-price { font-size: 13px; color: var(--lf-red); font-weight: 700; }
.lf-addon-note  { font-size: 12px; color: var(--lf-grey); margin-top: 2px; }

/* ── Running total ─────────────────────────────────────────── */
.lf-running-total {
    background: var(--lf-dark);
    color: var(--lf-white);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    margin-top: 8px;
}
.lf-running-total-deposit { color: #FCA5A5; font-size: 13px; font-weight: 600; }

/* ── Waiver ────────────────────────────────────────────────── */
.lf-waiver-text {
    background: var(--lf-grey-light);
    border-radius: 10px;
    padding: 16px;
    max-height: 280px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.7;
    color: var(--lf-grey);
    margin-bottom: 20px;
}
.lf-waiver-text h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--lf-dark);
    margin-bottom: 8px;
}
.lf-waiver-text p { margin-bottom: 10px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .lf-card { padding: 24px 18px; }
    .lf-heading { font-size: 22px; }
}
