/**
 * Sidebar contact form for resource articles.
 * Injected by assets/js/article-contact-form.js, which wraps the page's
 * .article-wrap in .article-layout and appends .article-sidebar beside it.
 * Colors are hard-coded rather than var()-based because each article page
 * declares its own :root palette.
 */

.article-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
    max-width: 1220px;
    margin: 0 auto;
}

.article-layout > .article-wrap {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.article-sidebar {
    position: sticky;
    top: 84px;
    flex: 0 0 340px;
    width: 340px;
    padding: 48px 20px 60px 0;
}

.asf-card {
    background: #ffffff;
    border: 1px solid #dde5ec;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(13, 44, 75, 0.08);
    padding: 24px 22px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.asf-card .asf-eyebrow {
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #c05316;
}

.asf-card .asf-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    color: #0d2c4b;
}

.asf-card .asf-desc {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #5d6b7a;
}

.asf-card .asf-row {
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.asf-card .asf-row label {
    font-size: 12.5px;
    font-weight: 600;
    color: #1c2b3a;
}

.asf-card input,
.asf-card textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14.5px;
    color: #1c2b3a;
    background: #fbfcfe;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 9px 11px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.asf-card textarea {
    resize: vertical;
    min-height: 84px;
    line-height: 1.5;
}

.asf-card input:focus,
.asf-card textarea:focus {
    outline: none;
    border-color: #1a6eb5;
    box-shadow: 0 0 0 3px rgba(26, 110, 181, 0.14);
}

.asf-card .asf-btn {
    width: 100%;
    margin-top: 4px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: #c05316;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.asf-card .asf-btn:hover {
    background: #a4460f;
}

.asf-card .asf-btn:disabled {
    background: #9aa6b2;
    cursor: default;
}

.asf-card .asf-fineprint {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5d6b7a;
}

.asf-card .asf-fineprint.is-error {
    color: #96281b;
}

.asf-card .asf-thanks {
    display: none;
    font-size: 14.5px;
    line-height: 1.6;
    color: #14684f;
    background: #eaf7f2;
    border: 1px solid #bfe4d6;
    border-radius: 10px;
    padding: 16px 16px;
}

.asf-card.is-sent .asf-thanks {
    display: block;
}

.asf-card.is-sent .asf-form,
.asf-card.is-sent .asf-desc,
.asf-card.is-sent .asf-fineprint {
    display: none;
}

.asf-gotcha {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Stack below the article once there is no room for a true sidebar. */
@media (max-width: 1080px) {
    .article-layout {
        display: block;
    }

    .article-layout > .article-wrap {
        margin: 0 auto;
    }

    .article-sidebar {
        position: static;
        width: auto;
        max-width: 760px;
        margin: 0 auto;
        padding: 0 20px 64px;
    }
}

@media print {
    .article-sidebar {
        display: none;
    }
}
