@import url("./fonts.css");
@import url("./reset.css");
@import url("./variables.css");

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

body {
    max-width: var(--page-width);
    color: var(--clr-black-light);
    margin: auto;
    font-family: "Gotham", sans-serif;
    font-weight: 400;
}

.banner {
    line-height: 0;
}

.form-container {
    max-width: var(--container-width);
    margin: auto;
    padding: 35px 15px 20px;
}

.form-title {
    font-size: 22px;
    line-height: 26px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 44px;
    color: var(--clr-black);
}

.form-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 33px 51px;
    margin-bottom: 40px;
}

.form-group {
    max-width: 336px;
    width: 100%;
}

.form-input {
    width: 100%;
    height: 51px;
    background-color: var(--crl-grey-light);
    border-radius: var(--border-radius);
    border: none;
    padding: 0 20px;
    font-family: "Gotham", sans-serif;
}

.form-input::placeholder {
    font-weight: 500;
    color: var(--crl-grey);
}

.form-input.clear:focus::placeholder {
    color: transparent;
}

.form-label {
    cursor: pointer;
    position: relative;
}

.form-label span {
    font-weight: 500;
}

.input-label span {
    display: block;
    margin-bottom: 10px;
}

.form-row__gap {
    gap: 33px 75px;
}

.form-btn {
    display: block;
    margin: auto;
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
    padding: 13px 25px;
    color: var(--clr-white);
    border-radius: var(--border-radius);
    border: none;
    background: linear-gradient(99.53deg, #c6236d 26.65%, #5f246d 84.19%);
    cursor: pointer;
    transition: 0.3s opacity;
}

.form-btn:hover {
    opacity: 0.75;
}

.check {
    display: grid;
    grid-template-columns: 1em auto;
    gap: 14px;
}

.form-check__input {
    margin: 0;
    appearance: none;
    width: 19px;
    height: 19px;
    border-radius: 3px;
    background-color: var(--crl-grey-light);
}

.form-check__input::before {
    content: url("../images/check-icon.svg");
    width: inherit;
    height: inherit;
    display: none;
    justify-content: center;
    align-items: center;
}

.form-check__input:checked::before {
    display: flex;
}

.link {
    color: var(--clr-blue);
}

.error {
    border: 1px solid var(--clr-red);
}

.error::placeholder {
    color: var(--clr-red);
}

.error-message {
    display: block;
    font-size: 12px;
    line-height: 14px;
    margin-top: 6px;
    color: var(--clr-red);
    font-weight: 500;
    margin-bottom: -20px;
}

.form-check .error-message {
    margin-left: 32px;
}

.success-message {
    text-align: center;
    font-size: 30px;
    line-height: 36px;
    font-weight: 500;
    color: var(--clr-black);
    max-width: 685px;
    margin: 100px auto;
}

.color-red {
    color: var(--clr-red);
}

@media screen and (max-width: 414px) {
    .success-message {
        font-size: 24px;
        line-height: 28px;
        margin: 10px auto;
    }
}
