/* =========================================================
   RESUME MODAL
   ========================================================= */

/* Кнопка "Откликнуться" стала <button>, сбрасываем нативные стили —
   остальной вид (цвет/фон/радиус/шрифт) уже задан в vacancies.css */
button.vacancy-card__button {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.resume-modal {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.resume-modal.is-open {
    display: flex;
}

.resume-modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(17, 17, 34, .55);
}

.resume-modal__window {
    position: relative;

    width: 100%;
    max-width: 560px;
    max-height: 90vh;

    overflow-y: auto;

    padding: 30px;

    border-radius: 24px;

    background: #fff;

    box-sizing: border-box;

    animation: resumeModalIn .25s ease;
}

@keyframes resumeModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.resume-modal__close {
    position: absolute;

    right: 20px;
    top: 20px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    color: #111122;
    background: #f8f8fa;

    cursor: pointer;
}

.resume-modal__title {
    margin: 0 0 8px;

    color: #111122;

    font-family: 'Inter', sans-serif;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
}

.resume-modal__subtitle {
    margin: 0 0 15px;

    color: rgba(17, 17, 34, .65);

    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}


/* FORM */

.resume-form {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.resume-form__honeypot {
    position: absolute;
    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}

.resume-form__field {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.resume-form__field label {
    color: #111122;

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.resume-form__field input[type="text"],
.resume-form__field input[type="tel"],
.resume-form__field input[type="email"],
.resume-form__field textarea {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid rgba(17, 17, 34, .12);
    border-radius: 12px;

    color: #111122;
    background: #f8f8fa;

    font-family: 'Inter', sans-serif;
    font-size: 16px;

    box-sizing: border-box;

    transition: border-color .15s ease;
}

.resume-form__field.has-error input[type="text"],
.resume-form__field.has-error input[type="tel"],
.resume-form__field.has-error input[type="email"],
.resume-form__field.has-error textarea {
    border-color: #d64545;
    background: rgba(214, 69, 69, .04);
}

.resume-form__field.has-error label {
    color: #d64545;
}

.resume-form__field input:focus,
.resume-form__field textarea:focus {
    outline: none;
    border-color: #23716d;
}

.resume-form__field textarea {
    resize: vertical;
    min-height: 80px;
}

.resume-form__file-label {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 16px;

    border: 1px dashed rgba(35, 113, 109, .4);
    border-radius: 12px;

    color: #23716d;
    background: rgba(35, 113, 109, .05);

    font-family: 'Inter', sans-serif;
    font-size: 14px;

    cursor: pointer;
}

.resume-form__field input[type="file"] {
    display: none;
}

.resume-form__file-name {
    color: rgba(17, 17, 34, .65);

    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.resume-form__submit {
    width: 100%;
    height: 56px;

    margin-top: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 12px;

    color: #fff;
    background: linear-gradient(108.39deg, #23716d 6.723%, #1b5349 91.096%);

    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;

    cursor: pointer;

    transition: opacity .15s ease;
}

.resume-form__submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.resume-form__status {
    margin: 0;

    min-height: 20px;

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-align: center;
}

.resume-form__status.is-success {
    color: #23716d;
}

.resume-form__status.is-error {
    color: #d64545;
}

.resume-form__status {
    display: none;
}

.resume-form__status:not(:empty) {
    display: block;
}


/* MOBILE */

@media (max-width: 767px) {

    .resume-modal__window {
        padding: 24px;
        border-radius: 16px;
    }

    .resume-modal__title {
        font-size: 22px;
    }

    .resume-modal__subtitle {
        font-size: 14px;
    }

    .resume-form__submit {
        height: 48px;
        font-size: 16px;
    }
}