:root {
    color-scheme: light;
    --ts-primary: #3167eb;
    --ts-primary-hover: #1650e0;
    --ts-text: #343a40;
    --ts-input-text: #495057;
    --ts-muted: #545454;
    --ts-border: #ced4da;
    --ts-panel: #f8f9fa;
    --ts-danger: #fa3434;
    --ts-success: #00b517;
}

* {
    box-sizing: border-box;
}

html {
    font-family: Inter, Arial, "Helvetica Neue", "Segoe UI", sans-serif;
    font-size: 15px;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ts-text);
    font-family: Inter, Arial, "Helvetica Neue", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

main {
    width: min(1200px, calc(100% - 30px));
    margin: 40px auto 80px;
}

header {
    width: min(760px, 100%);
    margin-bottom: 22px;
}

.brand {
    margin-bottom: 22px;
}

.brand a {
    display: inline-block;
}

.header-logo {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
}

section {
    width: min(760px, 100%);
    padding: 18.75px;
    background: var(--ts-panel);
}

h1 {
    margin: 0 0 7.5px;
    color: var(--ts-text);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    margin: 0 0 11.25px;
    color: var(--ts-text);
    font-size: 22.5px;
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin: 0 0 15px;
}

.muted,
small {
    color: var(--ts-muted);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field {
    margin: 0 0 15px;
}

label,
legend {
    display: block;
    margin: 0 0 7.5px;
    font-weight: 400;
}

input:not([type="hidden"]),
textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 6.75px 12.75px;
    color: var(--ts-input-text);
    background: #fff;
    border: 1px solid var(--ts-border);
    border-radius: 5.55px;
    font: inherit;
    line-height: 1.5;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

input:not([type="hidden"]) {
    min-height: 38px;
}

input:not([type="hidden"]):focus,
textarea:focus {
    color: var(--ts-input-text);
    background: #fff;
    border-color: #a5bdf6;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(49, 103, 235, .25);
}

textarea {
    min-height: 105.5px;
    resize: vertical;
}

fieldset {
    padding: 0;
    margin: 0 0 15px;
    border: 0;
}

.radio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 7px 0;
}

.radio input {
    width: auto;
    min-height: auto;
    accent-color: var(--ts-primary);
}

.error {
    display: block;
    margin-top: 4px;
    color: var(--ts-danger);
    font-size: .875rem;
}

.notice {
    padding: 12px 14px;
    margin: 0 0 18px;
    background: #eef3ff;
    border: 1px solid #ccd9fb;
    border-radius: 5.55px;
}

.notice.errorbox {
    color: #8a2020;
    background: #fff3f3;
    border-color: #f3bbbb;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    margin-top: 20px;
}

.actions > form,
.actions > button,
.actions > .button {
    flex: 1 1 220px;
}

button,
.button {
    display: inline-block;
    width: 100%;
    min-height: 38px;
    padding: 6.75px 12.75px;
    color: #fff;
    background: var(--ts-primary);
    border: 1px solid var(--ts-primary);
    border-radius: 5.55px;
    font: 600 1rem/1.5 Inter, Arial, "Helvetica Neue", "Segoe UI", sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

button:hover,
.button:hover {
    color: #fff;
    background: var(--ts-primary-hover);
    border-color: #154cd4;
}

button:focus-visible,
.button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(80, 126, 238, .5);
}

.secondary {
    color: var(--ts-primary);
    background: #fff;
}

.secondary:hover {
    color: #fff;
    background: var(--ts-primary-hover);
}

dl {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    margin: 0;
    border-top: 1px solid var(--ts-border);
}

dt,
dd {
    margin: 0;
    padding: 9px 0;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--ts-border);
}

dt {
    padding-right: 15px;
    color: var(--ts-muted);
}

.successmark {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    place-items: center;
    color: #fff;
    background: var(--ts-success);
    border-radius: 50%;
    font-size: 25px;
}

.declaration {
    margin-top: 18px;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

footer {
    width: min(760px, 100%);
    padding: 15px 18.75px 0;
    color: var(--ts-muted);
    font-size: .875rem;
}

footer a {
    color: var(--ts-primary);
}

@media (max-width: 767.98px) {
    main {
        width: min(100% - 30px, 720px);
        margin-top: 24px;
        margin-bottom: 50px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    dl {
        display: block;
    }

    dt {
        padding-bottom: 0;
        border-bottom: 0;
        font-size: .875rem;
    }

    dd {
        padding-top: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    input:not([type="hidden"]),
    textarea,
    button,
    .button {
        transition: none;
    }
}
