/* ╔══════════════════════════════════════════════════════════════════════════════╗
   ║   GET-QUOTE.CSS — Landing Page Styles                                       ║
   ║   High-conversion landing page: kill the nav, form IS the page              ║
   ║   Reuses phi-system design tokens                                           ║
   ╚══════════════════════════════════════════════════════════════════════════════╝ */

/* ═══════════════════════════════════════════════════════════════════════════════
   PAGE RESET — Override any global styles that interfere
   ═══════════════════════════════════════════════════════════════════════════════ */

.page-get-quote {
    background: var(--color-neutral-50, #f9fafb);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Kill any inherited heading centering from brand-accents */
.page-get-quote h1,
.page-get-quote h2,
.page-get-quote h3 {
    text-align: left !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MINIMAL HEADER — Logo + Phone Only
   ═══════════════════════════════════════════════════════════════════════════════ */

.lp-header {
    background: white;
    border-bottom: 1px solid var(--color-neutral-200, #e5e7eb);
    padding: var(--space-sm, 0.618rem) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.lp-header-inner {
    max-width: var(--container-lg, 75.999rem);
    margin: 0 auto;
    padding: 0 var(--space-lg, 1.618rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-logo img {
    height: 40px;
    width: auto;
}

.lp-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-brand-blue, #183075);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.15s;
}

.lp-header-phone:hover {
    color: var(--color-brand-red, #EC1C24);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MAIN LAYOUT — 55/45 Split Desktop, Stacked Mobile
   ═══════════════════════════════════════════════════════════════════════════════ */

.lp-main {
    flex: 1;
    padding: var(--space-2xl, 4.236rem) 0;
}

.lp-container {
    max-width: var(--container-lg, 75.999rem);
    margin: 0 auto;
    padding: 0 var(--space-lg, 1.618rem);
    display: grid;
    grid-template-columns: 55% 45%;
    gap: var(--space-2xl, 4.236rem);
    align-items: start;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LEFT COLUMN — Content: Headline, Trust, Testimonials
   ═══════════════════════════════════════════════════════════════════════════════ */

.lp-content {
    padding-top: var(--space-lg, 1.618rem);
}

.lp-headline {
    font-size: clamp(1.75rem, 3.5vw, 2.618rem);
    color: var(--color-brand-blue-dark, #0f1e4a) !important;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 var(--space-md, 1rem);
    max-width: none;
}

.lp-headline .text-red {
    color: var(--color-brand-red, #EC1C24) !important;
}

.lp-subhead {
    font-size: var(--text-lg, 1.236rem);
    color: var(--color-neutral-600, #4b5563);
    line-height: 1.6;
    margin: 0 0 var(--space-xl, 2.618rem);
    max-width: 50ch;
}

/* ─── Trust Bar ─── */

.lp-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg, 1.618rem);
    margin-bottom: var(--space-xl, 2.618rem);
    padding: var(--space-md, 1rem) var(--space-lg, 1.618rem);
    background: white;
    border-radius: var(--radius-lg, 0.618rem);
    box-shadow: var(--shadow-sm);
}

.lp-trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-neutral-700, #374151);
    white-space: nowrap;
}

.lp-trust-item strong {
    color: var(--color-brand-blue-dark, #0f1e4a);
    font-weight: 800;
}

.lp-trust-icon {
    flex-shrink: 0;
}

/* ─── Objection Handlers ─── */

.lp-objections {
    display: flex;
    flex-direction: column;
    gap: var(--space-md, 1rem);
    margin-bottom: var(--space-xl, 2.618rem);
}

.lp-objection {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md, 1rem);
    padding: var(--space-md, 1rem);
    background: white;
    border-radius: var(--radius-lg, 0.618rem);
    border-left: 3px solid var(--color-brand-blue, #183075);
}

.lp-objection-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-neutral-50, #f9fafb);
    border-radius: var(--radius-md, 0.382rem);
}

.lp-objection-title {
    display: block;
    color: var(--color-brand-blue-dark, #0f1e4a);
    font-weight: 700;
    font-size: var(--text-base, 1rem);
    margin-bottom: 0.25rem;
}

.lp-objection p {
    color: var(--color-neutral-600, #4b5563);
    font-size: var(--text-sm, 0.875rem);
    margin: 0;
    line-height: 1.5;
}

/* ─── Testimonials ─── */

.lp-testimonials {
    display: flex;
    flex-direction: column;
    gap: var(--space-md, 1rem);
}

.lp-testimonial {
    padding: var(--space-lg, 1.618rem);
    background: white;
    border-radius: var(--radius-lg, 0.618rem);
    box-shadow: var(--shadow-sm);
}

.lp-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.lp-testimonial blockquote {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-neutral-700, #374151);
    line-height: 1.6;
    margin: 0 0 0.5rem;
    font-style: italic;
}

.lp-testimonial cite {
    font-size: var(--text-xs, 0.764rem);
    color: var(--color-neutral-500, #6b7280);
    font-style: normal;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RIGHT COLUMN — Sticky Form Card
   ═══════════════════════════════════════════════════════════════════════════════ */

.lp-form-col {
    position: sticky;
    top: calc(60px + var(--space-lg, 1.618rem));
    /* header height + spacing */
}

.lp-form-card {
    background: white;
    border-radius: var(--radius-xl, 1rem);
    padding: var(--space-xl, 2.618rem);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--color-brand-red, #EC1C24);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PROGRESS INDICATOR
   ═══════════════════════════════════════════════════════════════════════════════ */

.lp-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-xl, 2.618rem);
}

.lp-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.lp-progress-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    border: 2px solid var(--color-neutral-300, #d1d5db);
    color: var(--color-neutral-400, #9ca3af);
    background: white;
    transition: all 0.3s ease;
}

.lp-progress-label {
    font-size: 0.7rem;
    color: var(--color-neutral-400, #9ca3af);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

/* Active step */
.lp-progress-step.is-active .lp-progress-circle {
    border-color: var(--color-brand-red, #EC1C24);
    background: var(--color-brand-red, #EC1C24);
    color: white;
    box-shadow: 0 2px 8px rgba(236, 28, 36, 0.3);
}

.lp-progress-step.is-active .lp-progress-label {
    color: var(--color-brand-red, #EC1C24);
}

/* Completed step */
.lp-progress-step.is-complete .lp-progress-circle {
    border-color: var(--color-success, #10b981);
    background: var(--color-success, #10b981);
    color: white;
}

.lp-progress-step.is-complete .lp-progress-label {
    color: var(--color-success, #10b981);
}

/* Progress line between steps */
.lp-progress-line {
    flex: 1;
    height: 2px;
    background: var(--color-neutral-200, #e5e7eb);
    margin: 0 0.5rem;
    margin-bottom: 1.25rem;
    /* offset for label height */
    transition: background 0.3s ease;
}

/* Completed line */
.lp-progress-step.is-complete + .lp-progress-line {
    background: var(--color-success, #10b981);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FORM STEPS — Show/Hide + Animation
   ═══════════════════════════════════════════════════════════════════════════════ */

.lp-step {
    display: none;
}

.lp-step.is-active {
    display: block;
    animation: lpStepIn 0.3s ease-out;
}

@keyframes lpStepIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS — All inputs explicitly dark text
   ═══════════════════════════════════════════════════════════════════════════════ */

.lp-form-heading {
    font-size: var(--text-xl, 1.618rem);
    color: var(--color-brand-blue-dark, #0f1e4a) !important;
    font-weight: 800;
    margin: 0 0 0.25rem;
}

.lp-form-subtext {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-neutral-500, #6b7280);
    margin: 0 0 var(--space-lg, 1.618rem);
    max-width: none;
}

.lp-form-subtext strong {
    color: var(--color-brand-blue-dark, #0f1e4a);
}

.lp-field {
    margin-bottom: var(--space-md, 1rem);
}

.lp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: var(--space-md, 1rem);
}

.lp-field-row .lp-field {
    margin-bottom: 0;
}

.lp-label {
    display: block;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    color: var(--color-neutral-700, #374151);
    margin-bottom: 0.375rem;
}

.lp-optional {
    font-weight: 400;
    color: var(--color-neutral-400, #9ca3af);
    font-size: 0.8em;
}

.lp-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    color: #1f2937;
    background: white;
    border: 1.5px solid var(--color-neutral-300, #d1d5db);
    border-radius: var(--radius-md, 0.382rem);
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1.5;
    -webkit-appearance: none;
    appearance: none;
}

.lp-input::placeholder {
    color: var(--color-neutral-400, #9ca3af);
}

.lp-input:focus {
    outline: none;
    border-color: var(--color-brand-blue, #183075);
    box-shadow: 0 0 0 3px rgba(24, 48, 117, 0.1);
}

.lp-input.is-error {
    border-color: var(--color-danger, #ef4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.lp-input-lg {
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Select dropdown fix */
select.lp-input {
    color: #1f2937;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

/* Default option placeholder color */
select.lp-input:invalid,
select.lp-input option[value=""] {
    color: var(--color-neutral-400, #9ca3af);
}

select.lp-input option {
    color: #1f2937;
}

/* ─── Radio Group ─── */

.lp-radio-group {
    display: flex;
    gap: 0.75rem;
}

.lp-radio {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-neutral-700, #374151);
}

.lp-radio input[type="radio"] {
    accent-color: var(--color-brand-blue, #183075);
}

/* ─── Zip Confirmation ─── */

.lp-zip-confirm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md, 0.382rem);
    margin-bottom: var(--space-md, 1rem);
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.2s, height 0.2s, padding 0.2s, margin 0.2s;
    padding: 0 0.875rem;
    margin-bottom: 0;
}

.lp-zip-confirm.is-visible {
    opacity: 1;
    height: auto;
    padding: 0.625rem 0.875rem;
    margin-bottom: var(--space-md, 1rem);
}

.lp-zip-confirm-text {
    font-size: var(--text-sm, 0.875rem);
    color: #065f46;
    font-weight: 600;
}

/* "Maybe" state for unrecognized zips */
.lp-zip-confirm.is-maybe {
    background: #fffbeb;
    border-color: #fde68a;
}

.lp-zip-confirm.is-maybe .lp-zip-confirm-text {
    color: #92400e;
}

.lp-zip-confirm.is-maybe svg {
    stroke: #f59e0b;
}

/* Out-of-service-area state — red, paired with phone-call CTA inline */
.lp-zip-confirm.is-not-serviced {
    background: #fef2f2;
    border-color: #fca5a5;
}

.lp-zip-confirm.is-not-serviced .lp-zip-confirm-text {
    color: #991b1b;
}

.lp-zip-confirm.is-not-serviced svg {
    stroke: #dc2626;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.lp-btn-next,
.lp-btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: var(--color-brand-red, #EC1C24);
    border: none;
    border-radius: var(--radius-lg, 0.618rem);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.lp-btn-next:hover,
.lp-btn-submit:hover {
    background: var(--color-brand-red-dark, #b9151b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 28, 36, 0.3);
}

.lp-btn-next:active,
.lp-btn-submit:active {
    transform: translateY(0);
}

.lp-btn-back {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-neutral-500, #6b7280);
    background: transparent;
    border: 1.5px solid var(--color-neutral-300, #d1d5db);
    border-radius: var(--radius-lg, 0.618rem);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.lp-btn-back:hover {
    color: var(--color-neutral-700, #374151);
    border-color: var(--color-neutral-400, #9ca3af);
}

.lp-step-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-lg, 1.618rem);
}

.lp-step-buttons .lp-btn-next,
.lp-step-buttons .lp-btn-submit {
    flex: 1;
}

/* ─── Form footer text ─── */

.lp-form-footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-neutral-400, #9ca3af);
    margin: var(--space-md, 1rem) 0 0;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MINIMAL FOOTER
   ═══════════════════════════════════════════════════════════════════════════════ */

.lp-footer {
    background: white;
    border-top: 1px solid var(--color-neutral-200, #e5e7eb);
    padding: var(--space-lg, 1.618rem) 0;
}

.lp-footer-inner {
    max-width: var(--container-lg, 75.999rem);
    margin: 0 auto;
    padding: 0 var(--space-lg, 1.618rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-neutral-500, #6b7280);
}

.lp-footer-inner p {
    margin: 0;
}

.lp-footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lp-footer-links a {
    color: var(--color-neutral-500, #6b7280);
    text-decoration: none;
}

.lp-footer-links a:hover {
    color: var(--color-brand-blue, #183075);
}

.lp-footer-sep {
    color: var(--color-neutral-300, #d1d5db);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   STICKY MOBILE CTA BAR
   ═══════════════════════════════════════════════════════════════════════════════ */

.lp-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: none;
    /* shown on mobile via JS + media query */
    background: white;
    border-top: 1px solid var(--color-neutral-200, #e5e7eb);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.625rem 1rem;
    gap: 0.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.lp-sticky-cta.is-visible {
    transform: translateY(0);
}

.lp-sticky-phone,
.lp-sticky-quote {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg, 0.618rem);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.lp-sticky-phone {
    background: white;
    border: 2px solid var(--color-brand-blue, #183075);
    color: var(--color-brand-blue, #183075);
}

.lp-sticky-quote {
    background: var(--color-brand-red, #EC1C24);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile First Adjustments
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .lp-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl, 2.618rem);
    }

    /* Form card comes FIRST on mobile */
    .lp-form-col {
        order: -1;
        position: static;
    }

    .lp-content {
        padding-top: 0;
    }

    .lp-main {
        padding: var(--space-lg, 1.618rem) 0 6rem;
        /* extra bottom for sticky bar */
    }

    .lp-headline {
        font-size: 1.75rem;
    }

    /* Show sticky CTA on mobile */
    .lp-sticky-cta {
        display: flex;
    }

    .lp-trust-bar {
        gap: 0.75rem;
    }

    .lp-trust-item {
        font-size: 0.8rem;
    }

    .lp-field-row {
        grid-template-columns: 1fr;
    }

    .lp-footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lp-form-card {
        padding: var(--space-lg, 1.618rem);
    }

    .lp-progress-label {
        font-size: 0.6rem;
    }

    .lp-progress-circle {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .lp-radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SUCCESS/ERROR STATES (handled by main.js FormFeedback popup)
   We add a custom thank-you state for the form card itself
   ═══════════════════════════════════════════════════════════════════════════════ */

.lp-thank-you {
    text-align: center;
    padding: var(--space-xl, 2.618rem) var(--space-md, 1rem);
}

.lp-thank-you-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #d4edda;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md, 1rem);
}

.lp-thank-you h2 {
    color: #155724 !important;
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
    text-align: center !important;
}

.lp-thank-you p {
    color: var(--color-neutral-600, #4b5563);
    font-size: 1rem;
    margin: 0 0 0.5rem;
    max-width: none;
    text-align: center;
}

.lp-thank-you .lp-btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-brand-blue, #183075);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg, 0.618rem);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    margin-top: var(--space-md, 1rem);
    transition: background 0.15s;
}

.lp-thank-you .lp-btn-call:hover {
    background: var(--color-brand-blue-dark, #0f1e4a);
}
