.entry-page {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
    padding: 112px 0 140px;
    font-family: var(--font-sans);
}

.entry-page__form {
    width: min(960px, 100%);
    margin: 0 auto;
}

/* Input and confirmation screens use the full-width Figma layout. */
.entry-page:has(.entry-form__step--input:not([hidden])),
.entry-page:has(.entry-form__step--confirm:not([hidden])),
.entry-page:has(.entry-form__step--complete:not([hidden])),
.entry-page__form:has(.entry-form__step--input:not([hidden])),
.entry-page__form:has(.entry-form__step--confirm:not([hidden])),
.entry-page__form:has(.entry-form__step--complete:not([hidden])) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.entry-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 64px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 50px rgb(15 23 42 / 6%);
    color: #1e293b;
}

.entry-form:has(.entry-form__step--input:not([hidden])),
.entry-form:has(.entry-form__step--confirm:not([hidden])),
.entry-form:has(.entry-form__step--complete:not([hidden])) {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.entry-form__step[hidden] {
    display: none;
}

.entry-form__step--input {
    display: block;
}

.entry-form__progress {
    display: flex;
    width: min(800px, calc(100% - 64px));
    margin: 0 auto;
    padding: 64px 0;
    align-items: center;
    list-style: none;
}

.entry-form__progress-step {
    display: flex;
    min-width: 0;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #64748b;
}

.entry-form__progress-step span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.entry-form__progress-step strong {
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
}

.entry-form__progress-step.is-current {
    color: #ff7f00;
}

.entry-form__progress-step.is-current span {
    background: #ff7f00;
    color: #fff;
}

.entry-form__progress-step.is-current strong {
    font-weight: 700;
}

.entry-form__progress-step.is-complete {
    color: #ff7f00;
}

.entry-form__progress-step.is-complete span {
    background-color: #ff7f00;
    background-image: url("../../images/entry/check.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
}

.entry-form__progress-step.is-complete strong {
    font-weight: 700;
}

.entry-form__progress-line {
    height: 2px;
    min-width: 0;
    flex: 1 1 0;
    background: #e2e8f0;
}

.entry-form__input-area {
    width: 100%;
    padding: 80px clamp(32px, 8.33vw, 120px) 100px;
    background: #f8fafc;
}

.entry-form__input-card {
    display: flex;
    width: min(880px, 100%);
    margin: 0 auto;
    padding: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.entry-form__section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.entry-form__section h2 {
    margin: 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
}

.entry-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
}

.entry-form__field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
}

.entry-form__label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
}

.entry-form__label em {
    padding: 2px 6px;
    border-radius: 4px;
    background: #fee2e2;
    color: #ef4444;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.entry-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.entry-form input[type="text"],
.entry-form input[type="email"],
.entry-form input[type="tel"],
.entry-form input[type="number"],
.entry-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #1e293b;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.entry-form input[type="text"],
.entry-form input[type="email"],
.entry-form input[type="tel"],
.entry-form input[type="number"] {
    height: 52px;
    padding: 0 16px;
}

.entry-form textarea {
    min-height: 160px;
    padding: 16px;
    resize: vertical;
    line-height: 1.5;
}

.entry-form input::placeholder,
.entry-form textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.entry-form input:focus,
.entry-form textarea:focus {
    border-color: #004896;
    box-shadow: 0 0 0 3px rgb(0 72 150 / 12%);
}

.entry-form__graduation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.entry-form__graduation .wpcf7-form-control-wrap {
    width: 120px;
    flex: 0 0 120px;
}

.entry-form__graduation-unit,
.entry-form__note {
    color: #94a3b8;
    font-size: 14px;
    line-height: normal;
}

.entry-form__note {
    margin: 0;
}

.entry-form__choice {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.entry-form__choice legend {
    margin-bottom: 16px;
}

.entry-form .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.entry-form .wpcf7-list-item {
    margin: 0;
}

.entry-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.entry-form .wpcf7-list-item.is-disabled label {
    cursor: not-allowed;
    opacity: .4;
}

.entry-form input[type="radio"]:disabled,
.entry-form input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.entry-form input[type="radio"],
.entry-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 0;
    appearance: none;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    background: #fff center / 10px 10px no-repeat;
    cursor: pointer;
}

.entry-form input[type="radio"] {
    border-radius: 50%;
}

.entry-form input[type="radio"]:checked,
.entry-form input[type="checkbox"]:checked {
    border-color: #004896;
    background-color: #004896;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='m1 5 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.entry-form input[type="radio"]:checked {
    border-color: #e2e8f0;
    background-color: #004896;
    background-image: radial-gradient(circle, #fff 0 3px, transparent 3.5px);
}

.entry-form input[type="radio"]:focus-visible,
.entry-form input[type="checkbox"]:focus-visible {
    outline: 2px solid #1a70cc;
    outline-offset: 3px;
}

.entry-form .wpcf7-list-item-label {
    color: #1e293b;
    font-size: 14px;
    line-height: normal;
}

.entry-form__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.entry-form__privacy {
    max-width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
}

.entry-form__privacy .wpcf7-list-item label {
    align-items: center;
    gap: 12px;
}

.entry-form__privacy a {
    color: #004896;
    text-underline-offset: 3px;
}

.entry-form__error {
    display: block;
    margin-top: 7px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
}

.entry-form__button {
    display: inline-flex;
    min-height: 56px;
    padding: 14px 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: #ff7f00;
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.entry-form__button--confirm {
    padding: 16px 60px;
    font-size: 20px;
}

.entry-form__button:hover {
    transform: translateY(-2px);
    filter: brightness(0.96);
}

.entry-confirm__area {
    width: 100%;
    padding: 80px clamp(32px, 8.33vw, 120px) 100px;
    background: #f8fafc;
}

.entry-confirm__card {
    display: flex;
    width: min(880px, 100%);
    margin: 0 auto;
    padding: 64px;
    flex-direction: column;
    gap: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.entry-confirm__sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.entry-confirm__section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.entry-confirm__section h2 {
    margin: 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
}

.entry-confirm__section dl {
    display: flex;
    margin: 0;
    flex-direction: column;
    gap: 24px;
}

.entry-confirm__field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.entry-confirm__field dt,
.entry-confirm__field dd {
    margin: 0;
    line-height: normal;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.entry-confirm__field dt {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.entry-confirm__field dd {
    color: #1e293b;
    font-size: 16px;
    font-weight: 500;
}

.entry-form__submit-actions {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
}

.entry-form__button--back {
    padding: 16px 60px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #ff7f00;
    font-size: 20px;
}

.entry-form__button--submit {
    padding: 16px 60px;
    font-size: 20px;
}

.entry-form__submit-actions .wpcf7-spinner {
    position: absolute;
    right: 0;
    bottom: -32px;
}

.entry-complete__area {
    width: 100%;
    padding: 80px clamp(32px, 8.33vw, 120px) 100px;
    background: #f8fafc;
}

.entry-complete__card {
    display: flex;
    width: min(880px, 100%);
    margin: 0 auto;
    padding: 64px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.entry-complete__mark {
    display: grid;
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    place-items: center;
    border-radius: 50%;
    background: #004896 url("../../images/entry/completion-check.svg") center / 60px 60px no-repeat;
}

.entry-form__step--complete h2 {
    margin: 0;
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    line-height: normal;
}

.entry-form__step--complete h2:focus {
    outline: none;
}

.entry-form__button--home {
    min-height: 56px;
    padding: 16px 60px;
    border: 2px solid #004896;
    border-radius: 8px;
    background: #fff;
    color: #004896;
    font-size: 20px;
}

.entry-page-view .wpcf7-form.sent > .wpcf7-response-output {
    display: none;
}

@media (max-width: 767px) {
    .entry-page-view .breadcrumb {
        height: 40px;
        padding-inline: 16px;
        background: #f8fafc;
    }

    .entry-page {
        width: calc(100% - 32px);
        padding: 64px 0 88px;
    }

    .entry-form {
        padding: 32px 20px;
    }

    .entry-form__progress {
        width: 100%;
        padding: 24px;
        gap: 12px;
        justify-content: center;
    }

    .entry-form__progress-step {
        flex: 0 0 48px;
        gap: 6px;
    }

    .entry-form__progress-step span {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .entry-form__progress-step.is-complete span {
        background-size: 14px 14px;
    }

    .entry-form__progress-step strong {
        font-size: 11px;
        font-weight: 700;
    }

    .entry-form__progress-line {
        max-width: 60px;
    }

    .entry-form__input-area {
        padding: 40px 20px 60px;
    }

    .entry-form__input-card {
        padding: 20px;
        gap: 40px;
    }

    .entry-form__section {
        gap: 20px;
    }

    .entry-form__section h2 {
        color: #004896;
        font-size: 18px;
    }

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

    .entry-form__field {
        gap: 8px;
    }

    .entry-form__label {
        font-size: 14px;
    }

    .entry-form input[type="text"],
    .entry-form input[type="email"],
    .entry-form input[type="tel"],
    .entry-form input[type="number"] {
        height: 48px;
    }

    .entry-form__graduation {
        gap: 8px;
    }

    .entry-form__graduation .wpcf7-form-control-wrap {
        width: min(30vw, 120px);
        flex-basis: min(30vw, 120px);
    }

    .entry-form textarea {
        min-height: 120px;
    }

    .entry-form__choice legend {
        margin-bottom: 12px;
    }

    .entry-form .wpcf7-radio {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .entry-form__privacy {
        width: auto;
        padding: 12px;
    }

    .entry-form__privacy .wpcf7-list-item label {
        gap: 10px;
    }

    .entry-form__button {
        width: 100%;
        padding-inline: 20px;
        font-size: 16px;
    }

    .entry-form__button--confirm {
        min-height: 52px;
        padding-block: 12px;
    }

    .entry-confirm__area {
        padding: 40px 20px 60px;
    }

    .entry-confirm__card {
        padding: 20px;
        gap: 40px;
    }

    .entry-confirm__sections {
        gap: 40px;
    }

    .entry-confirm__section {
        gap: 20px;
    }

    .entry-confirm__section h2 {
        color: #004896;
        font-size: 18px;
    }

    .entry-confirm__section dl {
        gap: 20px;
    }

    .entry-confirm__field {
        gap: 6px;
    }

    .entry-confirm__field dt {
        font-size: 13px;
    }

    .entry-confirm__field dd {
        font-size: 15px;
        line-height: 1.6;
    }

    .entry-form__submit-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .entry-form__button--back,
    .entry-form__button--submit {
        min-height: 52px;
        padding: 12px 20px;
        font-size: 16px;
    }

    .entry-complete__area {
        padding: 40px 20px 60px;
    }

    .entry-complete__card {
        padding: 40px 20px;
        gap: 32px;
    }

    .entry-complete__mark {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .entry-complete__mark {
        background-size: 45px 45px;
    }

    .entry-form__step--complete h2 {
        font-size: 22px;
        line-height: 1.5;
    }

    .entry-form__button--home {
        min-height: 52px;
        padding: 12px 20px;
        font-size: 16px;
    }
}
