/* THEME */
.consult-inner {
    width: min(900px, 100%);
    margin: 0 auto;
}

/* STEP */
.step-area {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 580px;
    margin: 0 auto 34px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ba4ae;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease;
}

.step-item.active {
    color: var(--section-main);
}

.step-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    border: 1px solid #d8dde3;
    border-radius: 50%;
    background: #fff;
    color: #8c96a0;
    font-size: 11px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.step-item.active .step-number {
    border-color: var(--section-main);
    background: var(--section-main);
    color: #fff;
}

.step-line {
    flex: 1;
    min-width: 35px;
    max-width: 70px;
    height: 1px;
    margin: 0 15px;
    background: var(--border);
}

/* FORM CARD */
.consult-card {
    padding: 42px 46px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(28, 43, 61, .06);
}

.form-page {
    display: none;
}

.form-page.active {
    display: block;
    animation: formFade .35s ease;
}

.form-head {
    margin-bottom: 32px;
}

.form-head h4 {
    margin: 0;
    color: var(--text-main);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -.5px;
}

/* FORM */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-row.student,
.form-row.school {
    grid-template-columns: 1.35fr .65fr;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
}

.required {
    margin-left: 2px;
    color: var(--section-main);
}

.section-page input[type="text"],
.section-page input[type="tel"],
.section-page input[type="date"],
.section-page select,
.section-page textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--text-main);
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.section-page input::placeholder,
.section-page textarea::placeholder {
    color: var(--text-light);
}

.section-page input:focus,
.section-page select:focus,
.section-page textarea:focus {
    border-color: var(--section-light);
    box-shadow: 0 0 0 3px var(--section-focus);
}

.section-page textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.7;
}

/* CHOICE */
.choice-grid {
    display: grid;
    gap: 8px;
}

.choice-grid.gender {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid.subject,
.choice-grid.time {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid.channel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-grid.coding-subject {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice {
    position: relative;
}

.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice>span {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.choice>span:hover {
    border-color: var(--section-light);
    color: var(--section-main);
}

.choice input:checked+span {
    border-color: var(--section-main);
    background: var(--section-soft);
    color: var(--section-main);
    font-weight: 700;
}

/* DIVIDER */
.form-divider {
    height: 1px;
    margin: 28px 0;
    background: #edf0f3;
}

/* NOTICE */
.trial-notice {
    margin-top: 14px;
    padding: 15px 17px;
    border-left: 3px solid var(--section-main);
    border-radius: 8px;
    background: var(--section-bg);
}

.trial-notice-title {
    display: block;
    margin-bottom: 5px;
    color: var(--section-main);
    font-size: 13px;
    font-weight: 800;
}

.trial-notice p {
    margin: 0;
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.65;
}

.trial-notice strong {
    color: var(--section-main);
    font-weight: 700;
}

/* SHUTTLE */
.shuttle-note {
    margin: 7px 0 0;
    color: #89939e;
    font-size: 11px;
}

.shuttle-place {
    margin-top: 16px;
}

.shuttle-place.hide {
    display: none;
}

/* PRIVACY */
.privacy-box {
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.privacy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--section-bg);
    color: var(--text-main);
    font-size: 13px;
}

.privacy-content {
    padding: 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.privacy-content p {
    margin: 0 0 6px;
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.65;
}

.privacy-content p:last-child {
    margin-bottom: 0;
}

.privacy-content .privacy-law {
    margin-top: 13px;
}

.privacy-agree {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    color: var(--text-sub);
    font-size: 12px;
    cursor: pointer;
}

.privacy-agree+.privacy-agree {
    border-top: 1px solid #edf0f3;
}

.section-page .privacy-agree input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 0;
    accent-color: var(--section-main);
}

/* BUTTON */
.button-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    min-width: 115px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-prev {
    background: #f0f2f4;
    color: #616c78;
}

.btn-next,
.btn-submit {
    margin-left: auto;
    background: var(--section-main);
    color: #fff;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--section-light);
    transform: translateY(-1px);
    box-shadow: 0 7px 17px rgba(28, 43, 61, .10);
}

@media(max-width:700px) {
    .section-page {
        padding: 36px 0 65px;
    }

    .step-area {
        max-width: none;
        margin-bottom: 24px;
    }

    .step-item {
        gap: 5px;
        font-size: 10px;
    }

    .step-number {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 9px;
    }

    .step-line {
        min-width: 12px;
        margin: 0 6px;
    }

    .consult-card {
        padding: 27px 20px;
        border-radius: 18px;
    }

    .form-head {
        margin-bottom: 25px;
    }

    .form-head h4 {
        font-size: 17px;
    }

    .form-row,
    .form-row.student,
    .form-row.school {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-label {
        margin-bottom: 7px;
        font-size: 13px;
    }

    .section-page input[type="text"],
    .section-page input[type="tel"],
    .section-page input[type="date"],
    .section-page select,
    .section-page textarea {
        padding: 12px;
        font-size: 13px;
    }

    .choice-grid.subject,
    .choice-grid.channel,
    .choice-grid.coding-subject,
    .choice-grid.time {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .choice>span {
        min-height: 42px;
        padding: 7px;
        font-size: 11px;
    }

    .trial-notice {
        padding: 13px 14px;
    }

    .privacy-head {
        padding: 12px 13px;
        font-size: 11px;
    }

    .privacy-content {
        padding: 13px;
    }

    .privacy-content p,
    .privacy-agree {
        font-size: 11px;
    }

    .privacy-agree {
        padding: 12px 13px;
    }

    .button-area {
        margin-top: 24px;
    }

    .btn {
        min-width: 96px;
        min-height: 44px;
        padding: 0 16px;
        font-size: 12px;
    }
}

@media(max-width:380px) {
    .consult-card {
        padding: 24px 17px;
    }

    .step-item {
        font-size: 9px;
    }

    .choice-grid.time {
        grid-template-columns: 1fr;
    }
}

@keyframes formFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}