.hi-page {
    padding: 112px 0 72px;
    color: #d5d5dc;
}

.hi-page h1,
.hi-page h2,
.hi-page p {
    margin-top: 0;
}

.hi-title {
    max-width: 18ch;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.hi-lead {
    max-width: 65ch;
    margin: 0 0 12px;
    color: #d5d5dc;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hi-note {
    max-width: 65ch;
    margin: 0 0 28px;
    color: #b2b2ba;
    font-size: 0.98rem;
    line-height: 1.55;
}

.hi-note a {
    color: #c5e6d0;
}

.hi-shell {
    max-width: 820px;
}

.hi-progress {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.hi-progress li {
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
}

.hi-progress li.is-done {
    background: #669776;
}

.hi-progress li.is-current {
    height: 6px;
    background: #c5e6d0;
}

.hi-step-label {
    margin: 0 0 16px;
    color: #c5c5ca;
    font-size: 0.95rem;
    font-weight: 600;
}

.hi-card {
    background: #272730;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px 22px 20px;
}

.hi-section-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hi-section-copy {
    max-width: 65ch;
    margin: 0 0 22px;
    color: #c5c5ca;
    line-height: 1.55;
}

.hi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
}

.hi-span {
    grid-column: 1 / -1;
}

.hi-label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
}

.hi-label span {
    color: #c5e6d0;
}

.hi-page .form-control,
.hi-page .form-select {
    min-height: 48px;
    padding: 10px 14px;
    color: #fff;
    background: #1f1f24;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
}

.hi-page textarea.form-control {
    min-height: 120px;
}

.hi-page .form-control::placeholder {
    color: #b2b2ba;
}

.hi-page .form-control:focus,
.hi-page .form-select:focus {
    color: #fff;
    background: #1f1f24;
    border-color: #669776;
    box-shadow: 0 0 0 3px rgba(102, 151, 118, 0.35);
}

.hi-page input[type="date"] {
    color-scheme: dark;
}

.hi-page .form-control.is-invalid,
.hi-page .form-select.is-invalid {
    border-color: #ff8d8d;
}

.hi-choice {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.hi-choice-inline {
    grid-template-columns: repeat(2, minmax(0, 180px));
}

.hi-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    color: #fff;
    background: #1f1f24;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    cursor: pointer;
    line-height: 1.35;
}

.hi-option:has(input:focus-visible) {
    outline: 2px solid #c5e6d0;
    outline-offset: 2px;
}

.hi-option:has(input:checked) {
    background: #31483a;
    border-color: #8fce9f;
}

.hi-option input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #8fce9f;
    flex: 0 0 auto;
}

.hi-hint,
.hi-submit-note {
    margin: 8px 0 0;
    color: #c5c5ca;
    font-size: 0.92rem;
}

.hi-error {
    margin: 6px 0 0;
    color: #ffc1c1;
    font-size: 0.9rem;
}

.hi-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    color: #ffe1e1;
    background: #3a2428;
    border: 1px solid rgba(255, 141, 141, 0.45);
    border-radius: 12px;
}

.hi-follow {
    margin-top: 16px;
}

.hi-member {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hi-member h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.hi-declaration {
    margin: 4px 0 18px;
    padding: 16px;
    color: #d5d5dc;
    background: #31483a;
    border-radius: 12px;
    font-size: 0.98rem;
    line-height: 1.6;
}

.hi-declaration p + p {
    margin-top: 12px;
}

.hi-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.hi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.hi-btn-primary {
    color: #14301c;
    background: #8fce9f;
    border: 0;
}

.hi-btn-primary:hover {
    color: #14301c;
    background: #c5e6d0;
}

.hi-btn-ghost {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hi-btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.hi-btn:focus-visible {
    outline: 2px solid #c5e6d0;
    outline-offset: 3px;
}

#hi-back,
#hi-next {
    display: none;
}

.js #hi-form #hi-back,
.js #hi-form #hi-next {
    display: inline-flex;
}

.js #hi-form.is-first #hi-back,
.js #hi-form.is-last #hi-next,
.js #hi-form:not(.is-last) #hi-submit,
.js #hi-form:not(.is-last) .hi-submit-note {
    display: none;
}

.js .hi-step {
    display: none;
}

.js .hi-step.is-active {
    display: block;
}

.js .hi-follow,
.js .hi-member {
    display: none;
}

.js .hi-follow.is-open,
.js .hi-member.is-open {
    display: block;
}

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

.hi-thanks {
    max-width: 640px;
}

.hi-thanks h1 {
    max-width: 16ch;
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.hi-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    color: #14301c;
    background: #8fce9f;
    border-radius: 50%;
    font-size: 32px;
}

.hi-ref {
    display: inline-block;
    margin: 14px 0 22px;
    padding: 8px 12px;
    color: #fff;
    background: #1f1f24;
    border-radius: 999px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .hi-page {
        padding-top: 120px;
    }

    .hi-title {
        max-width: none;
    }

    .hi-card {
        padding: 22px 16px 16px;
        border-radius: 18px;
    }

    .hi-grid,
    .hi-choice,
    .hi-choice-inline {
        grid-template-columns: 1fr;
    }

    .hi-actions {
        flex-direction: column-reverse;
    }

    .hi-actions .hi-btn {
        width: 100%;
    }
}
