/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
    isolation: isolate;
}

[x-cloak] {
    display: none !important;
}


/* END RESET */


/* BASE STYLES */

:root {
    --light: #fafafa;
    --white-half: #ffffff99;
    --dark: #1b1b1b;
    --tertiary-blue: #7777FF;
}

body {
    font-family: "Manrope", Roboto, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    cursor: pointer;
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
}

.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
}

.container {
    z-index: 10;
    object-fit: fill;
    width: 100%;
    max-width: 1420px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem;
    padding-right: 3rem;
    text-decoration: none;
    position: relative;
}

/* TYPE */

h1 {
    font-weight: 400;
    font-size: 28px;
}


/* NAVBAR */

nav {
    padding: 1rem 0rem;
}

.logo {
    width: auto;
    height: 2.5rem;
}


/* FORM SECTION */

.form-block {
    color: var(--light);
    width: 100%;
    padding: 4rem;
    position: relative;

    clip-path: polygon(32px 0,
            calc(100% - 32px) 0,
            100% 32px,
            100% calc(100% - 32px),
            calc(100% - 32px) 100%,
            32px 100%,
            0 calc(100% - 32px),
            0 32px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 4rem 0 2rem;
}

.form-video-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-color: #8483ff;
}

.form-video-block video {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

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

.form-label {
    display: block;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.form-label span {
    color: white;
    font-weight: 600;
    margin-left: 2px;
}

input {
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid var(--light);
    color: var(--light);
    outline: none;
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
}

input:active,
input:focus {
    background: #ffffff1a;
    color: white;
    border-bottom: 1px solid white;
}

label:has(+ input.error),
.form-error {
    color: #ffd3d9;
}

.form-disclaimer {
    font-size: 16px;
    color: var(--white-half);
}

.submit-btn {
    min-height: 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light);
    color: var(--tertiary-blue);
    font-weight: 600;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
}

.submit-btn:hover {
    background-color: white;
}

.submit-btn.submitting {
    transform: scale(1);
    animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
    to {
        transform: scale(0.99);
    }
}

.submit-icon {
    width: 16px;
    height: 16px;
    border: 3px solid var(--tertiary-blue);
    border-top-color: rgba(119, 119, 255, 0.3);
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.terms {
    margin-top: 4rem;
}

.terms-h {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.terms p {
    color: var(--white-half);
    margin-bottom: 10px;
}

.terms-link {
    color: var(--light);
}

.terms-link:hover {
    color: white;
}

/* FOOTER */

footer {
    margin-top: 4rem;
    padding: 1rem 0rem;
}

.footer-copy {
    font-size: 14px;
    text-align: center;
}

.footer-copy-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--dark);
}

.footer-copy-link:hover {
    color: var(--tertiary-blue);
}

/* Tablets */

@media screen and (max-width: 991px) {

    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Mobile Landscape */

@media screen and (max-width: 767px) {
    h1 {
        font-size: 26px;
        line-height: 1.2;
    }

    .section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .form-block {
        padding: 3rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        margin: 2rem 0 1rem;
    }
}

/* Mobile */

@media screen and (max-width: 479px) {
    h1 {
        font-size: 24px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .form-block {
        padding: 2rem;
    }
}