:root {
    color-scheme: light;
    --ucc-navy: #1a2d3f;
    --ucc-green: #4c9f22;
    --ucc-text: #2c3e50;
    --ucc-muted: #536474;
    --ucc-page: #f2f2f2;
    --ucc-surface: #ffffff;
    --ucc-field: #697682;
    --ucc-button: #e1e3e4;
    --ucc-danger: #a21f32;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--ucc-page);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--ucc-page);
    color: var(--ucc-text);
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-align: center;
}

::selection {
    background: #cde7ad;
    color: #172838;
}

.skip-link {
    position: fixed;
    z-index: 20;
    top: 8px;
    left: 8px;
    padding: 9px 12px;
    transform: translateY(-150%);
    border-radius: 6px;
    background: #fff;
    color: var(--ucc-navy);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    display: flex;
    height: 90px;
    align-items: center;
    background: var(--ucc-navy);
}

.header-inter {
    width: min(800px, 100%);
    margin: 0 auto;
    text-align: left;
}

.header-logo {
    display: block;
    width: 100px;
    height: auto;
    padding: 5px;
}

.page-shell {
    min-height: calc(100vh - 90px);
    padding: 15px 16px 40px;
}

.panel {
    width: min(100%, 390px);
    margin: 0 auto;
    padding: 18px 29px 28px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: var(--ucc-surface);
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

.brand-logo {
    display: block;
    width: 200px;
    max-width: 68%;
    height: auto;
    margin: 0 auto 8px;
}

h1,
h2,
p {
    overflow-wrap: break-word;
}

h1 {
    margin: 10px 0 12px;
    color: var(--ucc-text);
    font-size: clamp(24px, 5vw, 30px);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.15;
    text-wrap: balance;
}

.lead {
    max-width: 36ch;
    margin: 0 auto 12px;
    font-size: 16px;
    line-height: 1.45;
}

form {
    margin-top: 24px;
}

.outlined-field {
    position: relative;
    display: block;
    margin: 0 0 21px;
    color: #445463;
    text-align: left;
}

.outlined-field > span {
    position: absolute;
    z-index: 1;
    top: -8px;
    left: 12px;
    padding: 0 5px;
    background: #fff;
    font-size: 12px;
    line-height: 16px;
}

.outlined-field input {
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 14px 15px 10px;
    border: 1px solid var(--ucc-field);
    border-radius: 4px;
    background: #fff;
    color: #172838;
    caret-color: var(--ucc-navy);
    font: inherit;
}

.outlined-field input:hover {
    border-color: #1d2d3c;
}

.outlined-field:focus-within > span {
    color: var(--ucc-navy);
}

input:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 3px solid #76bc21;
    outline-offset: 3px;
}

.action-button,
.dialog-button {
    position: relative;
    display: block;
    width: fit-content;
    min-width: 190px;
    min-height: 48px;
    margin: 0 auto;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--ucc-button);
    box-shadow: 0 2px 4px rgb(0 0 0 / 16%);
    color: #263746;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
}

.action-button:hover,
.dialog-button:hover {
    background: #d5d9db;
    box-shadow: 0 3px 7px rgb(0 0 0 / 20%);
}

.action-button:disabled,
.dialog-button:disabled {
    background: #eceeef;
    box-shadow: none;
    color: #808991;
    cursor: not-allowed;
}

.action-button.is-loading {
    color: transparent;
    cursor: wait;
}

.action-button.is-loading::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #8b949b;
    border-top-color: var(--ucc-navy);
    border-radius: 50%;
    content: "";
    animation: spin 700ms linear infinite;
}

.delivery-options {
    margin: 20px 0 25px;
    padding: 0;
    border: 0;
    text-align: left;
}

.delivery-option {
    display: block;
    margin: 0 0 15px;
    color: #263746;
    cursor: pointer;
}

.radio-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-line input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--ucc-navy);
}

.protected-data {
    display: block;
    margin: 8px 0 0 26px;
    color: var(--ucc-muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.base-timer {
    position: relative;
    width: 300px;
    height: 300px;
    max-width: 100%;
    aspect-ratio: 1;
    margin: 15px auto 20px;
}

.base-timer__svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.base-timer__path-elapsed,
.base-timer__path-remaining {
    fill: none;
    stroke-width: 7px;
}

.base-timer__path-elapsed {
    stroke: #727b83;
}

.base-timer__path-remaining {
    stroke: #41a46d;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke 250ms ease-out, stroke-dashoffset 1s linear;
}

.base-timer.is-warning .base-timer__path-remaining {
    stroke: #b76800;
}

.base-timer.is-expired .base-timer__path-remaining {
    stroke: var(--ucc-danger);
}

.base-timer__label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-variant-numeric: tabular-nums;
}

.otp-control {
    position: relative;
    width: min(300px, 100%);
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 4px;
}

.otp-attempts {
    max-width: 300px;
    margin: 0 auto 16px;
    color: var(--ucc-muted);
    font-size: 14px;
    line-height: 1.4;
}

.otp-attempts.is-exhausted {
    color: var(--ucc-danger);
    font-weight: 700;
}

.otp-control:focus-within {
    outline: 3px solid #76bc21;
    outline-offset: 3px;
}

.otp-entry {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: text;
}

.otp-entry:focus-visible {
    outline: 0;
}

.otp-digits {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    pointer-events: none;
}

.otp-digit {
    position: relative;
    display: grid;
    min-width: 0;
    border: 1px solid #c1c6ca;
    border-radius: 4px;
    background: #e7e9ea;
    color: #172838;
    font: 700 26px/1 Avenir, Helvetica, Arial, sans-serif;
    place-items: center;
}

.otp-digit.is-active::after {
    width: 2px;
    height: 28px;
    background: var(--ucc-navy);
    content: "";
    animation: otp-caret 1s steps(1) infinite;
}

.otp-digit.is-filled {
    border-color: #8b949b;
}

.secondary-form {
    margin-top: 9px;
}

.button-link {
    min-height: 36px;
    padding: 6px 12px;
    border: 0;
    background: transparent;
    color: #314d66;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.button-link:hover {
    color: #172838;
}

.policy {
    margin: 17px 0 25px;
    color: var(--ucc-muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.policy summary {
    color: #314d66;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy ul {
    margin: 10px 0 0;
    padding-left: 21px;
}

.field-status {
    min-height: 20px;
    margin: -16px 2px 18px;
    color: var(--ucc-muted);
    font-size: 13px;
    line-height: 18px;
    text-align: left;
}

.field-status.is-valid {
    color: #29751a;
}

.field-status.is-error {
    color: var(--ucc-danger);
}

.primary-link {
    margin-top: 28px;
}

.dialog-backdrop {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgb(0 0 0 / 48%);
}

.feedback-dialog {
    width: min(100%, 400px);
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 38px rgb(0 0 0 / 28%);
    color: var(--ucc-text);
    text-align: left;
}

.feedback-dialog h2 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.25;
}

.feedback-dialog ul {
    margin: 0 0 22px;
    padding-left: 20px;
    line-height: 1.5;
}

.feedback-dialog .dialog-button {
    min-width: 86px;
    margin-right: 0;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes otp-caret {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 560px) {
    .site-header {
        height: 76px;
    }

    .header-logo {
        width: 86px;
    }

    .page-shell {
        min-height: calc(100vh - 76px);
        padding: 15px 10px 28px;
    }

    .panel {
        padding: 18px 20px 25px;
    }

    .base-timer {
        width: 250px;
        height: 250px;
    }

}

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