.contactform-container {
    height: 100%;
    margin-bottom: 140px;
}

.form-text-container {
    user-select: none;
}

.ft1 {
    font-size: calc(20px + 20 * ((100vw - 320px) / (1920 - 320)));
    font-weight: 500;
    line-height: 120%;
    margin-bottom: 80px;
}
    .ft1 .asterisk {
        font-weight: 700;
    }

.ft2 {
    font-size: calc(16px + 4 * ((100vw - 320px) / (1920 - 320)));
    font-weight: 300;
    color: #D9D9D9;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    height: 65.6px;
    background-color: #212121;
    font-size: calc(16px + 8 * ((100vw - 320px) / (1920 - 320)));
    font-weight: 400;
    border: 0;
    border-radius: 7px;
    padding-left: 32px;
    padding-right: 32px;
    color: #ffffff;
    overflow-x: auto;
}

input::placeholder {
    color: #ffffff;
}

.select {
    position: relative;
}

.selectWrapper {
    position: relative;
}

.selectCustom {
    position: relative;
    width: 100%;
    height: 65.6px;
}

.selectCustom-trigger {
    font-size: calc(16px + 8 * ((100vw - 320px) / (1920 - 320)));
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #212121;
    padding: 0.7rem 32px;
    line-height: 2.5rem;
    border: 2px solid #212121;
    border-radius: 7px;
    cursor: pointer;
    color: #B7B7B7;
    transition: border-color 0.3s ease;
}

.selectCustom-trigger::after {
    content: ">";
    font-size: calc(20px + 12 * ((100vw - 320px) / (1920 - 320)));
    transform: rotate(90deg);
    position: absolute;
    top: 0;
    line-height: 4rem;
    right: 1rem;
    color: #B7B7B7;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.selectCustom-trigger:hover {
    border: 2px solid #5D73FF;
}

.selectCustom.isActive .selectCustom-trigger {
    border: 2px solid #5D73FF;
}

.selectCustom.isActive .selectCustom-trigger::after {
    transform: rotate(-90deg);
}

.selectCustom-options {
    position: absolute;
    left: 0;
    width: 100%;
    border-radius: 7px;
    background-color: #212121;
    z-index: 1;
    display: none;
    font-size: calc(16px + 8 * ((100vw - 320px) / (1920 - 320)));
    font-weight: 400;
}

.selectCustom.isActive .selectCustom-options {
    display: block;
}

.selectCustom-option {
    position: relative;
    padding: 0.8rem 32px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.selectCustom-option:hover {
    background-color: #5D73FF4F;
}

.checkbox-btn {
  margin-top: 5px;
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contactform-checkbox {
    appearance: none;
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 18px;
    background: #2B2B2B;
    border: 4px solid #212121;
    border-radius: 15px;
    transition: 300ms ease-out;
    flex-shrink: 0;
}

.contactform-checkbox::after {
    background: #FF6905;
}

.contactform-checkbox:checked {
  width: 24px;
  height: 24px;
  transition: 300ms ease-out;
  background: #FF6905;
}

.form-checkbox-label {
    font-size: calc(16px + 4 * ((100vw - 320px) / (1920 - 320)));
    font-weight: 300;
}

.privacy-checkbox-link {
    color: #FF6905;
}

.privacy-checkbox-link:hover {
    color: #FF6905;
}

.submit-btn {
    width: 100%;
    height: 65.6px;
    border-radius: 32px;
    background-color: #FF6905;
    font-size: calc(24px + 8 * ((100vw - 320px) / (1920 - 320)));
    font-weight: 600;
    color: #FFFFFF;
    transition: 300ms ease-out;
}

.submit-btn:hover {
    box-shadow: 0px 0px 20px rgba(255, 105, 5, 0.6);
}

.selectedTrigger {
    color: #ffffff;
}

/* Стили для селектора */
.selectCustom.isActive .selectCustom-options {
    display: block;
}

.selectCustom-option.isActive {
    background-color: #5D73FF4F;
}

.selectCustom-trigger.has-value {
    color: #ffffff !important;
}

/* Стили для ошибок */
.selectCustom-trigger.error {
    border: 2px solid #dc3545 !important;
}

.invalid-feedback.d-block {
    display: block !important;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    animation: slideIn 0.3s ease forwards;
}

.checkbox-btn {
    flex-direction: column;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Специальные стили для селектора */
select + .invalid-feedback.d-block,
.form-select + .invalid-feedback.d-block {
    margin-bottom: 1rem; /* Больший отступ для селектора */
}

/* Чтобы гарантировать отступы для всех полей */
.mb-3 .invalid-feedback.d-block {
    margin-bottom: 0.5rem;
}

.select-row {
    height: calc(120px - 20 * ((100vw - 320px) / (1920 - 320)));
}

@media (max-width: 576px) {
    .first-row {
        flex-direction: column;
    }

    .form-text-container {
        width: 100%;
    }

    .form-container {
        width: 100%;

    }

    .ft1 {
        margin-bottom: 20px;
    }

    .ft1 br, .ft2 br {
        display: none;
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        width: 100%;
        height: 50px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .selectCustom-trigger {
        padding: 0.2rem 16px;
        height: 50px;
    }

    .selectCustom-trigger::after {
        line-height: 3rem;
    }

    .selectCustom-option {
        padding: 0.5rem 16px;;
    }

    .select {
        margin-bottom: 0.5rem !important;
    }

    .submit-btn {
        height: 54px;
    }

    .contactform-checkbox {
        width: 20px;
        height: 20px;
    }

    .contactform-checkbox:checked {
        width: 20px;
        height: 20px;
    }
}