/* School registration (v2): dark hero with the steps on the left and the form card on the right. */

.kh .kreg-hero { padding-bottom: clamp(48px, 6vw, 88px); text-align: left; }
.kreg-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: clamp(32px, 5vw, 64px); }
.kreg-copy { position: sticky; top: 120px; }
.kreg-copy .kh-hero__badge { margin-inline: 0; }
.kreg-copy .kh-hero__lead { margin-inline: 0; }
:root:root .public-site .kh .kreg-hero h1.kh-hero__title { font-size: clamp(30px, 3.8vw, 48px) !important; text-wrap: balance; }

.kreg-steps { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.kreg-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.kreg-steps span { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--kh-accent); color: var(--kh-accent-ink); font-size: 14px; font-weight: 700; }
.kreg-steps strong { display: block; color: #fff; font-size: 15.5px; font-weight: 600; }
.kreg-steps small { display: block; color: rgba(255, 255, 255, .65); font-size: 13.5px; }
.kh .kreg-ticks { justify-content: flex-start; margin-top: 22px; }
.kh .kreg-help { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: #fff !important; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.kh .kreg-help i { color: var(--kh-accent); font-size: 18px; }
.kh .kreg-help:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- the form card */
.kreg-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--kh-radius-lg); background: #fff; color: var(--kh-ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
:root .public-site .kh .kreg-card h2 { margin: 0; color: var(--kh-ink) !important; font-size: 24px !important; font-weight: 600 !important; letter-spacing: -0.015em !important; }
.kreg-card__sub { margin: 6px 0 20px; color: #5f6b7a; font-size: 14px; }

.kreg-card .kisoma-registration-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
.kreg-card .kisoma-registration-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kreg-card .kisoma-registration-field--full { grid-column: 1 / -1; }
.kreg-card .kisoma-registration-field label { margin: 0; color: var(--kh-ink); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.kreg-card .kisoma-registration-field .text-danger { color: #c0392b !important; }

.kreg-card .kisoma-registration-field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="submit"]),
.kreg-card .kisoma-registration-field select,
.kreg-card .kisoma-registration-field textarea,
.kreg-card .kisoma-registration-field .custom-select-trigger {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #cfd8d4;
    border-radius: 10px;
    background: #fff;
    color: var(--kh-ink);
    font: inherit;
    font-size: 15px;
    line-height: 1.35;
    box-shadow: none;
}

.kreg-card .kisoma-registration-field .custom-select-trigger { display: flex; align-items: center; }
.kreg-card .kisoma-registration-field input:focus,
.kreg-card .kisoma-registration-field select:focus,
.kreg-card .kisoma-registration-field textarea:focus,
.kreg-card .kisoma-registration-field .custom-select-wrapper.is-open .custom-select-trigger {
    outline: none;
    border-color: var(--kh-night-2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--kh-accent) 45%, transparent);
}

/* Phone: country code and number in one box */
.kreg-card .kisoma-registration-phone { display: flex; align-items: stretch; width: 100%; min-height: 46px; overflow: hidden; border: 1px solid #cfd8d4; border-radius: 10px; background: #fff; }
.kreg-card .kisoma-registration-phone:focus-within { border-color: var(--kh-night-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kh-accent) 45%, transparent); }
.kreg-card .kisoma-registration-phone > .custom-select-wrapper,
.kreg-card .kisoma-registration-phone > select { flex: 0 0 140px !important; width: 140px !important; min-width: 140px; }
.kreg-card .kisoma-registration-phone .custom-select-trigger,
.kreg-card .kisoma-registration-phone > select,
.kreg-card .kisoma-registration-phone > input.form-control { min-height: 44px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.kreg-card .kisoma-registration-phone .custom-select-trigger,
.kreg-card .kisoma-registration-phone > select { border-right: 1px solid #cfd8d4 !important; background: var(--kh-soft) !important; }
.kreg-card .kisoma-registration-phone > input.form-control { flex: 1; min-width: 0; padding: 10px 14px !important; }

.kreg-card .kisoma-registration-recaptcha { margin-top: 6px; overflow-x: auto; }
.kreg-card .kisoma-registration-recaptcha .g-recaptcha { margin-top: 12px !important; }
.kreg-card .kisoma-registration-submit { margin-top: 18px; }
.kreg-card .kisoma-registration-submit .commonBtn,
.kreg-card .kisoma-registration-submit input[type="submit"] {
    width: 100%;
    min-height: 50px;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--kh-night-2) !important;
    color: #fff !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    cursor: pointer;
}
.kreg-card .kisoma-registration-submit input[type="submit"]:hover { background: var(--kh-night) !important; }

.kreg-card__signin { margin: 16px 0 0; color: #5f6b7a; font-size: 14.5px; text-align: center; }
.kh .kreg-card__signin a, .kh .kreg-card__legal a { color: var(--kh-night-2) !important; font-weight: 600; text-decoration: none; }
.kh .kreg-card__signin a:hover, .kh .kreg-card__legal a:hover { text-decoration: underline; }
.kreg-card__legal { margin: 10px 0 0; color: #8a9593; font-size: 12.5px; text-align: center; }

@media (max-width: 991.98px) {
    .kreg-grid { grid-template-columns: minmax(0, 1fr); }
    .kreg-copy { position: static; }
    .kreg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kreg-steps li { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575.98px) {
    .kreg-steps { grid-template-columns: minmax(0, 1fr); }
    .kreg-steps li { flex-direction: row; align-items: center; }
    .kreg-card .kisoma-registration-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .kreg-card .kisoma-registration-phone > .custom-select-wrapper,
    .kreg-card .kisoma-registration-phone > select { flex-basis: 116px !important; width: 116px !important; min-width: 116px; }
}
