@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --blue: #073bff;
    --dark: #071b55;
    --black: #07101f;
    --white: #ffffff;
    --line: #dbe2ee;
    --soft: #f5f7fb;
    --muted: #657188;
    --danger: #b42318;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--black);
    font-family: "DM Sans", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}


/* HEADER */

.registration-header {
    height: 88px;
    padding: 0 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}

.brand {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.brand span {
    margin-left: 8px;
    color: var(--blue);
    font-size: 11px;
    letter-spacing: 1px;
}

.back {
    color: var(--muted);
    font-size: 13px;
}


/* MAIN */

.registration-page {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: calc(100vh - 88px);
}


/* INTRO */

.registration-intro {
    padding: 90px 7vw;

    background: var(--blue);
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    margin-bottom: 40px;

    color: #bfcfff;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.registration-intro h1,
.success h2 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(70px, 9vw, 130px);
    line-height: .82;
    letter-spacing: -6px;
    font-weight: 500;
}

.registration-intro h1 span,
.success h2 span {
    display: block;
    color: #b9c9ff;
}

.registration-intro > p:last-child {
    max-width: 390px;
    margin-top: 60px;

    color: #dce5ff;

    font-size: 17px;
    line-height: 1.6;
}


/* FORM */

.form-area {
    padding: 65px 7vw;
}

.form-heading {
    display: flex;
    justify-content: space-between;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--line);

    color: var(--blue);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

form {
    padding-top: 45px;
}

.field {
    margin-bottom: 32px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.field label {
    display: block;

    margin-bottom: 10px;

    font-size: 13px;
    font-weight: 600;
}

.field label small {
    margin-left: 8px;

    color: #8994a7;
    font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    height: 58px;

    padding: 0 17px;

    border: 1px solid #cfd7e5;
    outline: none;

    background: white;

    font-family: inherit;
    font-size: 15px;

    transition: .2s;
}

input:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(7, 59, 255, .08);
}


/* CHOICES */

.choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.choice {
    cursor: pointer;
}

.choice input {
    position: absolute;
    opacity: 0;
}

.choice span {
    min-height: 58px;

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

    padding: 10px;

    border: 1px solid #cfd7e5;

    font-size: 13px;
    text-align: center;

    transition: .2s;
}

.choice input:checked + span {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}


/* ERRORS */

.errors {
    margin-top: 30px;
    padding: 16px 20px;

    border-left: 3px solid var(--danger);

    background: #fff5f4;
    color: var(--danger);

    font-size: 13px;
    line-height: 1.7;
}

.errors p + p {
    margin-top: 4px;
}


/* BUTTON */

button {
    width: 100%;
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    border: 0;

    background: var(--blue);
    color: white;

    cursor: pointer;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    transition: .25s;
}

button span {
    font-size: 25px;
}

button:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.form-note {
    margin-top: 18px;

    color: #8994a7;

    font-size: 11px;
    line-height: 1.5;
}


/* SUCCESS */

.success {
    min-height: 600px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.success .eyebrow {
    margin-top: 45px;
    margin-bottom: 35px;

    color: var(--blue);
}

.success h2 {
    font-size: clamp(65px, 8vw, 115px);
}

.success h2 span {
    color: var(--blue);
}

.success > p:not(.eyebrow) {
    max-width: 450px;
    margin-top: 45px;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.6;
}

.success-number {
    width: 58px;
    height: 58px;

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

    border-radius: 50%;

    background: var(--blue);
    color: white;

    font-size: 25px;
}

.return-button {
    display: inline-flex;

    width: fit-content;

    margin-top: 35px;
    padding: 18px 22px;

    background: var(--blue);
    color: white;

    font-size: 13px;
    font-weight: 700;
}


/* FOOTER */

footer {
    padding: 30px 5vw;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    gap: 20px;

    background: #041331;
    color: #aebde0;

    font-size: 11px;
    letter-spacing: 1px;
}

footer strong {
    color: white;
}

footer a {
    text-align: right;
}


/* MOBILE */

@media (max-width: 800px) {

    .registration-header {
        height: 72px;
    }

    .registration-page {
        display: block;
    }

    .registration-intro {
        min-height: 550px;
        padding: 70px 8vw;
    }

    .registration-intro h1 {
        font-size: 20vw;
    }

    .form-area {
        padding: 55px 7vw;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .choices {
        grid-template-columns: 1fr;
    }

    footer {
        grid-template-columns: 1fr;
    }

    footer a {
        text-align: left;
    }
}