/* ── formletter-v1: карточка «Письмо руководителю» ── */

/* Карточка занимает всю высоту родителя (flex-колонки contactnew-v1) */
.formletter-v1 {
    height: 100%;
    border-radius: 20px;
    padding: 12px 45px 25px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* Фон — изображение из topcons; fallback-градиент если картинка не загрузилась */
    background-color: #8DA175;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── Заголовок ── */
.formletter-v1__heading {
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 700;
    font-size: 25px;
    line-height: 115%;
    letter-spacing: -0.005em;
    color: #fff;
    text-align: center;
    margin: 20px 0 15px;
}

/* ── Форма ── */
.formletter-v1__form {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 !important;
}

.formletter-v1__fields {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/* ── Обёртка поля ── */
.formletter-v1__field {
    position: relative;
}

/* ── Инпуты ── */
.formletter-v1__input {
    display: block;
    width: 100%;
    height: 60px;
    background: #fff;
    border: none;
    border-radius: 100px;
    padding: 0 25px;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(28, 28, 28, 0.85);
    box-sizing: border-box;
    outline: none;
}

.formletter-v1__input::placeholder {
    color: rgba(28, 28, 28, 0.4);
}

.formletter-v1__input:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

/* ── Текстовое поле ── */
.formletter-v1__textarea {
    display: block;
    width: 100%;
    height: 80px;
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 18px 25px;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(28, 28, 28, 0.85);
    box-sizing: border-box;
    resize: none;
    outline: none;
}

.formletter-v1__textarea::placeholder {
    color: rgba(28, 28, 28, 0.4);
}

/* ── Поле телефона с флагом ── */
.formletter-v1__field--phone .formletter-v1__input {
    padding-left: 57px; /* 25px gap + 25px flag + 7px gap */
}

.formletter-v1__flag {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.2));
    display: block;
}

/* ── Кнопка (spec 0,2,0 — бьёт .md-standart-form .form-btn из responsive.css) ── */
.formletter-v1 .formletter-v1__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    background: #FEAB31;
    border: none;
    border-radius: 100px;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    cursor: pointer;
    margin-top: 0;
    transition: opacity 0.3s;
}

.formletter-v1 .formletter-v1__btn:hover {
    opacity: 0.9;
}

/* ── Согласие ── */
.formletter-v1__consent {
    display: block;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-size: 10px !important;
    line-height: 135% !important;
    letter-spacing: -0.005em;
    color: #fff !important;
    margin-top: 5px;
}

.formletter-v1__consent a {
    color: #fff !important;
    text-decoration: underline;
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
    .formletter-v1 {
        border-radius: 5vw;
        padding: 5vw;
        height: auto;
    }

    .formletter-v1__heading {
        font-size: 20px;
        margin: 5vw 0 3.75vw;
    }

    .formletter-v1__fields {
        gap: 2.5vw;
    }

    .formletter-v1__input {
        height: 15vw;
        padding: 0 6.25vw;
        font-size: 14px;
    }

    .formletter-v1__textarea {
        height: 17.5vw;
        padding: 3.5vw 6.25vw;
        border-radius: 5vw;
        font-size: 14px;
    }

    .formletter-v1__field--phone .formletter-v1__input {
        padding-left: 14.25vw;
    }

    .formletter-v1__flag {
        left: 6.25vw;
    }

    .formletter-v1 .formletter-v1__btn {
        height: 15vw;
        font-size: 14px;
    }

    .formletter-v1__consent {
        margin-top: 1.25vw;
    }
}
