/*
    Applying to join an agency's network, on that agency's own site.

    A wide two-column page: the form on the left, why-join and how-to-reach-us
    on the right. Colours come from the portal tokens, so the page wears the
    agency's palette rather than a second one of its own.
*/
.sar { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.sar-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }

.sar-card { background: var(--fs-surface); border: 1px solid var(--fs-line); border-radius: 18px; padding: 1.5rem 1.75rem; }

.sar-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.sar-head-icon { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px; background: rgb(245 50 91 / .1); color: var(--fs-accent); display: grid; place-items: center; }
.sar-head-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sar-head-text h1 { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--fs-ink); letter-spacing: -.02em; }
.sar-head-text p { margin: .25rem 0 0; font-size: .9rem; color: var(--fs-muted); }

/* Details / Verification / Complete */
.sar-steps { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-wrap: wrap; }
.sar-step { display: flex; align-items: center; gap: .45rem; }
.sar-step b { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: .78rem; font-weight: 800; background: var(--fs-sunk); color: var(--fs-faint); }
.sar-step span { font-size: .8rem; font-weight: 600; color: var(--fs-faint); }
.sar-step.is-on b { background: var(--fs-accent); color: #fff; }
.sar-step.is-on span { color: var(--fs-accent); }
.sar-step.is-done b { background: rgb(18 183 106 / .14); color: #067647; }
.sar-step-line { width: 26px; height: 2px; background: var(--fs-line); border-radius: 2px; }

.sar-form { margin-top: 1.25rem; }

/* The four-digit human check */
.sar-captcha { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; margin-top: .35rem; }
.sar-captcha label { display: block; font-size: .82rem; font-weight: 600; color: var(--fs-ink); margin-bottom: .3rem; }
.sar-captcha input { width: 170px; border: 1px solid var(--fs-line); border-radius: 10px; padding: .6rem .75rem; font-size: .92rem; background: var(--fs-surface); color: var(--fs-ink); }
.sar-code { display: flex; align-items: center; gap: .5rem; background: var(--fs-sunk); border-radius: 10px; padding: .55rem .85rem; }
.sar-code b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; font-weight: 800; letter-spacing: .38em; color: var(--fs-ink); user-select: none; }
.sar-code button { border: 0; background: transparent; cursor: pointer; color: var(--fs-muted); display: grid; place-items: center; padding: .15rem; }
.sar-code button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sar-submit { width: 100%; margin-top: 1.1rem; border: 0; border-radius: 12px; background: var(--fs-accent); color: #fff; font-size: 1rem; font-weight: 700; padding: .95rem 1.5rem; cursor: pointer; }
.sar-submit:disabled { opacity: .6; cursor: progress; }
.sar-foot { margin: .9rem 0 0; text-align: center; font-size: .88rem; color: var(--fs-muted); }
.sar-foot a { color: var(--fs-accent); font-weight: 700; text-decoration: none; }

/* The right rail */
.sar-side { display: flex; flex-direction: column; gap: 1rem; }
.sar-promo { background: linear-gradient(180deg, rgb(245 50 91 / .07), rgb(245 50 91 / .02)); border: 1px solid var(--fs-line); border-radius: 18px; padding: 1.35rem; }
.sar-promo h2 { margin: 0 0 .4rem; font-size: 1.12rem; font-weight: 800; color: var(--fs-ink); }
.sar-promo p { margin: 0 0 1rem; font-size: .87rem; line-height: 1.6; color: var(--fs-muted); }
.sar-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.sar-points li { display: flex; align-items: flex-start; gap: .6rem; font-size: .87rem; color: var(--fs-ink); }
.sar-points i { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; background: var(--fs-surface); border: 1px solid var(--fs-line); display: grid; place-items: center; font-style: normal; }
.sar-points i svg { width: 15px; height: 15px; fill: none; stroke: var(--fs-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sar-help { background: var(--fs-surface); border: 1px solid var(--fs-line); border-radius: 18px; padding: 1.35rem; }
.sar-help h2 { margin: .55rem 0 .35rem; font-size: 1.02rem; font-weight: 800; color: var(--fs-ink); }
.sar-help p { margin: 0 0 .9rem; font-size: .86rem; line-height: 1.6; color: var(--fs-muted); }
.sar-help a, .sar-help span { display: flex; align-items: center; gap: .55rem; font-size: .87rem; color: var(--fs-ink); text-decoration: none; padding: .45rem 0; border-top: 1px solid var(--fs-line); }
.sar-help svg { width: 16px; height: 16px; fill: none; stroke: var(--fs-muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Confirming the address */
.sar-verify { max-width: 520px; margin: 2.5rem auto; }
.sar-verify .sar-card { text-align: center; }
.sar-verify p { font-size: .92rem; color: var(--fs-muted); line-height: 1.6; }
.sar-done { width: 58px; height: 58px; margin: 0 auto .9rem; border-radius: 999px; background: rgb(18 183 106 / .12); color: #067647; display: grid; place-items: center; }
.sar-done svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
    .sar-grid { grid-template-columns: minmax(0, 1fr); }
    .sar-steps { margin-left: 0; }
    .sar-card { padding: 1.25rem; }
}
