.form-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url("../images/bg-paper.webp") center / contain no-repeat;
    width: clamp(320px, 90vw, 450px);
    aspect-ratio: 478 / 670;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.form-popup[hidden] {
    display: none;
}

.form-popup__close {
    background: none;
    width: 25px;
    height: 25px;
    margin-left: auto;
}



.form-popup__error {
    color: #FA2A2A;
    font-family: "TDAText Condensed",sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.form-popup__content {
    display: flex;
    width: 80%;
    max-width: 320px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.form-popup__label {
    color: #000000;
    font-family: "TDAText Condensed", sans-serif;
    font-size: 24px;
}

.form-popup__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-popup__textarea {
    height: 66px;
}

.form-popup__input {
    background: none;
    border: 1px solid #000000;
    color: #000;
    font-family: "TDAText Condensed", sans-serif;
    font-size: 18px;
    outline: none;
    padding-left: 3px;
}

.form-popup__checkbox-item span{
    color: #000;
    font-family: "TDAText Condensed", sans-serif;
    font-size: 14px;
}

.form-popup__checkbox {
    width: 14px;
    height: 14px;
    outline: none;
    border: 1px solid #000000;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    cursor: pointer;position: relative;
}

/* Внутренняя "заливка" */
.form-popup__checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;     /* ← отступ от рамки */
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: #000; /* ← цвет заливки */
    border-radius: 2px;     /* если хочешь скруглить */
}
.form-popup__checkbox-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.form-popup__checkbox-item {
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.form-popup__textarea {
    background: none;
    border: 1px solid #000000;
}

.form-popup__submit {
    padding: 3.938px 5.063px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:  #171717;
    color:  #EDEDD1;
    font-family: "TDAText Condensed", sans-serif;
    font-size: 28px;
    margin-top: 10px;
}
.form-popup__input--error {
    background: rgba(239, 33, 33, 0.50);
}
.indposhiv__bg {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    min-width: 1219px;
    object-fit: cover;
    z-index: -1;
}

.indposhiv {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.indposhiv__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.indposhiv__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.indposhiv__content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 40px;
}

.indposhiv__char {
    height: auto;
    max-height: 80vh;
}

.indposhiv__text {
    max-width: 320px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    color: #fff;
    font-family: "TDAText Condensed", sans-serif;
    font-size: 18px;
}

.indposhiv__btn {
    background: #EDEDD1;
    color: #000;
    border: none;
    font-size: 20px;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
}

#success {
    display: none;
}

@media (max-width: 480px) {
    .form-popup {
        aspect-ratio: auto;
        background-size: cover;
        padding: 24px 16px;
    }

    .form-popup__label {
        font-size: 20px;
    }

    .form-popup__submit {
        font-size: 20px;
    }
}


@media (max-width: 768px) {
    .indposhiv__content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        height: 100vh;
    }

    .indposhiv__char {
        width: 340px;
        height: auto;
    }

    .indposhiv__text {
        max-width: 90%;
        font-size: 16px;
        background: rgba(0, 0, 0, 0.6);
        padding: 12px;
        position: absolute;
        bottom: 100px;
    }
}

@media (width >=768px) {
    .form-popup__submit {
        width: 100%;
    }
}