/* ============================================================
   MAKOPALA ORDik
   SINGLE FORM / ADVENTURE MEETS CAMPUS
   FINAL 4 FIELD FORM
   ============================================================ */

:root {
    --bg: #050a07;
    --surface: rgba(7, 16, 11, .78);
    --surface-strong: rgba(5, 12, 8, .92);

    --line: rgba(255,255,255,.14);
    --line-strong: rgba(255,255,255,.25);

    --text: #f4f6f2;
    --muted: #aab4ad;
    --soft: #7f8b83;

    --accent: #dce8df;
    --danger: #ff9b9b;

    --radius: 18px;
}


/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
}


html {
    min-height: 100%;
    background: var(--bg);
}


body {
    min-height: 100vh;
    margin: 0;

    color: var(--text);
    background: var(--bg);

    font-family: "Manrope", sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ============================================================
   FORM ELEMENTS
   ============================================================ */

button,
input,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


/* ============================================================
   MAIN APPLICATION
   ============================================================ */

.registration-app {
    position: relative;

    min-height: 100vh;
    min-height: 100svh;

    overflow-x: hidden;

    isolation: isolate;
}


/* ============================================================
   BACKGROUND
   ============================================================ */

.page-background {
    position: fixed;

    inset: 0;

    z-index: -3;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        saturate(.85)
        contrast(1.05)
        brightness(.58);

    transform: scale(1.02);
}


/* ============================================================
   BACKGROUND OVERLAY
   ============================================================ */

.page-overlay {
    position: fixed;

    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            180deg,
            rgba(2,7,4,.82) 0%,
            rgba(3,9,6,.58) 38%,
            rgba(2,7,4,.90) 100%
        ),
        linear-gradient(
            90deg,
            rgba(2,7,4,.70),
            rgba(2,7,4,.18) 55%,
            rgba(2,7,4,.72)
        );
}


/* ============================================================
   VIGNETTE
   ============================================================ */

.page-vignette {
    position: fixed;

    inset: 0;

    z-index: -1;

    pointer-events: none;

    box-shadow:
        inset 0 0 180px 70px rgba(0,0,0,.45);
}


/* ============================================================
   REGISTRATION SHELL
   ============================================================ */

.registration-shell {
    width: min(
        920px,
        calc(100% - 32px)
    );

    margin: 0 auto;

    padding: 28px 0 24px;
}


/* ============================================================
   BRAND HEADER
   ============================================================ */

.brand-header {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-bottom: 28px;
}


.brand-box {
    min-height: 54px;

    padding: 8px 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.18);

    border-radius: 13px;

    background:
        rgba(4,10,7,.38);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);
}


.brand-logo {
    width: auto;

    max-width: 100%;

    object-fit: contain;

    display: block;
}


.brand-logo-ubl {
    max-width: 116px;
    max-height: 46px;
}


.brand-logo-mkp {
    max-width: 108px;
    max-height: 46px;
}


.brand-divider {
    width: 1px;

    height: 28px;

    background:
        rgba(255,255,255,.24);
}


/* ============================================================
   INTRO
   ============================================================ */

.intro {
    max-width: 760px;

    margin:
        0 auto 25px;

    text-align: center;
}


/* ============================================================
   TOP META
   ============================================================ */

.top-meta {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    color: #c0c9c2;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .19em;

    text-transform: uppercase;
}


.meta-line {
    width: 28px;

    height: 1px;

    background:
        rgba(255,255,255,.35);
}


/* ============================================================
   EYEBROW
   ============================================================ */

.eyebrow {
    margin-top: 19px;

    color: #d6e0d9;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .25em;

    text-transform: uppercase;
}


/* ============================================================
   MAIN TITLE
   ============================================================ */

.intro h1 {
    margin:
        7px 0 7px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(45px, 7vw, 76px);

    font-weight: 600;

    line-height: .88;

    letter-spacing: -.035em;
}


.intro h1 em {
    font-style: italic;
}


/* ============================================================
   INTRO DESCRIPTION
   ============================================================ */

.intro p {
    max-width: 570px;

    margin:
        16px auto 0;

    color: #c0c9c3;

    font-size: 13px;

    line-height: 1.75;
}


/* ============================================================
   REGISTRATION CARD
   ============================================================ */

.registration-card {
    padding:
        clamp(22px, 4vw, 38px);

    border:
        1px solid
        rgba(255,255,255,.15);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(7,17,11,.88),
            rgba(4,10,7,.76)
        );

    box-shadow:
        0 24px 80px
        rgba(0,0,0,.34);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);
}


/* ============================================================
   FORM HEADING
   ============================================================ */

.form-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 18px;

    padding-bottom: 18px;

    margin-bottom: 23px;

    border-bottom:
        1px solid
        rgba(255,255,255,.10);
}


.form-heading > div {
    display: flex;

    align-items: baseline;

    gap: 12px;
}


.section-number {
    color: #718078;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .12em;
}


.form-heading h2 {
    margin: 0;

    font-size: 17px;

    font-weight: 800;

    letter-spacing: -.02em;
}


.required-note {
    color: #7f8a83;

    font-size: 9px;

    font-weight: 700;
}


/* ============================================================
   FORM GRID
   ============================================================ */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px 16px;
}


.field {
    min-width: 0;
}


.field-full {
    grid-column: 1 / -1;
}


/* ============================================================
   FIELD LABEL
   ============================================================ */

.field label {
    display: block;

    margin:
        0 0 8px;

    color: #dce2de;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .04em;
}


.field label span {
    color: #a8b8ae;
}


/* ============================================================
   INPUT & SELECT WRAPPER
   ============================================================ */

.input-wrap,
.select-wrap {
    position: relative;

    width: 100%;

    border:
        1px solid
        rgba(255,255,255,.13);

    border-radius: 11px;

    background:
        rgba(0,0,0,.23);

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


/* ============================================================
   FOCUS
   ============================================================ */

.input-wrap:focus-within,
.select-wrap:focus-within {
    border-color:
        rgba(222,235,226,.48);

    background:
        rgba(0,0,0,.31);

    box-shadow:
        0 0 0 3px
        rgba(210,225,216,.05);
}


/* ============================================================
   INPUT
   ============================================================ */

.input-wrap input {
    width: 100%;

    min-height: 48px;

    padding:
        0 14px;

    border: 0;

    outline: 0;

    color: #f3f6f3;

    background: transparent;

    font-size: 13px;
}


.input-wrap input::placeholder {
    color: #6f7c73;
}


/* ============================================================
   SELECT
   ============================================================ */

.select-wrap select {
    width: 100%;

    min-height: 48px;

    padding:
        0 40px 0 14px;

    border: 0;

    outline: 0;

    color: #f3f6f3;

    background: transparent;

    font-size: 13px;

    appearance: none;

    -webkit-appearance: none;

    cursor: pointer;
}


/* ============================================================
   DISABLED SELECT
   ============================================================ */

.select-wrap select:disabled {
    color: #667169;

    cursor: not-allowed;

    opacity: .75;
}


/* ============================================================
   SELECT OPTION
   ============================================================ */

.select-wrap option {
    color: #111;

    background: #fff;
}


/* ============================================================
   SELECT ARROW
   ============================================================ */

.select-arrow {
    position: absolute;

    right: 14px;

    top: 50%;

    transform:
        translateY(-55%);

    color: #9eaaa2;

    font-size: 18px;

    pointer-events: none;

    transition:
        transform .2s ease,
        color .2s ease;
}


/* ============================================================
   SELECT FOCUS ARROW
   ============================================================ */

.select-wrap:focus-within .select-arrow {
    color: #dce8df;

    transform:
        translateY(-55%);
}


/* ============================================================
   FIELD ERROR
   ============================================================ */

.field-error {
    display: block;

    min-height: 0;

    margin-top: 6px;

    color: var(--danger);

    font-size: 9px;

    line-height: 1.4;
}


/* ============================================================
   INVALID FIELD
   ============================================================ */

.field.invalid .input-wrap,
.field.invalid .select-wrap {
    border-color:
        rgba(255,130,130,.48);

    box-shadow:
        0 0 0 2px
        rgba(255,100,100,.04);
}


/* ============================================================
   FORM BOTTOM
   ============================================================ */

.form-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 28px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(255,255,255,.10);
}


/* ============================================================
   MOTTO
   ============================================================ */

.motto {
    max-width: 360px;

    color: #8f9b93;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 16px;

    font-style: italic;

    line-height: 1.25;
}


/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

.submit-button {
    min-width: 210px;

    min-height: 50px;

    padding:
        0 18px 0 21px;

    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    gap: 22px;

    border:
        1px solid
        rgba(255,255,255,.28);

    border-radius: 11px;

    color: #071009;

    background: #e5ebe6;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .13em;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


/* ============================================================
   BUTTON HOVER
   ============================================================ */

.submit-button:hover {
    transform:
        translateY(-2px);

    background: #fff;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.24);
}


/* ============================================================
   BUTTON ACTIVE
   ============================================================ */

.submit-button:active {
    transform:
        translateY(0);
}


/* ============================================================
   BUTTON DISABLED
   ============================================================ */

.submit-button:disabled {
    opacity: .65;

    cursor: wait;

    transform: none;
}


/* ============================================================
   BUTTON ARROW
   ============================================================ */

.submit-arrow {
    font-size: 19px;

    font-weight: 400;

    line-height: 1;
}


/* ============================================================
   FOOTNOTE
   ============================================================ */

.form-footnote {
    margin-top: 13px;

    color: #68746c;

    font-size: 9px;

    line-height: 1.6;

    text-align: right;
}


/* ============================================================
   SERVER ERROR
   ============================================================ */

.server-error {
    max-width: 920px;

    margin:
        0 auto 16px;

    padding:
        12px 14px;

    display: flex;

    align-items: center;

    gap: 10px;

    border:
        1px solid
        rgba(255,120,120,.25);

    border-radius: 11px;

    color: #ffd5d5;

    background:
        rgba(85,15,15,.42);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


/* ============================================================
   SERVER ERROR ICON
   ============================================================ */

.server-error-icon {
    width: 21px;

    height: 21px;

    flex:
        0 0 21px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(255,180,180,.35);

    border-radius: 50%;

    font-size: 11px;

    font-weight: 900;
}


/* ============================================================
   SERVER ERROR TEXT
   ============================================================ */

.server-error > span:not(.server-error-icon) {
    flex: 1;

    font-size: 10px;

    line-height: 1.5;
}


/* ============================================================
   SERVER ERROR CLOSE
   ============================================================ */

.server-error button {
    border: 0;

    background: transparent;

    color: #ffc0c0;

    font-size: 20px;

    line-height: 1;
}


/* ============================================================
   FOOTER
   ============================================================ */

.page-footer {
    padding:
        18px 0 0;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 9px;

    color: #67736b;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .16em;
}


.footer-dot {
    width: 3px;

    height: 3px;

    border-radius: 50%;

    background: #738077;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {


    /* --------------------------------------------------------
       SHELL
       -------------------------------------------------------- */

    .registration-shell {
        width:
            min(
                calc(100% - 22px),
                620px
            );

        padding-top: 17px;

        padding-bottom: 17px;
    }


    /* --------------------------------------------------------
       BRAND
       -------------------------------------------------------- */

    .brand-header {
        margin-bottom: 20px;

        gap: 9px;
    }


    .brand-box {
        min-height: 48px;

        padding:
            6px 10px;

        border-radius: 11px;
    }


    .brand-logo-ubl {
        max-width: 100px;

        max-height: 40px;
    }


    .brand-logo-mkp {
        max-width: 91px;

        max-height: 40px;
    }


    .brand-divider {
        height: 23px;
    }


    /* --------------------------------------------------------
       INTRO
       -------------------------------------------------------- */

    .intro {
        margin-bottom: 18px;
    }


    .top-meta {
        font-size: 7px;

        letter-spacing: .13em;

        gap: 8px;
    }


    .meta-line {
        width: 17px;
    }


    .eyebrow {
        margin-top: 14px;

        font-size: 8px;

        letter-spacing: .18em;
    }


    .intro h1 {
        font-size:
            clamp(
                43px,
                14vw,
                61px
            );

        line-height: .86;
    }


    .intro p {
        margin-top: 12px;

        font-size: 11px;

        line-height: 1.6;
    }


    /* --------------------------------------------------------
       CARD
       -------------------------------------------------------- */

    .registration-card {
        padding:
            19px 15px;

        border-radius: 15px;
    }


    /* --------------------------------------------------------
       HEADING
       -------------------------------------------------------- */

    .form-heading {
        align-items: center;

        margin-bottom: 19px;

        padding-bottom: 14px;
    }


    .form-heading h2 {
        font-size: 15px;
    }


    .required-note {
        font-size: 8px;
    }


    /* --------------------------------------------------------
       GRID
       -------------------------------------------------------- */

    .form-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .field-full {
        grid-column: auto;
    }


    /* --------------------------------------------------------
       LABEL
       -------------------------------------------------------- */

    .field label {
        font-size: 9px;

        margin-bottom: 7px;
    }


    /* --------------------------------------------------------
       INPUT / SELECT
       -------------------------------------------------------- */

    .input-wrap input,
    .select-wrap select {
        min-height: 49px;

        font-size: 12px;
    }


    /* --------------------------------------------------------
       FORM BOTTOM
       -------------------------------------------------------- */

    .form-bottom {
        margin-top: 23px;

        padding-top: 17px;

        flex-direction: column;

        align-items: stretch;
    }


    /* --------------------------------------------------------
       MOTTO
       -------------------------------------------------------- */

    .motto {
        max-width: none;

        font-size: 14px;

        text-align: center;
    }


    /* --------------------------------------------------------
       BUTTON
       -------------------------------------------------------- */

    .submit-button {
        width: 100%;

        min-width: 0;

        min-height: 52px;
    }


    /* --------------------------------------------------------
       FOOTNOTE
       -------------------------------------------------------- */

    .form-footnote {
        text-align: center;

        font-size: 8px;
    }


    /* --------------------------------------------------------
       FOOTER
       -------------------------------------------------------- */

    .page-footer {
        font-size: 7px;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {


    .registration-shell {
        width:
            calc(100% - 16px);
    }


    .intro h1 {
        font-size: 42px;
    }


    .intro p {
        font-size: 10px;
    }


    .registration-card {
        padding:
            17px 12px;
    }


    .top-meta {
        font-size: 6.5px;

        letter-spacing: .10em;
    }


    .eyebrow {
        font-size: 7px;

        letter-spacing: .14em;
    }


    .form-heading {
        gap: 8px;
    }


    .form-heading > div {
        gap: 8px;
    }


    .form-heading h2 {
        font-size: 14px;
    }


    .required-note {
        font-size: 7px;
    }


    .input-wrap input,
    .select-wrap select {
        font-size: 11px;
    }


    .motto {
        font-size: 13px;
    }

}


/* ============================================================
   DESKTOP
   ============================================================ */

@media (min-width: 1000px) {


    .registration-shell {
        padding-top: 36px;
    }


    .intro {
        margin-bottom: 30px;
    }


}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition-duration:
            .01ms !important;

        animation-duration:
            .01ms !important;
    }

}