
.sac-root,
.sac-root * {
    box-sizing: border-box;
}

.sac-root {
    --sac-primary: #1c6a98;
    --sac-accent: #6fb650;
    --sac-ink: #101820;
    --sac-muted: #66727c;
    --sac-line: #dce3e8;
    --sac-surface: #ffffff;
    --sac-soft: #f4f8fa;
    --sac-red: #c94343;
    --sac-yellow: #dfa52d;
    font: inherit;
    color: var(--sac-ink);
}

.sac-trigger-wrap {
    display: inline-block;
}

.sac-trigger,
.sac-submit,
.sac-contact {
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.sac-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 50px;
    padding: .9rem 1.35rem;
    color: #fff;
    background: var(--sac-primary);
    box-shadow: 0 10px 25px rgba(28, 106, 152, .22);
    cursor: pointer;
}

.sac-trigger:hover,
.sac-trigger:focus-visible,
.sac-submit:hover,
.sac-submit:focus-visible,
.sac-contact:hover,
.sac-contact:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 24, 32, .18);
}

.sac-trigger:focus-visible,
.sac-submit:focus-visible,
.sac-contact:focus-visible,
.sac-modal__close:focus-visible,
.sac-form input:focus-visible {
    outline: 3px solid rgba(111, 182, 80, .45);
    outline-offset: 3px;
}

.sac-trigger__icon,
.sac-input-icon {
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.18em;
}

.sac-modal[hidden] {
    display: none !important;
}

.sac-modal {
    position: fixed !important;
    z-index: 2147483647 !important;
    inset: 0 !important;
    display: grid;
    place-items: center;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 20px;
    isolation: isolate;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
}

.sac-modal__backdrop {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: rgba(8, 18, 25, .74);
    backdrop-filter: blur(5px);
}

.sac-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(920px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 24px;
    background: var(--sac-surface);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
    animation: sac-in .24s ease-out;
}

@keyframes sac-in {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

html.sac-modal-open,
body.sac-modal-open {
    overflow: hidden !important;
}

.sac-modal__close {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--sac-line);
    border-radius: 50%;
    color: var(--sac-ink);
    background: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sac-inline {
    width: 100%;
}

.sac-inline .sac-checker {
    border: 1px solid var(--sac-line);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(16, 24, 32, .08);
}

.sac-checker {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    background:
        radial-gradient(circle at 100% 0, rgba(111, 182, 80, .13), transparent 33%),
        linear-gradient(180deg, #fff 0%, #fbfdfe 100%);
}

.sac-checker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--sac-primary), var(--sac-accent));
}

.sac-checker__header {
    max-width: 760px;
    margin-bottom: 28px;
}

.sac-eyebrow,
.sac-result__label {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--sac-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.sac-checker h2,
.sac-checker h3,
.sac-checker p {
    margin-top: 0;
}

.sac-checker h2 {
    margin-bottom: 12px;
    color: var(--sac-ink);
    font-size: clamp(1.65rem, 3.4vw, 2.55rem);
    line-height: 1.12;
}

.sac-checker__header > p {
    max-width: 690px;
    margin-bottom: 0;
    color: var(--sac-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.sac-form {
    margin-bottom: 26px;
}

.sac-form label {
    display: block;
    margin-bottom: 9px;
    color: var(--sac-ink);
    font-weight: 700;
}

.sac-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.sac-input-wrap {
    position: relative;
}

.sac-input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
    color: var(--sac-primary);
    pointer-events: none;
}

.sac-form input {
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 18px 0 49px;
    border: 1px solid #cfd9df;
    border-radius: 14px;
    color: var(--sac-ink);
    background: #fff;
    font: inherit;
    font-size: 16px;
    box-shadow: 0 5px 16px rgba(16, 24, 32, .04);
}

.sac-form input:focus {
    border-color: var(--sac-primary);
}

.sac-form input::placeholder {
    color: #8a969f;
    opacity: 1;
}

.sac-submit {
    min-height: 56px;
    padding: 0 24px;
    color: #fff;
    background: var(--sac-primary);
    cursor: pointer;
}

.sac-form__hint {
    margin: 8px 0 0;
    color: var(--sac-muted);
    font-size: .83rem;
}

.sac-result {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    min-height: 190px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--sac-line);
    border-radius: 20px;
    background: var(--sac-soft);
    transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.sac-result--green {
    border-color: rgba(111, 182, 80, .55);
    background: rgba(111, 182, 80, .09);
}

.sac-result--red {
    border-color: rgba(201, 67, 67, .42);
    background: rgba(201, 67, 67, .07);
}

.sac-result--yellow {
    border-color: rgba(223, 165, 45, .55);
    background: rgba(223, 165, 45, .09);
}

.sac-traffic {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 76px;
    padding: 13px;
    border: 4px solid #202a31;
    border-radius: 18px;
    background: #11181d;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 24px rgba(16, 24, 32, .17);
}

.sac-light {
    position: relative;
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #45515a;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, .48);
    opacity: .42;
}

.sac-light::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 8px;
    width: 12px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .38);
    filter: blur(1px);
}

.sac-result--red .sac-light--red {
    background: var(--sac-red);
    box-shadow: 0 0 22px rgba(201, 67, 67, .75), inset 0 3px 8px rgba(0, 0, 0, .25);
    opacity: 1;
}

.sac-result--yellow .sac-light--yellow {
    background: var(--sac-yellow);
    box-shadow: 0 0 22px rgba(223, 165, 45, .75), inset 0 3px 8px rgba(0, 0, 0, .25);
    opacity: 1;
}

.sac-result--green .sac-light--green {
    background: var(--sac-accent);
    box-shadow: 0 0 22px rgba(111, 182, 80, .8), inset 0 3px 8px rgba(0, 0, 0, .22);
    opacity: 1;
}

.sac-result__content h3 {
    margin-bottom: 9px;
    color: var(--sac-ink);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    line-height: 1.25;
}

.sac-result__content p {
    max-width: 670px;
    margin-bottom: 0;
    color: var(--sac-muted);
    line-height: 1.62;
}

.sac-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 48px;
    margin-top: 18px;
    padding: .8rem 1.25rem;
    color: #fff !important;
    background: var(--sac-accent);
    box-shadow: 0 10px 22px rgba(111, 182, 80, .25);
}

.sac-contact[hidden] {
    display: none !important;
}

.sac-disclaimer {
    margin: 16px 0 0 !important;
    color: var(--sac-muted);
    font-size: .82rem;
    line-height: 1.5;
}

.sac-attribution {
    margin: 5px 0 0 !important;
    color: #8b969e;
    font-size: .7rem;
}

.sac-attribution a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 720px) {
    .sac-modal {
        padding: 10px;
        place-items: end center;
    }

    .sac-modal__dialog {
        max-height: calc(100vh - 10px);
        border-radius: 22px 22px 0 0;
    }

    .sac-checker {
        padding: 34px 20px 26px;
    }

    .sac-form__row {
        grid-template-columns: 1fr;
    }

    .sac-submit {
        width: 100%;
    }

    .sac-result {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }

    .sac-traffic {
        margin: 0 auto;
    }

    .sac-contact {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sac-root *,
    .sac-root *::before,
    .sac-root *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
