/* =========================================================
   ZACHRY INSURANCE
   POLICY DECODER
========================================================= */


/* =========================================================
   HERO
========================================================= */

.decoder-hero {
    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #172b46 52%,
            #1e3a5f 100%
        );

    padding: 95px 0 110px;
}


.decoder-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(460px, 1.1fr);

    gap: 70px;
    align-items: start;
}


/* =========================================================
   INTRO
========================================================= */

.decoder-eyebrow {
    display: inline-block;

    color: #e8c95b;

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;

    margin-bottom: 16px;
}


.decoder-eyebrow.dark {
    color: #806515;
}


.decoder-intro {
    padding-top: 22px;
}


.decoder-intro > h1 {
    color: #ffffff;

    font-family: "Playfair Display", serif;

    font-size: clamp(3rem, 5vw, 4.7rem);
    line-height: 1.03;

    margin-bottom: 25px;

    letter-spacing: -0.035em;
}


.decoder-intro > h1 span {
    color: #e8c95b;
}


.decoder-lead {
    max-width: 670px;

    color: #dbeafe;

    font-size: 1.08rem;
    line-height: 1.85;

    margin-bottom: 42px;
}


.decoder-feature-list {
    display: grid;
    gap: 25px;
}


.decoder-feature {
    display: grid;

    grid-template-columns: 48px 1fr;

    gap: 18px;

    align-items: start;
}


.decoder-feature-number {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 48px;
    height: 48px;

    border:
        1px solid
        rgba(232, 201, 91, 0.4);

    border-radius: 50%;

    color: #e8c95b;

    font-size: 0.75rem;
    font-weight: 800;
}


.decoder-feature h2 {
    color: #ffffff;

    font-family: "Inter", sans-serif;

    font-size: 1rem;

    margin: 0 0 5px;
}


.decoder-feature p {
    color: #b9c9dc;

    font-size: 0.92rem;
    line-height: 1.65;

    margin: 0;
}


/* =========================================================
   CARD
========================================================= */

.decoder-card {
    background: #ffffff;

    border-radius: 26px;

    box-shadow:
        0 32px 80px
        rgba(0, 0, 0, 0.28);

    overflow: hidden;
}


.decoder-screen {
    padding: 46px;
}


.decoder-screen[hidden] {
    display: none;
}


.decoder-badge {
    display: inline-flex;

    align-items: center;

    background: #f6efcf;

    color: #68510e;

    border-radius: 999px;

    padding: 8px 13px;

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 0.055em;

    text-transform: uppercase;

    margin-bottom: 22px;
}


.decoder-complete-badge {
    background: #dcfce7;
    color: #166534;
}


.decoder-screen > h2 {
    color: #0f172a;

    font-family: "Playfair Display", serif;

    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.15;

    margin-bottom: 18px;
}


.decoder-screen > p {
    color: #64748b;

    font-size: 1rem;
    line-height: 1.75;

    margin-bottom: 28px;
}


/* =========================================================
   PRIVACY / WARNING BOXES
========================================================= */

.decoder-privacy-box,
.decoder-important-box {
    border: 1px solid #f4d98b;

    background: #fffaf0;

    border-radius: 14px;

    padding: 18px;

    margin: 24px 0;
}


.decoder-privacy-box strong,
.decoder-important-box strong {
    display: block;

    color: #5f4710;

    margin-bottom: 6px;
}


.decoder-privacy-box p,
.decoder-important-box p {
    color: #6b5a2a;

    font-size: 0.9rem;
    line-height: 1.65;

    margin: 0;
}


/* =========================================================
   CHECK LIST
========================================================= */

.decoder-check-list {
    display: grid;

    gap: 13px;

    margin: 28px 0 32px;
}


.decoder-check-list > div {
    display: flex;

    gap: 11px;

    align-items: center;

    color: #334155;

    font-size: 0.93rem;
    font-weight: 600;
}


.decoder-check-list span {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    border-radius: 50%;

    background: #f6efcf;

    color: #68510e;

    font-size: 0.8rem;
    font-weight: 800;
}


.decoder-small-note {
    text-align: center;

    color: #94a3b8 !important;

    font-size: 0.79rem !important;
    line-height: 1.5 !important;

    margin: 16px 0 0 !important;
}


/* =========================================================
   BUTTONS
========================================================= */

.decoder-primary-button,
.decoder-secondary-button {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    width: 100%;

    min-height: 54px;

    border-radius: 12px;

    padding: 16px 22px;

    font-family: inherit;

    font-size: 0.97rem;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}


.decoder-primary-button {
    border: 0;

    background: #c9a227;

    color: #0f172a;
}


.decoder-secondary-button {
    border:
        1px solid
        rgba(255, 255, 255, 0.32);

    background: transparent;

    color: #ffffff;
}


.decoder-primary-button:hover,
.decoder-secondary-button:hover {
    transform: translateY(-2px);
}


.decoder-primary-button:hover {
    background: #d7b63e;

    box-shadow:
        0 10px 24px
        rgba(128, 101, 21, 0.22);
}


.decoder-secondary-button:hover {
    background:
        rgba(255, 255, 255, 0.08);
}


.decoder-primary-button:focus-visible,
.decoder-secondary-button:focus-visible,
.decoder-back-button:focus-visible,
.decoder-text-button:focus-visible,
.decoder-term-grid label:has(input:focus-visible) {
    outline:
        3px solid
        rgba(128, 101, 21, 0.35);

    outline-offset: 3px;
}


.decoder-primary-button:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
}


.decoder-back-button,
.decoder-text-button {
    border: 0;

    background: transparent;

    color: #64748b;

    font-family: inherit;

    font-weight: 700;

    cursor: pointer;
}


.decoder-back-button {
    padding: 4px 0;

    margin-bottom: 20px;

    font-size: 0.88rem;
}


.decoder-text-button {
    display: block;

    width: 100%;

    margin-top: 13px;

    font-size: 0.88rem;
}


.decoder-back-button:hover,
.decoder-text-button:hover {
    color: #0f172a;
}


/* =========================================================
   FIELDS
========================================================= */

.decoder-field-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;
}


.decoder-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.decoder-field-full {
    grid-column: 1 / -1;
}


.decoder-field label,
.decoder-terms-fieldset legend {
    color: #334155;

    font-weight: 800;
}


.decoder-field-help {
    color: #7c8a9e;

    font-size: 0.78rem;
    line-height: 1.45;
}


/* =========================================================
   TERMS
========================================================= */

.decoder-terms-fieldset {
    border: 1px solid #dbe3ec;

    border-radius: 14px;

    padding: 20px;

    margin: 4px 0;
}


.decoder-terms-fieldset legend {
    padding: 0 8px;
}


.decoder-terms-fieldset > p {
    color: #64748b;

    font-size: 0.86rem;
    line-height: 1.5;

    margin: 0 0 16px;
}


.decoder-term-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;
}


.decoder-term-grid label {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    padding: 11px 12px;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    color: #334155;

    font-size: 0.86rem;
    font-weight: 600;

    line-height: 1.4;

    cursor: pointer;
}


.decoder-term-grid label:hover {
    border-color: #d4bd69;

    background: #fffdf6;
}


.decoder-term-grid input[type="checkbox"] {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    margin: 1px 0 0;

    padding: 0;

    accent-color: #c9a227;
}


/* =========================================================
   RESULTS
========================================================= */

.decoder-results {
    display: grid;

    gap: 16px;

    margin: 24px 0;
}


.decoder-result-card {
    border: 1px solid #e2e8f0;

    border-radius: 14px;

    padding: 20px;

    background: #f8fafc;
}


.decoder-result-card h3 {
    color: #0f172a;

    font-size: 1rem;

    margin: 0 0 8px;
}


.decoder-result-card p {
    color: #58677b;

    font-size: 0.91rem;
    line-height: 1.65;

    margin: 0;
}


.decoder-result-card +
.decoder-result-card {
    margin-top: 0;
}


.decoder-result-label {
    display: inline-block;

    margin-bottom: 8px;

    color: #806515;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.decoder-unmatched {
    border-color: #f3df9f;

    background: #fffaf0;
}


/* =========================================================
   REVIEW CTA
========================================================= */

.decoder-review-choice {
    padding-top: 5px;
}


.decoder-review-choice h3 {
    color: #0f172a;

    font-family: "Playfair Display", serif;

    font-size: 1.55rem;

    margin-bottom: 10px;
}


.decoder-review-choice p {
    color: #64748b;

    line-height: 1.65;

    margin-bottom: 20px;
}


/* =========================================================
   SUCCESS
========================================================= */

.decoder-success-screen {
    text-align: center;
}


.decoder-success-check {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: #dcfce7;

    color: #166534;

    font-size: 1.7rem;
    font-weight: 800;
}


.decoder-home-link {
    display: inline-block;

    margin-top: 18px;

    color: #64748b;

    font-weight: 700;

    text-decoration: none;
}


.decoder-home-link:hover {
    color: #0f172a;
}


/* =========================================================
   EDUCATIONAL SECTION
========================================================= */

.decoder-info-section {
    background: #f8fafc;

    padding: 95px 0;
}


.decoder-info-grid {
    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 80px;

    align-items: start;
}


.decoder-info-grid h2 {
    color: #0f172a;

    font-family: "Playfair Display", serif;

    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.18;

    margin: 0;
}


.decoder-info-grid p {
    color: #64748b;

    font-size: 1.02rem;
    line-height: 1.8;

    margin: 0 0 20px;
}


/* =========================================================
   BOTTOM CTA
========================================================= */

.decoder-bottom-section {
    background: #ffffff;

    padding: 95px 0;
}


.decoder-bottom-card {
    display: grid;

    grid-template-columns:
        1.25fr 0.75fr;

    gap: 50px;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1e3a5f
        );

    border-radius: 24px;

    padding: 50px;

    box-shadow:
        0 22px 50px
        rgba(15, 23, 42, 0.15);
}


.decoder-bottom-card h2 {
    color: #ffffff;

    font-family: "Playfair Display", serif;

    font-size:
        clamp(2rem, 3vw, 2.8rem);

    line-height: 1.2;

    margin: 0 0 14px;
}


.decoder-bottom-card p {
    color: #cbd5e1;

    max-width: 650px;

    line-height: 1.7;

    margin: 0;
}


.decoder-bottom-buttons {
    display: grid;

    gap: 12px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .decoder-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    .decoder-intro {
        max-width: 780px;
    }


    .decoder-card {
        max-width: 820px;

        width: 100%;
    }


    .decoder-info-grid,
    .decoder-bottom-card {
        grid-template-columns: 1fr;
    }


    .decoder-info-grid {
        gap: 30px;
    }


    .decoder-bottom-card {
        gap: 32px;
    }


    .decoder-bottom-buttons {
        max-width: 390px;
    }

}


@media (max-width: 700px) {

    .decoder-hero {
        padding: 65px 0 75px;
    }


    .decoder-intro > h1 {
        font-size: 3rem;
    }


    .decoder-lead {
        font-size: 1rem;
    }


    .decoder-feature {
        grid-template-columns:
            40px 1fr;

        gap: 14px;
    }


    .decoder-feature-number {
        width: 40px;
        height: 40px;
    }


    .decoder-screen {
        padding: 30px 22px;
    }


    .decoder-field-grid,
    .decoder-term-grid {
        grid-template-columns: 1fr;
    }


    .decoder-field-full {
        grid-column: auto;
    }


    .decoder-info-section,
    .decoder-bottom-section {
        padding: 70px 0;
    }


    .decoder-bottom-card {
        padding: 34px 24px;
    }

}


@media (max-width: 430px) {

    .decoder-intro > h1 {
        font-size: 2.55rem;
    }


    .decoder-screen {
        padding: 27px 18px;
    }

}