@import url('../../../root/css/root.css');

/* FORM */
.form {
    position: relative;
    width: 696px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--background-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 38px 56px;
}

.form::before {
    content: '';
    position: absolute;
    left: -35px;
    top: -21px;
    z-index: -1;
    width: 110%;
    height: 110%;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    background: linear-gradient(to right, var(--background-color), var(--background-color)) padding-box, var(--gradient-color) border-box;
}

.form-title {
    text-align: center;
    margin: 0 0 8px 0;
}

.form-labels {
    display: flex;
    grid-template-columns: 1fr 1fr;
    row-gap: 63px;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 0 63px 0;
}

.form .form-label {
    width: 100%;
}

.form .form-input {
    width: 100%;
    color: var(--gray-color);
    border: none;
    outline: none;
    background: transparent;
    border-bottom: 3px solid var(--yellow-color);
    padding: 29px 0 29px 0;
    font-family: NoirPro-Light, sans-serif;
    font-size: 20px;
    font-weight: 400;
}

.form .form-input::placeholder {
    color: #b7b7b7;
}

@media all and (max-width: 1599px) {
    /* FORM */
    .form {
        width: clamp(39.125rem, -0.25rem + 43.75vw, 43.5rem);
        padding: clamp(2.125rem, -0.125rem + 2.5vw, 2.375rem) clamp(3.125rem, -0.25rem + 3.75vw, 3.5rem);
    }

    .form::before {
        left: -35px;
        top: -21px;
    }

    .form-title {
        margin: 0 0 clamp(0.438rem, -0.125rem + 0.625vw, 0.5rem) 0;
    }

    .form-labels {
        row-gap: clamp(3.563rem, 0.188rem + 3.75vw, 3.938rem);
        margin: 0 0 clamp(3.563rem, 0.188rem + 3.75vw, 3.938rem) 0;
    }

    .form .form-input {
        border-bottom: 3px solid var(--yellow-color);
        padding: clamp(1.625rem, -0.063rem + 1.875vw, 1.813rem) 0 clamp(1.625rem, -0.063rem + 1.875vw, 1.813rem) 0;
        font-size: clamp(1.125rem, 0rem + 1.25vw, 1.25rem);
    }
}

@media all and (max-width: 1439px) {
    /* FORM */
    .form {
        width: 837px;
        height: 517px;
        padding: 53px 80px;
    }

    .form::before {
        left: -42px;
        top: -24px;
    }

    .form-title {
        font-size: 32px;
    }

    .form .form-input {
        font-size: 24px;
    }

    .form button, .form .form-labels {
        z-index: 1;
    }
}

@media all and (max-width: 1100px) {
    .form {
        width: calc(var(--section-width) * 0.9);
    }
}

@media all and (max-width: 768px) {
    .form {
        width: 100%;
        height: auto;
        padding: clamp(1.438rem, -0.036rem + 7.366vw, 3.5rem) clamp(1.188rem, -0.018rem + 6.027vw, 2.875rem) clamp(1.063rem, -0.054rem + 5.58vw, 2.625rem) clamp(1.188rem, -0.018rem + 6.027vw, 2.875rem);
    }

    .form::before {
        display: none;
    }

    .form-title {
        font-size: clamp(0.813rem, -0.036rem + 4.241vw, 2rem);
        margin: 0 0 clamp(1.313rem, 0.018rem + 6.473vw, 3.125rem) 0;
    }

    .form-labels {
        row-gap: clamp(1.438rem, -0.08rem + 7.589vw, 3.563rem);
        margin: 0 0 clamp(1.438rem, -0.08rem + 7.589vw, 3.563rem) 0;
    }

    .form .form-input {
        background: #F8F8F8;
        border: none;
        border-radius: var(--border-radius);
        font-size: clamp(0.438rem, -0.054rem + 2.455vw, 1.125rem);
        padding: clamp(0.563rem, -0.018rem + 2.902vw, 1.375rem) clamp(0.688rem, 0.018rem + 3.348vw, 1.625rem) clamp(0.563rem, -0.018rem + 2.902vw, 1.375rem) clamp(0.688rem, 0.018rem + 3.348vw, 1.625rem);
    }
}