/* Contact page and the thank-you page that follows an inquiry. */

@layer pages {
    /* The inquiry panel itself is styled in components.css, because the pop-up uses it on every page. */
    .contact .inquiry-panel {
        box-shadow: var(--shadow-card);
    }

    .next-steps {
        margin-top: var(--space-2xl);
        padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
        background: var(--linen);
    }

    .next-steps h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .next-steps ol {
        display: grid;
        gap: var(--space-md) var(--space-xl);
        margin-top: var(--space-lg);
        counter-reset: step;
    }

    .next-steps li {
        display: grid;
        grid-template-columns: 2.25rem 1fr;
        gap: var(--space-sm);
        align-items: start;
        counter-increment: step;
    }

    .next-steps li::before {
        content: counter(step);
        display: grid;
        place-items: center;
        width: 2.25rem;
        height: 2.25rem;
        font-family: var(--font-display);
        font-size: var(--text-lg);
        font-weight: 600;
        color: var(--white);
        background: var(--sand);
    }

    @media (min-width: 54rem) {
        .next-steps ol {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* ---------- Thank-you page ---------- */

    .thanks__grid {
        display: grid;
        gap: var(--space-2xl);
    }

    .thanks__copy h2 {
        margin-block: var(--space-sm) var(--space-md);
    }

    .thanks__copy p + p {
        margin-top: var(--space-md);
    }

    .thanks__copy {
        max-width: 42rem;
    }

    .thanks__actions {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-lg) var(--space-xl);
        align-items: center;
        margin-top: var(--space-xl);
    }

    .thanks__aside {
        padding: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
        border: 1px solid var(--line);
    }

    .thanks__aside h2 {
        font-size: 1.5rem;
    }

    .thanks__aside ul {
        display: grid;
        gap: var(--space-md);
        margin-top: var(--space-lg);
        padding: 0;
        list-style: none;
    }

    .thanks__aside li {
        display: flex;
        gap: var(--space-sm);
        align-items: center;
        overflow-wrap: anywhere;
    }

    .thanks__aside .icon {
        color: var(--sand-ink);
    }

    .thanks__aside a {
        font-weight: 500;
        color: var(--navy);
    }

    .reading {
        display: grid;
        gap: 1.875rem;
    }

    .reading li {
        padding: var(--space-lg);
        background: var(--white);
        border: 1px solid var(--line);
        transition: box-shadow var(--steady) var(--ease);
    }

    .reading li:hover {
        box-shadow: var(--shadow-soft);
    }

    .reading h3 {
        margin-bottom: var(--space-xs);
        font-size: 1.25rem;
    }

    .reading h3 a {
        color: var(--navy);
        text-decoration: none;
    }

    .reading h3 a:hover {
        color: var(--sand-ink);
    }

    @media (min-width: 40rem) {
        .reading {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 64rem) {
        .thanks__grid {
            grid-template-columns: minmax(0, 1fr) 23rem;
            align-items: start;
        }

        .reading {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}
