/* inscription page */
.fhead {
    padding: clamp(16px, 3vw, 40px) max(5vw, 16px) 0;
    max-width: calc(1240px + 10vw);
    margin-inline: auto
}

.fhead .k {
    color: var(--yellow)
}

.fhead h1 {
    font: 800 clamp(34px, 5.4vw, 68px)/1 var(--disp);
    letter-spacing: -.03em;
    text-transform: uppercase
}

.fhead h1 .y {
    color: var(--yellow)
}

.fhead .sub {
    max-width: 58ch
}

.stepper {
    --p: 11px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 34px 0 0;
    padding: 0 0 30px;
    position: relative
}

.stepper::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    height: 18px;
    background: linear-gradient(var(--yellow) 0 3px, transparent 3px 5px, var(--orange) 5px 8px, transparent 8px 10px, var(--lilac) 10px 13px, transparent 13px 15px, var(--mint) 15px 18px)
}

.stepper::after {
    content: "";
    position: absolute;
    left: var(--p);
    right: 0;
    top: 6px;
    height: 22px;
    background: var(--indigo);
    opacity: .72
}

.stepper li {
    position: relative;
    z-index: 1
}

.stepper button {
    display: grid;
    gap: 4px;
    justify-items: start;
    background: none;
    border: 0;
    padding: 0;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
    min-height: 44px
}

.stepper button:disabled {
    cursor: default;
    color: #a9a3e6
}

.pin {
    width: 22px;
    height: 34px;
    border-radius: 11px;
    background: #fff;
    border: 4px solid var(--night);
    margin-bottom: 6px
}

.stepper [aria-current=step] .pin {
    background: var(--yellow)
}

.sn {
    font: 500 11px/1.2 var(--mono);
    letter-spacing: .08em;
    color: #c9c4e8
}

.stt {
    font: 700 16px/1.2 var(--text)
}

.formv {
    background: var(--chalk)
}

.formv.band {
    padding-top: clamp(28px, 3.5vw, 48px)
}

.fwrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start
}

.fcard {
    background: #fff;
    border-radius: 24px;
    padding: clamp(20px, 3vw, 40px)
}

.fcard h2 {
    font-size: clamp(24px, 2.6vw, 32px)
}

.stp h2:focus {
    outline: none
}

.fld {
    display: grid;
    gap: 6px;
    margin-top: 20px;
    align-content: start
}

.fld label,
.lbl {
    font-weight: 700;
    font-size: 15px
}

.req {
    color: #c23d12
}

.hint {
    font-size: 14px;
    color: var(--slate)
}

input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
    width: 100%;
    font: 16px/1.4 var(--text);
    color: var(--night);
    background: #fff;
    border: 2px solid var(--rule);
    border-radius: 12px;
    padding: 11px 14px;
    min-height: 48px
}

select {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233A2BD8' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding-right: 40px
}

textarea {
    min-height: 120px;
    resize: vertical
}

input::placeholder,
textarea::placeholder {
    color: #9a96b0
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(58, 43, 216, .2)
}

input[aria-invalid=true],
select[aria-invalid=true],
textarea[aria-invalid=true] {
    border-color: #c23d12
}

.err {
    font-size: 14px;
    color: #c23d12;
    font-weight: 500
}

.err:empty {
    display: none
}

.g2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px
}

.seg {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative
}

.seg input,
.axg input,
.chk input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none
}

.seg label {
    min-height: 44px;
    padding: 10px 16px;
    border: 2px solid var(--rule);
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    background: #fff
}

.seg input:checked+label {
    background: var(--indigo);
    border-color: var(--indigo);
    color: #fff
}

.seg input:focus-visible+label,
.axg input:focus-visible+label,
.chk input:focus-visible+.box {
    outline: 3px solid var(--indigo);
    outline-offset: 2px
}

.axg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    position: relative
}

.axc {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 2px solid var(--rule);
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    min-height: 64px;
    background: #fff
}

.axc svg {
    width: 40px;
    height: 40px;
    flex: none
}

.axg input:checked+.axc {
    border-color: var(--indigo);
    background: #f0edff
}

.mem {
    border: 2px solid var(--rule);
    border-radius: 18px;
    padding: 18px 18px 22px;
    margin-top: 18px
}

.mem.lead {
    border-color: var(--yellow);
    box-shadow: inset 6px 0 0 var(--yellow)
}

.mhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.mhead h3 {
    font: 700 18px/1.2 var(--disp);
    letter-spacing: -.01em
}

.chk {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    cursor: pointer;
    font-size: 16px
}

.box {
    width: 24px;
    height: 24px;
    border: 2px solid #b9b4d4;
    border-radius: 7px;
    flex: none;
    display: grid;
    place-items: center;
    margin-top: 1px;
    background: #fff
}

.chk input:checked+.box {
    background: var(--indigo);
    border-color: var(--indigo)
}

.chk input:checked+.box::after {
    content: "";
    width: 10px;
    height: 6px;
    border: solid #fff;
    border-width: 0 0 3px 3px;
    transform: translateY(-1px) rotate(-45deg)
}

.fnav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap
}

.fnav .btn:only-child,
.fnav #next {
    margin-left: auto
}

.ind {
    background: var(--indigo);
    color: #fff
}

.ind:hover {
    background: var(--indigo2)
}

.line {
    border-color: var(--rule);
    color: var(--night);
    background: #fff
}

.saved {
    font: 500 12px/1.4 var(--mono);
    color: var(--slate);
    margin-top: 14px;
    text-align: right
}

.sum {
    border-left: 4px solid var(--orange);
    background: #fff4ee;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px
}

.sum b {
    display: block;
    margin-bottom: 6px
}

.sum ul {
    margin: 0;
    padding-left: 18px
}

.sum button {
    background: none;
    border: 0;
    padding: 2px 0;
    color: var(--night);
    text-decoration: underline;
    font: inherit;
    cursor: pointer;
    text-align: left
}

.rec {
    margin-top: 20px;
    border: 2px solid var(--rule);
    border-radius: 18px;
    padding: 16px 18px
}

.rech {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.rech h3 {
    font: 700 16px/1.2 var(--disp)
}

.linkbtn {
    background: none;
    border: 0;
    color: var(--indigo);
    font: 700 14px/1 var(--text);
    text-decoration: underline;
    cursor: pointer;
    min-height: 44px;
    padding: 0 4px
}

.rec dl {
    display: grid;
    grid-template-columns: 10em minmax(0, 1fr);
    gap: 6px 14px;
    margin: 8px 0 0
}

.rec dt {
    color: var(--slate);
    font-size: 14px
}

.rec dd {
    margin: 0;
    font-weight: 500;
    overflow-wrap: anywhere
}

.demo {
    border: 2px dashed var(--indigo);
    border-radius: 14px;
    padding: 12px 14px;
    font: 500 13px/1.5 var(--mono);
    color: var(--indigo);
    background: #f0edff;
    margin-top: 22px
}

.done h2 {
    font-size: clamp(28px, 3.4vw, 44px);
    margin-top: 18px
}

.done p.lead {
    margin-top: 12px
}

.side {
    position: sticky;
    top: 16px;
    background: var(--night);
    color: #fff;
    border-radius: 24px;
    padding: 22px
}

.side .k {
    color: var(--yellow);
    margin-bottom: 10px
}

.tname {
    font: 800 22px/1.1 var(--disp);
    letter-spacing: -.02em;
    overflow-wrap: anywhere
}

.axchip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    color: var(--night);
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 12px
}

.axchip svg {
    width: 28px;
    height: 28px
}

.meter {
    height: 8px;
    background: rgba(255, 255, 255, .18);
    border-radius: 4px;
    margin-top: 18px;
    overflow: hidden
}

.meter i {
    display: block;
    height: 100%;
    background: var(--yellow);
    width: 0;
    transition: width .3s
}

.mtxt {
    font: 500 12px/1.4 var(--mono);
    color: #c9c4e8;
    margin-top: 6px
}

.badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px
}

.bdg {
    background: #fff;
    color: var(--night);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 146px
}

.bt {
    background: var(--indigo);
    padding: 8px 10px;
    display: flex;
    gap: 6px;
    align-items: center;
    font: 800 10px/1 var(--disp);
    color: #fff;
    letter-spacing: .02em
}

.bt svg {
    width: 18px;
    height: 18px;
    flex: none
}

.bn {
    padding: 10px 10px 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    flex: 1
}

.bn.empty {
    color: var(--slate);
    font-weight: 500
}

.bn small {
    display: block;
    font: 500 11px/1.4 var(--mono);
    color: var(--indigo);
    margin-top: 4px;
    text-transform: uppercase
}

.br {
    padding: 6px 10px;
    font: 700 11px/1.2 var(--text);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 10px;
    color: var(--night)
}

.sidenote {
    font-size: 13px;
    color: #c9c4e8;
    margin-top: 14px
}

@media(max-width:1000px) {
    .fwrap {
        grid-template-columns: minmax(0, 1fr)
    }

    .side {
        position: static
    }
}

@media(max-width:640px) {
    /* phones: the form sits straight on a white page */
    .formv {
        background: #fff
    }

    .fcard {
        background: none;
        border-radius: 0;
        padding: 0
    }

    .g2 {
        grid-template-columns: minmax(0, 1fr)
    }

    .axc {
        flex-direction: column;
        text-align: center;
        font-size: 13px;
        padding: 10px 6px;
        gap: 6px
    }

    .axc svg {
        width: 36px;
        height: 36px
    }

    .rec dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px
    }

    .rec dd {
        margin-bottom: 8px
    }

    .stt {
        font-size: 13px
    }

    .sn {
        font-size: 10px
    }

    .fnav .btn {
        flex: 1 1 100%
    }
}

@media(max-width:480px) {
    .sn {
        display: none
    }

    .stt {
        font-size: 12px
    }

    .stepper {
        column-gap: 4px
    }
}

@media(prefers-reduced-motion:reduce) {
    .meter i {
        transition: none
    }
}
/* university picker (combobox) */
.cmb { margin-top: 20px }

.cmbw { position: relative }

.cmbw input {
    padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%233A2BD8' stroke-width='2.2'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%233A2BD8' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center
}

.cmbl {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 2px solid var(--indigo);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(21, 17, 46, .18)
}

.cmbl li {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.3
}

.cmbl li small {
    font: 500 12px/1.3 var(--mono);
    color: var(--slate)
}

.cmbl li:hover,
.cmbl li[aria-selected=true] {
    background: #f0edff
}

.cmbl li[aria-selected=true] {
    box-shadow: inset 3px 0 0 var(--indigo)
}

.cmbl li.custom {
    border-top: 1px solid var(--rule);
    margin-top: 4px;
    font-weight: 700;
    color: var(--indigo)
}

.cmbl li.none {
    cursor: default;
    color: var(--slate)
}

.cmbl li.none:hover { background: none }
