@import "../parts/cz-error-message.css";
@import "../parts/cz-success-message.css";

input {
    font-family: Roboto, sans-serif!important;
}

.cz-contacts__content {
    margin: 30px 0;
}

.cz-contacts__form-field--incorrect {
    border-right: 10px solid var(--secondary-fc);
}

.cz-contacts__popup-underlay--active {
    opacity: .5 !important;
    z-index: 99 !important;
}

.cz-contacts__popup-underlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: -1;
    opacity: 0;
    transition: .3s ease-in-out;
    overflow: hidden;
}

.cz-form__section {
    margin: 30px 0;
}

.cz-contacts__form-wrapper {
    width: 100%;
    padding: 35px;
    background: center / cover no-repeat url("../../img/contacts-feedback.jpg");

    border-radius: 16px;
}

.cz-contacts__form-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 50px;
    grid-template-areas:
        "item1 item1 item2 item2"
        "item3 item4 item5 item5"
        "item6 item6 item6 item6"
        "item7 item7 item7 item7"
        "item8 item8 item8 item8";
}

.cz-contacts__form-field:nth-child(1) {
    grid-area: item1;
}

.cz-contacts__form-field:nth-child(2) {
    grid-area: item2;
}

.cz-contacts__form-field:nth-child(3) {
    grid-area: item3;
}

.cz-contacts__form-field:nth-child(4) {
    grid-area: item4;
}

.cz-contacts__form-field:nth-child(5) {
    grid-area: item5;
}

.cz-contacts__form-field:nth-child(6) {
    grid-area: item6;
    grid-column: 1 / 3;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
}

.cc1 {
    grid-area: item7;
}

.cc2 {
    grid-area: item8;
}

.cz-contacts__form-field {
    border-radius: 4px;
    border: 0;
    padding: 19px 15px;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: var(--secondary-txt-fc);
    background: rgba(255, 255, 255, 0.5) !important;
    transition: border-right-width .3s ease-in-out;
}

.cz-contacts__form-field--incorrect {
    border-right: 10px solid var(--secondary-fc);
}

.cz-contacts__form-btn {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 64px;
    border-radius: 4px;
    color: var(--primary-fc);
    background: var(--secondary-fc);
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.cz-contacts__form-field-sign {
    display: block;
    z-index: 10;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: var(--secondary-txt-fc);

    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.cz-contacts__form-field-container {
    display: flex;
    column-gap: 20px;
}

.cz-contacts__form-label {
    display: block;
    /*max-width: 448px;*/
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    color: var(--secondary-txt-fc);
}

.cz-contacts__form input[type='checkbox'] {
    align-self: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: 0.5s ease;
    border: none;
    outline: none;
}

.cz-contacts__form input[type='checkbox']:active {
    background-color: var(--secondary-fc);
}

.cz-contacts__form-group {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-content: center;
    justify-content: center;
    font-size: 2rem;
    padding: 0.1rem;
    border: 0.25rem solid green;
    border-radius: 0.5rem;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkmark {
    min-width: 20px;
    min-height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: var(--secondary-fc);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.custom-number-input-container {
    position: relative;
}

.signed-input {
    width: 100%;
}

.conditions-link {
    text-decoration: underline;
}

@media only screen and (max-width: 900px) {
    .cz-contacts__form-wrapper {
        padding: 24px;
    }

    .cz-contacts__form-body {
        display: flex;
        flex-direction: column;
        row-gap: 10px;
        margin-bottom: 25px;
    }

    .cz-contacts__form-group img {
        display: none;
    }

    .cz-contacts__form-btn {
        width: 100%;
    }

    .cz-success-message {
        width: 95%!important;
    }

    .cz-error-message {
        width: 95%!important;
    }

    .cz-contacts__form-field:nth-child(6) {
        grid-area: item6;
        grid-column: unset!important;
    }
}





