/* ============================================================
   mylendingriver v3 design tokens and component styles
   Ported from lander_v3/index.html <style> block.
   ALL component selectors are lr- prefixed to avoid collisions
   with Bootstrap / site.css (.card, .btn-primary, .options, etc).
   Testimonials styles intentionally omitted.
   ============================================================ */

:root {
    --blue: #2b9fd1;
    --blue-dark: #1b7eaa;
    --blue-light: #e8f6fc;
    --green: #27ae60;
    --green-light: #eafaf1;
    --red: #e74c3c;
    --gray-900: #1a1a2e;
    --gray-700: #4a4a68;
    --gray-500: #8888a8;
    --gray-200: #e8e8f0;
    --gray-100: #f5f5fa;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(43,159,209,0.10);
    --shadow-lg: 0 8px 40px rgba(43,159,209,0.18);
    --radius: 14px;
    --radius-sm: 8px;
}

/* GLOBAL BODY OVERRIDE
   Defeats site.css body background (bg.jpg) with v3 light gradient. */
body {
    background: linear-gradient(160deg, #e8f6fc 0%, #f0f8fd 40%, #f5f5fa 100%) !important;
    background-image: linear-gradient(160deg, #e8f6fc 0%, #f0f8fd 40%, #f5f5fa 100%) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
}
.content {
    padding-top: 0 !important;
    color: var(--gray-900) !important;
}

/* FULL-BLEED HELPER
   bs4_base2.html wraps content in <div class="container content"><div class="row mt-5">.
   Apply this class to hero band and five-min section to escape the container.
   Kept UNPREFIXED since it's a layout helper, not a component. */
.v3-full-bleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

/* ── SITE HEADER ── */
.lr-site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.lr-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.lr-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
}
.lr-logo-text span { color: var(--blue); }

.lr-header-phone a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 9px 18px;
    border-radius: 50px;
    transition: background 0.2s;
}
.lr-header-phone a:hover {
    background: var(--blue-dark);
    color: white;
}
.lr-header-phone a svg { width: 16px; height: 16px; fill: white; }

/* ── HERO BAND ── */
.lr-hero-band {
    background: linear-gradient(90deg, var(--blue) 0%, #1b90c0 100%);
    color: white;
    text-align: center;
    padding: 20px 20px 18px;
}
.lr-hero-inner {
    max-width: 560px;
    margin: 0 auto;
}
.lr-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: white;
    margin: 0;
}
.lr-hero-sub {
    font-size: 0.9rem;
    opacity: 0.92;
    margin-top: 4px;
    color: white;
}
.lr-urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.03em;
    color: white;
}
.lr-urgency-dot {
    width: 7px;
    height: 7px;
    background: #ffd700;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* ── MAIN WRAPPER ── */
.lr-main {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 16px 60px;
}

/* ── SURVEY CARD ── */
.lr-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}
@media (max-width: 480px) {
    .lr-card { padding: 24px 18px; }
}

/* ── PROGRESS BAR ── */
.lr-progress-wrap { margin: -32px -28px 28px; }
@media (max-width: 480px) {
    .lr-progress-wrap { margin: -24px -18px 22px; }
}
.lr-progress-bar-bg {
    height: 14px;
    background: var(--gray-200);
    overflow: hidden;
}
.lr-progress-bar-fill {
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #27ae60 0px, #27ae60 10px,
        #2ecc71 10px, #2ecc71 20px
    );
    background-size: 28px 28px;
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    animation: stripes 0.6s linear infinite;
}
@keyframes stripes {
    from { background-position: 0 0; }
    to   { background-position: 28px 0; }
}

/* ── STEP PANELS ── */
.lr-step { display: none; animation: fadeUp 0.35s ease; }
.lr-step.active { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lr-step-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    margin-bottom: 6px;
}
.lr-step-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 8px;
}
.lr-step-sub {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ── TOOLTIP ── */
.lr-tooltip-box {
    background: var(--blue-light);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 22px;
    font-size: 0.84rem;
    color: var(--blue-dark);
    line-height: 1.55;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.lr-tip-icon,
.lr-tooltip-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    color: var(--blue);
}
.lr-tip-icon svg,
.lr-tooltip-icon svg {
    stroke: var(--blue);
}

/* ── OPTION CARDS ── */
.lr-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lr-option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    text-align: left;
    width: 100%;
}
.lr-option-card:hover {
    border-color: var(--blue);
    background: var(--blue-light);
}
.lr-option-card.selected {
    border-color: var(--blue);
    background: var(--blue-light);
}
.lr-option-card.selected .lr-opt-icon svg {
    stroke: var(--blue);
}
.lr-opt-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 8px;
    transition: background 0.2s;
}
.lr-option-card.selected .lr-opt-icon {
    background: rgba(43,159,209,0.15);
}
.lr-opt-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--gray-500);
    transition: stroke 0.2s;
}
.lr-opt-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-900);
}
.lr-opt-sub {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 2px;
}
.lr-opt-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue);
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    background: rgba(43,159,209,0.12);
    border-radius: 4px;
    vertical-align: middle;
}

/* ── FORM FIELDS ── */
.lr-field { margin-bottom: 18px; }
.lr-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.lr-field input,
.lr-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--gray-900);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: white;
}
.lr-field input:focus,
.lr-field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(43,159,209,0.12);
}
.lr-field input.lr-input-error,
.lr-field select.lr-input-error {
    border-color: var(--red);
}
.lr-input-error {
    border-color: var(--red) !important;
}
.lr-req {
    color: var(--red);
    font-weight: 700;
}
.lr-field-error {
    font-size: 0.78rem;
    color: var(--red);
    margin-top: 5px;
    display: none;
}
.lr-field-error.show { display: block; }

.lr-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 400px) {
    .lr-field-row { grid-template-columns: 1fr; }
}

/* ── CONSENT TEXT ── */
.lr-consent {
    font-size: 0.74rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
}

/* ── SECURE BADGE ── */
.lr-secure-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 14px;
}

/* ── BUTTONS ── */
.lr-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--blue) 0%, #1b90c0 100%);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 22px;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(43,159,209,0.3);
}
.lr-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(43,159,209,0.38);
    color: white;
}
.lr-btn-primary:active { transform: translateY(0); }
.lr-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.lr-btn-arrow { font-size: 1.1rem; }

.lr-btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
    margin-top: 10px;
    transition: color 0.2s;
}
.lr-btn-back:hover { color: var(--gray-700); }

/* ── TRUST ROW ── */
.lr-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-200);
}
.lr-trust-row img {
    height: 22px;
    width: auto;
    object-fit: contain;
}
.lr-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    color: var(--gray-500);
    font-weight: 600;
}
.lr-trust-item svg { width: 16px; height: 16px; }

/* ── PHONE CTA STRIP ── */
.lr-phone-strip {
    background: linear-gradient(135deg, #1a1a2e 0%, #2b2b4a 100%);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}
.lr-phone-strip-text h3 {
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}
.lr-phone-strip-text p {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    margin-top: 4px;
}
.lr-phone-strip a,
.lr-phone-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 13px 28px;
    border-radius: 50px;
    white-space: nowrap;
    transition: background 0.2s;
}
.lr-phone-strip a:hover,
.lr-phone-cta:hover {
    background: var(--blue-dark);
    color: white;
}
.lr-phone-strip a svg,
.lr-phone-cta svg {
    width: 18px;
    height: 18px;
    fill: white;
}
.lr-phone-strip-confirm {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ── FIVE MINUTES SECTION ── */
.lr-five-min-section {
    background: white;
    padding: 36px 20px 32px;
    border-bottom: 1px solid var(--gray-200);
    border-top: 1px solid var(--gray-200);
}
.lr-five-min-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.lr-five-min-section h2 {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 6px;
}
.lr-five-min-section h2 span { color: var(--blue); }
.lr-fm-sub {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 26px;
    line-height: 1.5;
}
.lr-five-min-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.lr-five-min-stat {
    background: var(--blue-light);
    border-radius: var(--radius);
    padding: 16px 10px;
    border: 1px solid rgba(43,159,209,0.15);
}
.lr-five-min-stat .stat-val,
.lr-five-min-stat .lr-stat-val {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--blue-dark);
}
.lr-five-min-stat .stat-lbl,
.lr-five-min-stat .lr-stat-lbl {
    font-size: 0.68rem;
    color: var(--gray-500);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.lr-five-min-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
}
.lr-five-min-perk {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--gray-700);
}
.lr-five-min-perk .perk-icon,
.lr-five-min-perk .lr-perk-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--blue);
}
.lr-five-min-perk .perk-icon svg,
.lr-five-min-perk .lr-perk-icon svg {
    stroke: var(--blue);
}
.lr-fm-disclaimer {
    margin-top: 20px;
    font-size: 0.72rem;
    color: var(--gray-500);
    font-style: italic;
    line-height: 1.5;
}
@media (max-width: 400px) {
    .lr-five-min-stats { grid-template-columns: repeat(3, 1fr); }
    .lr-five-min-perks { grid-template-columns: 1fr; }
}

/* ── SITE FOOTER ── */
.lr-site-footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.7;
}
.lr-site-footer a {
    color: var(--blue);
    text-decoration: none;
}
.lr-site-footer a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

/* ── THANK YOU SCREEN ── */
.lr-thankyou-section {
    animation: fadeUp 0.4s ease;
}
.lr-thankyou-icon {
    width: 72px;
    height: 72px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}
.lr-thankyou-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
}
.lr-thankyou-sub {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ── GLOW PULSE (reused by any CTA that needs attention) ── */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(43,159,209,0.5); }
    50%      { box-shadow: 0 0 0 12px rgba(43,159,209,0); }
}

/* ── CALL NOW CTA (green variant for thankyou) ── */
.lr-btn-call-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--green) 0%, #1e8449 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(39,174,96,0.35);
    transition: all 0.2s;
    animation: glow-pulse 2s ease-in-out infinite;
}
.lr-btn-call-now:hover {
    background: linear-gradient(135deg, #1e8449 0%, #166034 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(39,174,96,0.45);
}
.lr-btn-call-now svg { width: 20px; height: 20px; fill: white; flex-shrink: 0; }
