/* Stella Fire installer sign-in, application and portal pages (build 1.9).
   Loaded after support.css, which supplies .sp-field, .sp-btn, .sp-alert and the colour tokens. */

.ac-kicker {
    margin: 0 0 10px;
    color: var(--sp-red-deep);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ac-title {
    font-size: 2.4rem;
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.05;
}
.ac-lede { margin: 12px 0 0; color: var(--sp-steel); font-size: 1.06rem; line-height: 1.55; max-width: 36em; }
.ac-note {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--sp-ceiling);
    color: var(--sp-ink);
    font-weight: 600;
}
.ac .sp-alert { margin-top: 18px; }

/* ---------- Sign in ---------- */
.ac-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 640px;
}
.ac-split__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 24px;
    background: var(--sp-ceiling);
}
.ac-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 36px 32px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 0 var(--sp-line), 0 22px 50px rgba(26, 31, 36, .08);
}
.ac-form { display: grid; grid-gap: 18px; gap: 18px; margin-top: 24px; }
.ac-pass { position: relative; }
.ac-pass input { padding-right: 76px; }
.ac-pass__toggle {
    position: absolute;
    top: 6px;
    right: 6px;
    bottom: 6px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    background: var(--sp-ceiling);
    color: var(--sp-ink);
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}
.ac-pass__toggle:hover { background: var(--sp-line); }
.ac .ac-submit { width: 100%; margin-top: 4px; }
.ac-help { margin: 18px 0 0; color: var(--sp-steel); font-size: .92rem; }
.ac-help a, .ac-side__free a, .ac-submit-row a, .ac-done a { color: var(--sp-red-deep); font-weight: 700; }

.ac-apply {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 440px;
    margin: 16px auto 0;
    padding: 18px 22px;
    border: 1.5px dashed #c9ced2;
    border-radius: 14px;
}
.ac-apply > div { margin: 4px 16px 4px 0; }
.ac-apply strong { display: block; }
.ac-apply span { color: var(--sp-steel); font-size: .92rem; }
.ac .ac-apply__link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin: 4px 0;
    padding: 0 18px;
    border: 1.5px solid var(--sp-ink);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}
.ac .ac-apply__link:hover { background: var(--sp-ink); color: #fff; }

.ac-split__side {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 64px 48px;
    background: var(--sp-panel);
    color: #fff;
}
.ac-split__side::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
}
.ac-split__side::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -220px;
    width: 560px;
    height: 560px;
    background: radial-gradient(closest-side, rgba(229, 35, 41, .35), rgba(229, 35, 41, 0));
}
.ac-side { position: relative; z-index: 1; max-width: 460px; }
.ac-side h2 { font-size: 1.9rem; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.ac-benefits { list-style: none; margin: 28px 0 0; padding: 0; }
.ac-benefits li {
    position: relative;
    padding: 14px 0 14px 34px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    animation: ac-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.ac-benefits li:nth-child(2) { animation-delay: .06s; }
.ac-benefits li:nth-child(3) { animation-delay: .12s; }
.ac-benefits li:nth-child(4) { animation-delay: .18s; }
.ac-benefits li:nth-child(5) { animation-delay: .24s; }
.ac-benefits li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 18px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--sp-red);
    box-shadow: 0 0 0 4px rgba(229, 35, 41, .22);
}
.ac-benefits strong { display: block; font-size: 1.04rem; }
.ac-benefits span { display: block; margin-top: 2px; color: #aab3ba; font-size: .93rem; }
.ac-side__free { margin: 22px 0 0; color: #c3cad0; font-size: .93rem; }
.ac-side__free a { color: #ff8a8d; }
@keyframes ac-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Apply ---------- */
.ac-head { padding: 56px 0 40px; background: var(--sp-ceiling); }
.ac-head__inner {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-gap: 32px 64px;
    gap: 32px 64px;
    align-items: end;
}
.ac-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 10px; gap: 10px; }
.ac-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-gap: 14px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff;
    color: var(--sp-steel);
    font-size: .92rem;
}
.ac-steps strong { display: block; color: var(--sp-ink); font-size: 1rem; }
.ac-steps li > span, .ac-section legend span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sp-red);
    color: #fff;
    font-weight: 800;
}
.ac-body { padding: 48px 0 80px; }
.ac-body__inner { max-width: 860px; }
.ac-apply-form { display: grid; grid-gap: 28px; gap: 28px; }
.ac-section {
    display: grid;
    grid-gap: 18px;
    gap: 18px;
    margin: 0;
    padding: 28px;
    border: 1.5px solid var(--sp-line);
    border-radius: 16px;
}
.ac-section legend {
    display: flex;
    align-items: center;
    padding: 0 10px 0 0;
    font-family: "Outfit", Inter, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}
.ac-section legend span { width: 30px; height: 30px; margin-right: 12px; font-size: .9rem; }
.ac-field--narrow { max-width: 420px; }
.ac-hint { color: var(--sp-steel); font-size: .86rem; }
.ac-hint.is-ok { color: var(--sp-ok); font-weight: 700; }
.ac-submit-row { display: flex; flex-wrap: wrap; align-items: center; }
.ac-submit-row .sp-btn { margin-right: 24px; min-width: 220px; }
.ac-submit-row p { margin: 10px 0; color: var(--sp-steel); }

.ac-done {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-gap: 18px;
    gap: 18px;
    padding: 32px;
    border-radius: 16px;
    background: var(--sp-ceiling);
    animation: ac-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.ac-done h2 { font-size: 1.6rem; font-weight: 700; }
.ac-done p { margin: 8px 0 0; color: #3d474f; line-height: 1.6; max-width: 56ch; }
.ac-done__links a { display: inline-block; margin: 8px 24px 0 0; }

/* ---------- Portal ---------- */
.ac-portal-head { padding: 52px 0 36px; background: var(--sp-ceiling); }
.ac-portal-head__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.ac-portal-head__inner > div { margin: 0 24px 12px 0; }
.ac-portal-head__company { display: flex; flex-wrap: wrap; align-items: center; margin: 12px 0 0; font-size: 1.1rem; font-weight: 600; }
.ac-pill {
    display: inline-flex;
    align-items: center;
    margin: 4px 0 4px 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.ac-pill::before { content: ""; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: currentColor; }
.ac-pill--ok { background: #e3f4ea; color: #1f6b43; }
.ac-pill--wait { background: #fff2d9; color: #8a5a00; }
.ac-pill--admin { background: #fdecec; color: var(--sp-red-deep); }
.ac .ac-signout {
    margin-bottom: 12px;
    padding: 10px 16px;
    border: 1.5px solid var(--sp-line);
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}
.ac .ac-signout:hover { border-color: var(--sp-ink); }

.ac-portal { padding-top: 40px; padding-bottom: 80px; }
.ac-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 22px 24px;
    border-radius: 14px;
    background: var(--sp-panel);
    color: #fff;
}
.ac-banner > div { margin: 6px 24px 6px 0; max-width: 44em; }
.ac-banner strong { display: block; font-size: 1.12rem; }
.ac-banner span { display: block; margin-top: 4px; color: #c3cad0; line-height: 1.5; }
.ac-banner--wait { background: #fff8ea; color: var(--sp-ink); border: 1.5px solid #f3d9a4; }
.ac-banner--wait span { color: #5a4a2a; }

.ac-tools {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 18px;
    gap: 18px;
}
.ac-tool {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    border: 1.5px solid var(--sp-line);
    border-radius: 14px;
    transition: border-color .2s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.ac-tool:not(.is-locked):hover { border-color: var(--sp-ink); transform: translateY(-3px); }
.ac-tool__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #fdecec;
    color: var(--sp-red-deep);
}
.ac-tool__icon svg { width: 24px; height: 24px; }
.ac-tool h2 { font-size: 1.2rem; font-weight: 700; }
.ac-tool p { flex: 1 1 auto; margin: 8px 0 16px; color: var(--sp-steel); line-height: 1.5; }
.ac .ac-tool__link { font-weight: 700; color: var(--sp-red-deep); text-decoration: none; }
.ac .ac-tool__link::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 14px; }
.ac .ac-tool__link::before { content: "\2192"; float: right; margin-left: 8px; transition: transform .2s ease; }
.ac-tool:hover .ac-tool__link::before { transform: translateX(4px); }
.ac-tool.is-locked { background: #fafbfa; }
.ac-tool.is-locked .ac-tool__icon { background: var(--sp-ceiling); color: var(--sp-steel); }
.ac-tool__lock { color: var(--sp-steel); font-size: .88rem; font-weight: 700; }

.ac-quotes { margin-top: 44px; }
.ac-quotes__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.ac-quotes__head h2 { margin-right: 16px; font-size: 1.5rem; font-weight: 700; }
.ac-quotes__head a { color: var(--sp-red-deep); font-weight: 700; }
.ac-quotes__empty { margin: 0; padding: 22px; border-radius: 12px; background: var(--sp-ceiling); color: var(--sp-steel); }
.ac-quotes__table { overflow-x: auto; border: 1.5px solid var(--sp-line); border-radius: 12px; }
.ac-quotes table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ac-quotes th, .ac-quotes td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--sp-line); white-space: nowrap; }
.ac-quotes th { color: var(--sp-steel); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: #fafbfa; }
.ac-quotes tr:last-child td { border-bottom: 0; }
.ac-status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--sp-ceiling); font-size: .84rem; font-weight: 700; }
.ac-status--reviewing { background: #fff2d9; color: #8a5a00; }
.ac-status--quoted { background: #e3f4ea; color: #1f6b43; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
    .ac-split { grid-template-columns: 1fr; min-height: 0; }
    .ac-split__form { padding: 40px 16px; }
    .ac-split__side { padding: 48px 24px; }
    .ac-head__inner { grid-template-columns: 1fr; }
    .ac-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .ac-card { padding: 28px 20px; }
    .ac-section { padding: 22px 16px; }
    .ac-tools { grid-template-columns: 1fr; }
    .ac-submit-row .sp-btn { width: 100%; margin-right: 0; }
    .ac-done { grid-template-columns: 1fr; padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .ac-benefits li, .ac-done { animation: none; }
    .ac-tool { transition: none; }
}
