/*
    Agent registration: an agency signing itself up on our portal, and a
    sub-agent applying on an agency's own white label. One design for both.
    The buttons wear the portal's accent; the steps and links are blue.
*/
.as {
    --as-accent: var(--fs-accent, #f5325b);
    --as-blue: #1570ef;
    --as-ink: #101828;
    --as-body: #475467;
    --as-muted: #667085;
    --as-faint: #98a2b3;
    --as-line: #e4e7ec;
    --as-field: #d0d5dd;
    --as-soft: color-mix(in srgb, var(--as-accent) 12%, #fff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f7f8fb;
    color: var(--as-ink);
    font-size: 14px;
}
.as *, .as *::before, .as *::after { box-sizing: border-box; }
.as [x-cloak] { display: none !important; }
.as svg { flex: none; }
.as-wrap { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.as-sr { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.as-nav { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid #eef0f4; }
.as-nav-in { display: flex; align-items: center; gap: 28px; max-width: 1100px; margin: 0 auto; padding: 10px 20px; }
.as-brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.as-brand img { height: 32px !important; }
.as-links { display: flex; gap: 26px; margin: 0 auto; font-size: 13.5px; font-weight: 500; }
.as-links a { color: #344054; text-decoration: none; transition: color .15s; }
.as-links a:hover { color: var(--as-accent); }
.as-nav-right { display: flex; align-items: center; gap: 12px; }
.as-lang { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; font-size: 13px; color: #344054; }
.as-lang svg { width: 17px; height: 17px; }
.as-btn-outline, .as-btn-solid { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 22px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, filter .15s; }
.as-btn-outline { border: 1.5px solid var(--as-accent); background: #fff; color: var(--as-accent); }
.as-btn-outline:hover { background: var(--as-soft); }
.as-btn-solid { border: 1.5px solid var(--as-accent); background: var(--as-accent); color: #fff; }
.as-btn-solid:hover { filter: brightness(.95); }

/* ---------- hero ---------- */
.as-hero { position: relative; overflow: hidden; padding: 26px 0 18px; background: linear-gradient(180deg, rgb(246 249 253 / .5) 0%, rgb(247 248 251 / .9) 70%, #f7f8fb 100%), var(--as-hero) center 38% / cover no-repeat, #eef3fa; }
.as-hero-art { position: absolute; inset: 0; pointer-events: none; }
.as-wing { position: absolute; top: 0; right: 0; width: 38%; height: 100%; object-fit: cover; object-position: 35% 45%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, #000 48%); }
.as-script-wrap { position: absolute; top: 18px; left: 60%; display: flex; flex-direction: column; transform: translateX(-50%); }
.as-script { font-family: "Segoe Script", "Brush Script MT", "Bradley Hand", "Snell Roundhand", cursive; font-size: 40px; line-height: .95; color: #101828; transform: rotate(-8deg); }
.as-strap { margin: 4px 0 0 86px; font-size: 10px; font-weight: 800; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: #101828; }
.as-ppp { position: absolute; top: 20px; right: 64px; z-index: 1; font-size: 10px; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: #344054; }
.as-ppp i { display: block; width: 14px; height: 2px; margin-bottom: 8px; background: var(--as-accent); }
.as-pill { display: inline-block; padding: 4px 9px; border-radius: 4px; background: var(--as-soft); color: var(--as-accent); font-size: 12px; font-weight: 600; }
.as-hero h1 { margin: 10px 0 0; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #0b1220; }
.as-hero p { margin: 8px 0 0; max-width: 60ch; font-size: 15.5px; color: var(--as-body); }
.as-steps { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 700px; margin: 26px auto 0; padding: 0; list-style: none; }
.as-steps li { display: flex; flex: none; align-items: center; gap: 12px; }
.as-steps b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eef0f4; color: var(--as-body); font-size: 14px; font-weight: 700; }
.as-steps span { font-size: 14px; font-weight: 500; color: var(--as-muted); }
.as-steps li.is-on b { background: var(--as-blue); color: #fff; box-shadow: 0 0 0 4px rgb(21 112 239 / .14); }
.as-steps li.is-on span { color: var(--as-blue); font-weight: 600; }
.as-steps > i { flex: 1; min-width: 40px; max-width: 130px; height: 2px; background: var(--as-field); }

/* ---------- the form and the rail ---------- */
.as-main { display: grid; grid-template-columns: minmax(0, 1fr) 302px; align-items: start; gap: 16px; margin-top: 12px; padding-bottom: 24px; }
.as-card { background: #fff; border: 1px solid var(--as-line); border-radius: 10px; box-shadow: 0 1px 2px rgb(16 24 40 / .03); }
.as-sec { padding: 18px 22px 20px; }
.as-sec + .as-sec { border-top: 1px solid #eef0f4; }
.as-sec-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.as-tile { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--as-soft); color: var(--as-accent); flex: none; }
.as-tile svg { width: 22px; height: 22px; }
.as-sec-head h2 { margin: 1px 0 0; font-size: 16px; font-weight: 700; color: var(--as-ink); }
.as-sec-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--as-muted); }
.as-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.as-grid > .is-wide { grid-column: 1 / -1; }
.as-label { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--as-ink); }
.as-label em { margin-left: 1px; font-style: normal; color: #f04438; }
.as-label .as-opt { font-weight: 400; color: var(--as-muted); }
.as-help { margin: 5px 0 0; font-size: 11.5px; color: var(--as-body); }
.as-err { margin: 5px 0 0; font-size: 12px; color: #d92d20; }

.as-control { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid var(--as-field); border-radius: 6px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.as-control:focus-within { border-color: #84adff; box-shadow: 0 0 0 3px rgb(21 112 239 / .12); }
.as-control.is-bad { border-color: #fda29b; }
.as-control > svg { width: 16px; height: 16px; color: var(--as-faint); }
.as-control input, .as-control select, .as-control textarea { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; font: inherit; font-size: 13.5px; color: var(--as-ink); }
.as-control input:focus, .as-control select:focus, .as-control textarea:focus { outline: 0; box-shadow: none; }
.as-control input::placeholder, .as-control textarea::placeholder { color: var(--as-faint); opacity: 1; }
.as-control.is-area { align-items: flex-start; height: auto; padding-top: 9px; padding-bottom: 6px; }
.as-control.is-area > svg { margin-top: 2px; }
.as-control.is-area textarea { min-height: 42px; line-height: 1.45; resize: vertical; }
.as-control.is-select select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.as-control.is-select select.is-empty { color: var(--as-faint); }
.as-chev { width: 16px !important; height: 16px !important; margin-left: auto; color: var(--as-body) !important; pointer-events: none; }
.as-eye { display: grid; place-items: center; width: 42px; height: 100%; margin-right: -12px; border: 0; border-left: 1px solid var(--as-field); background: transparent; color: var(--as-body); cursor: pointer; }
.as-eye svg { width: 18px; height: 18px; }
.as-phone { display: flex; gap: 12px; }
.as-grow { flex: 1; min-width: 0; }

/* ---------- country and dial-code pickers ---------- */
.as-pick { position: relative; }
.as-pick-dial { flex: none; width: 120px; }
.as-pick-btn { width: 100%; cursor: pointer; text-align: left; font: inherit; font-size: 13.5px; color: var(--as-ink); }
.as-pick-btn .is-ph { color: var(--as-faint); }
.as-flag { width: 21px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgb(16 24 40 / .08); }
.as-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: max(100%, 260px); overflow: hidden; background: #fff; border: 1px solid var(--as-line); border-radius: 10px; box-shadow: 0 12px 32px rgb(16 24 40 / .14); }
.as-pick-dial .as-menu { width: 190px; }
.as-menu-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #eef0f4; }
.as-menu-search svg { width: 16px; height: 16px; color: var(--as-faint); }
.as-menu-search input { flex: 1; min-width: 0; padding: 4px 0; border: 0; outline: 0; box-shadow: none; background: transparent; font: inherit; font-size: 13px; }
.as-menu ul { max-height: 260px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; }
.as-menu li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--as-ink); cursor: pointer; }
.as-menu li.is-active { background: #f2f4f7; }
.as-menu li.is-on { font-weight: 600; color: var(--as-blue); }
.as-menu li.as-empty { color: var(--as-faint); cursor: default; }

/* ---------- uploads ---------- */
.as-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 10px 14px; border: 1.5px dashed #b2c3e0; border-radius: 6px; background: #f8fafe; transition: border-color .15s, background .15s; }
.as-drop.is-over { border-color: var(--as-blue); background: #eff4ff; }
.as-drop.is-bad { border-color: #fda29b; }
.as-drop-label { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12.5px; color: var(--as-body); cursor: pointer; }
.as-drop-label svg { width: 20px; height: 20px; color: var(--as-blue); }
.as-drop-label u { font-weight: 500; text-decoration: none; color: var(--as-blue); }
.as-file { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 13px; }
.as-file svg { width: 18px; height: 18px; color: var(--as-blue); }
.as-file b { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.as-file button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--as-muted); cursor: pointer; }
.as-file button:hover { background: #eef0f4; }
.as-file button svg { width: 15px; height: 15px; color: currentColor; }
.as-busy { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 6px; background: rgb(248 250 254 / .9); font-size: 12.5px; color: var(--as-blue); }

/* ---------- terms, the code, the button ---------- */
.as-final { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 14px 22px; margin-top: 20px; }
.as-check { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12.5px; color: var(--as-ink); cursor: pointer; }
.as-check input { width: 16px; height: 16px; margin: 0; border-radius: 4px; accent-color: var(--as-accent); }
.as-check a { color: var(--as-blue); text-decoration: none; }
.as-check a:hover { text-decoration: underline; }
.as-captcha { display: flex; align-items: center; gap: 12px; }
.as-code-input { flex: none; width: 154px; padding: 0; overflow: hidden; }
.as-code-input > span { display: grid; place-items: center; width: 36px; height: 100%; border-right: 1px solid var(--as-field); color: var(--as-blue); }
.as-code-input > span svg { width: 16px; height: 16px; }
.as-code-input input { padding: 0 10px; }
.as-code { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px 0 14px; border-radius: 6px; background: #f2f4f7; }
.as-code b { font-size: 18px; font-weight: 700; letter-spacing: .3em; color: var(--as-ink); user-select: none; font-variant-numeric: tabular-nums; }
.as-code button { display: grid; place-items: center; border: 0; background: transparent; color: var(--as-body); cursor: pointer; }
.as-code button svg { width: 17px; height: 17px; }
.as-submit { width: 100%; height: 40px; border: 0; border-radius: 6px; background: var(--as-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px color-mix(in srgb, var(--as-accent) 28%, transparent); transition: filter .15s; }
.as-submit:hover { filter: brightness(.96); }
.as-submit:disabled { opacity: .7; cursor: progress; }
.as-already { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--as-body); }
.as-already a { font-weight: 600; text-decoration: none; color: var(--as-blue); }

/* ---------- why partner, and the picture ---------- */
.as-side { display: grid; gap: 16px; }
.as-why { padding: 22px 18px; border: 1px solid color-mix(in srgb, var(--as-accent) 14%, #fff); border-radius: 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--as-accent) 7%, #fff), color-mix(in srgb, var(--as-accent) 3%, #fff)); }
.as-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--as-accent); }
.as-why h2 { margin: 8px 0 0; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--as-ink); }
.as-why > p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--as-body); }
.as-why ul { display: grid; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.as-why li { display: flex; align-items: flex-start; gap: 14px; }
.as-why li i { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid #eaecf0; border-radius: 9px; background: #fff; color: var(--as-blue); box-shadow: 0 1px 2px rgb(16 24 40 / .04); }
.as-why li i svg { width: 20px; height: 20px; }
.as-why li b { display: block; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--as-ink); }
.as-why li small { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: var(--as-muted); }
.as-promo { position: relative; min-height: 240px; padding: 22px 18px; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #fde7ef 0%, rgb(253 231 239 / .8) 32%, rgb(253 231 239 / 0) 62%), var(--as-side) center 70% / cover no-repeat, #fde7ef; }
.as-promo-script { display: block; margin-top: 10px; font-family: "Segoe Script", "Brush Script MT", "Bradley Hand", "Snell Roundhand", cursive; font-size: 28px; line-height: 1.05; color: var(--as-ink); transform: rotate(-8deg); transform-origin: left center; }
.as-promo i { display: block; width: 14px; height: 2px; margin: 18px 0 8px; background: var(--as-accent); }
.as-promo-strap { font-size: 9.5px; font-weight: 600; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: #344054; }

/* ---------- footer ---------- */
.as-foot { margin-top: auto; background: #fff; border-top: 1px solid #eef0f4; }
.as-foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding-top: 14px; padding-bottom: 14px; }
.as-foot-brand { display: flex; flex-direction: column; }
.as-foot-brand a { display: inline-flex; text-decoration: none; color: inherit; }
.as-foot-brand img { height: 28px !important; }
.as-foot-brand small { margin-top: 2px; font-size: 9.5px; color: var(--as-muted); }
.as-foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; font-size: 11.5px; }
.as-foot-links a { color: var(--as-body); text-decoration: none; }
.as-foot-links a:hover { color: var(--as-accent); }
.as-social { display: flex; gap: 10px; padding-right: 20px; border-right: 1px solid var(--as-line); }
.as-social a { display: grid; place-items: center; color: var(--as-ink); }
.as-social svg { width: 16px; height: 16px; }
.as-copy { font-size: 11px; color: var(--as-muted); }
.as-foot-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 14px; font-size: 12px; color: var(--as-muted); }
.as-foot-contact a { color: var(--as-blue); text-decoration: none; }

@media (max-width: 1024px) {
    .as-main { grid-template-columns: minmax(0, 1fr); }
    .as-side { grid-template-columns: 1fr 1fr; }
    .as-links { display: none; }
    .as-nav-right { margin-left: auto; }
    .as-wing { width: 46%; opacity: .45; }
    .as-script-wrap, .as-ppp { display: none; }
}

@media (max-width: 640px) {
    .as-wrap, .as-nav-in { padding-left: 16px; padding-right: 16px; }
    .as-nav-in { gap: 10px; }
    .as-lang { display: none; }
    .as-btn-outline, .as-btn-solid { height: 34px; padding: 0 12px; }
    .as-hero { padding-top: 20px; }
    .as-hero h1 { font-size: 30px; }
    .as-hero p { font-size: 14px; }
    .as-wing { display: none; }
    .as-steps { gap: 8px; margin-top: 20px; }
    .as-steps li { gap: 6px; }
    .as-steps b { width: 28px; height: 28px; font-size: 13px; }
    .as-steps span { font-size: 12.5px; }
    .as-steps > i { min-width: 12px; }
    .as-sec { padding: 16px; }
    .as-grid, .as-final { grid-template-columns: minmax(0, 1fr); }
    .as-side { grid-template-columns: minmax(0, 1fr); }
    .as-captcha { flex-wrap: wrap; }
    .as-foot-links { margin-left: 0; }
    .as-social { padding-right: 0; border-right: 0; }
}

@media (max-width: 420px) {
    .as-btn-solid { display: none; }
    .as-phone { gap: 8px; }
    .as-pick-dial { width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
    .as *, .as *::before, .as *::after { transition: none !important; }
}
