.apply-turnstile {
    display: flex;
    justify-content: center;
    margin: 8px auto 18px;
}

.apply-wizard {
    display: flex;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.apply-wizard li {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 0 4px;
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.apply-wizard li:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 50%;
    left: -50%;
    height: 2px;
    background: #e6e6e6;
    z-index: 0;
}

.apply-wizard li.is-current::before,
.apply-wizard li.is-done::before {
    background: #0064ff;
}

.apply-wizard-mark {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    border: 2px solid #d5d5d5;
    border-radius: 50%;
    background: #fff;
    color: #666;
    font-size: 13px;
    font-weight: 700;
}

.apply-wizard li.is-current {
    color: #0064ff;
}

.apply-wizard li.is-current .apply-wizard-mark {
    border-color: #0064ff;
    background: #0064ff;
    color: #fff;
}

.apply-wizard li.is-done {
    color: #6a9a12;
}

.apply-wizard li.is-done .apply-wizard-mark {
    border-color: #96CC29;
    background: #96CC29;
    color: #fff;
}

.apply-wizard-label {
    display: block;
    text-wrap: balance;
}

.apply-feedback,
.apply-scheduler,
.apply-confirm {
    margin-top: 8px;
    color: #16141f;
}

.form-wrapper:has(#interview_scheduler:not([hidden])) .form-header,
.form-wrapper:has(#interview_confirmation:not([hidden])) .form-header,
.apply-scheduler,
.apply-confirm {
    text-align: center;
}

.apply-feedback {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #0064ff;
    background: #f4f8ff;
}

.apply-feedback h4,
.apply-scheduler h4,
.apply-confirm h4 {
    margin: 0 0 8px;
    color: #0064ff;
    font-size: 20px;
    font-weight: 700;
}

.apply-lead,
.apply-meta,
.apply-note,
.apply-status {
    color: #333;
}

.apply-lead {
    font-size: 16px;
    line-height: 1.45;
}

.apply-applicant-name {
    color: #0064ff;
    font-weight: 700;
}

.apply-meta,
.apply-note,
.apply-status {
    font-size: 14px;
    line-height: 1.45;
}

.apply-stage {
    position: relative;
    overflow: clip;
}

.apply-calendar {
    transition: transform 0.34s ease, opacity 0.34s ease;
}

.apply-times {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4px 0 8px;
    background: #fff;
    text-align: center;
    transform: translateX(105%);
    transition: transform 0.34s ease;
}

.apply-stage.is-times .apply-times {
    transform: translateX(0);
}

.apply-stage.is-times .apply-calendar {
    transform: translateX(-16%);
    opacity: 0;
    pointer-events: none;
}

.apply-back,
.apply-text-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0 0 4px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #0064ff;
    font-weight: 700;
}

.apply-back::before {
    content: "\2039";
    margin-right: 6px;
    font-size: 22px;
    line-height: 1;
}

.apply-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0 10px;
}

.apply-calendar-nav h4 {
    margin: 0;
    font-size: 18px;
}

.apply-calendar-nav button,
.apply-days button,
.apply-time-list button,
.apply-btn {
    border-radius: 6px;
}

.apply-calendar-nav button {
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 1;
    background: #fff;
    color: #0064ff;
    border: 1px solid #0064ff;
}

.apply-dow,
.apply-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.apply-days {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.apply-dow span {
    text-align: center;
    font-size: 12px;
    color: #666;
}

.apply-days button {
    min-height: 40px;
    padding: 4px 0;
    color: #b5b5b5;
    border: 1px solid transparent;
    background: transparent;
}

.apply-days button.is-open {
    color: #12315c;
    border-color: #d5e4ff;
    background: #fff;
    font-weight: 600;
}

.apply-days button.is-selected,
.apply-time-list button.is-selected {
    background: #0064ff;
    border-color: #0064ff;
    color: #fff;
}

.apply-days button:disabled {
    color: #c5c5c5;
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.apply-time-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 360px;
    margin: 16px auto 0;
}

.apply-time-list button,
.apply-btn {
    min-height: 44px;
}

.apply-time-list button {
    width: 112px;
    background: #fff;
    color: #0064ff;
    border: 1px solid #c9ddff;
    font-weight: 600;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 18px;
    background: #96CC29;
    border: 1px solid #96CC29;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

#esj_confirm,
#esj_retry {
    display: flex;
    width: min(100%, 240px);
    margin-right: auto;
    margin-left: auto;
}

.apply-btn:hover,
.apply-btn:focus {
    background: #0064ff;
    border-color: #0064ff;
    color: #fff;
    text-decoration: none;
}

.apply-btn-quiet {
    background: #fff;
    color: #0064ff;
    border-color: #0064ff;
}

.apply-btn:disabled,
#esj_confirm:disabled {
    opacity: 1;
    background: #b7b7b7;
    border-color: #b7b7b7;
    color: #fff;
}

.apply-calendar-nav button:disabled {
    opacity: 0.35;
}

.apply-confirm dl {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 10px 16px;
    max-width: 360px;
    margin: 18px auto 6px;
    padding-top: 14px;
    border-top: 1px solid #e6e6e6;
    text-align: left;
}

.apply-confirm dt {
    margin: 0;
    padding-top: 3px;
    color: #666;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.apply-confirm dd {
    margin: 0;
    color: #16141f;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

#esj_c_name {
    color: #0064ff;
    font-size: 18px;
}

.apply-confirm #esj_c_meet {
    display: inline-block;
    margin: 8px 0;
    color: #0064ff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.apply-meet-url {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #d5e4ff;
    background: #f4f8ff;
    color: #12315c;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-all;
}

.apply-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.apply-actions .apply-btn {
    margin-top: 0;
}

.apply-scheduler button:focus-visible,
.apply-confirm a:focus-visible,
.apply-confirm button:focus-visible,
.apply-feedback:focus-visible {
    outline: 2px solid #0064ff;
    outline-offset: 2px;
}

.apply-place {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 12px;
}

.apply-place button {
    min-width: 132px;
    padding: 10px 16px;
    background: #fff;
    color: #0064ff;
    border: 1px solid #0064ff;
    border-radius: 6px;
}

.apply-place button.is-selected {
    background: #0064ff;
    color: #fff;
}

.apply-place-note {
    max-width: 420px;
    margin: 0 auto 14px;
    text-align: center;
}

.apply-place-note p {
    margin: 0 0 6px;
}

#esj_confirm_office {
    display: block;
    width: min(100%, 240px);
    margin: 14px auto 0;
}

.apply-scheduler[hidden],
.apply-confirm[hidden],
.apply-feedback[hidden],
#esj_retry[hidden],
#esj_gcal[hidden],
#esj_times_empty[hidden],
#esj_place_note[hidden],
#esj_c_office[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .apply-calendar,
    .apply-times,
    .apply-stage {
        transition: none;
    }
}

@media screen and (max-width: 460px) {
    .apply-confirm dl {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }

    .apply-actions .apply-btn,
    #esj_confirm,
    #esj_retry {
        width: 100%;
    }
}
