.career-popup {
    max-width: 400px;
    margin: 0 auto;
}
.career-popup h2, .demand-popup h2 {
    text-align: center;
    display: block;
    font-size: 1.5em;
    font-family: 'Roboto', 'Arial Narrow', Arial, sans-serif;
}
.send-request-form {
    margin-bottom: 15px;
    background: white;
    padding: 0 1.5rem 1rem;
}
.send-request-form .manager {
    padding: 1.25em 0 1.1875rem 0.25rem;
    margin: 0;
}
.clearfix:before, .clearfix:after {
    content: " ";
    display: table;
}
.send-request-form .manager .info {
    margin-left: 5.3125rem;
}
.send-request-form .full-name {
    font-size: 0.9em;
    margin-bottom: 0;
    margin-top: 0.4375rem;
    text-transform: capitalize;
}
.send-request-form .occupation {
    font-size: 0.62em;
    line-height: 1.2em;
}
.send-request-form .phone {
    color: #c00031;
    margin-top: 0.25rem;
}
.clearfix:before, .clearfix:after {
    content: " ";
    display: table;
}
.clearfix:after {
    clear: both;
}
.send-request-form input, .send-request-form textarea {
    border-color: #d7dadb;
    border-radius: 4px;
    box-shadow: none;
}
.raspberry.button {
    border-left: 1px solid #E73280;
    border-right: 1px solid #E73280;
    border-top: 1px solid #E73280;
    border-bottom: 2px solid #9e1039;
    line-height: 1.5em;
}
.button.medium {
    font-size: 0.80rem;
    padding: 0.6rem 1.75rem;
    border-radius: 4px;
    margin: 0;
    display: inline-block;
    font-family: 'museo_sans_cyrl700', 'Arial Narrow', Arial, sans-serif;
}
button.raspberry, .button.raspberry {
    background: #E73280;
    color: white;
}
.full-width {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: initial;
}
.modal input[type="text"], .modal input[type="password"], .modal input[type="date"], .modal input[type="datetime"],.modal input[type="datetime-local"],.modal input[type="month"],.modal input[type="week"],.modal input[type="email"],.modal input[type="number"],.modal input[type="search"],.modal input[type="tel"],.modal input[type="time"],.modal input[type="url"],.modal input[type="color"],.modal textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
    background-color: #fff;
    border-style: solid;
    border-width: 1px;
    border-color: #ccc;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.75);
    display: block;
    font-family: inherit;
    font-size: 0.875rem;
    height: 2.3125rem;
    margin: 0 0 1rem 0;
    padding: 0.5rem;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: border-color 0.15s linear, background 0.15s linear;
    -moz-transition: border-color 0.15s linear,background 0.15s linear;
    -ms-transition: border-color 0.15s linear,background 0.15s linear;
    -o-transition: border-color 0.15s linear,background 0.15s linear;
    transition: border-color 0.15s linear, background 0.15s linear;
}
.form-control-file {
    display: block;
    font-family: inherit;
    font-size: 0.875rem;
    height: 2.3125rem;
    margin: 0 0 1rem 0;
    padding: 0.5rem;
    width: 100%;
}
button.mfp-close {
    font-family: "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 300;
    letter-spacing: -0.02em;
    /* padding: 10px 20px; */
    position: fixed;
    right: 5px;
    top: 10px;
    background: none repeat scroll 0 0 transparent;
    border-radius: 0;
    border-width: 0;
    box-shadow: none;
    color: rgba(0, 0, 0, 0.3);
    height: auto;
    line-height: inherit;
    vertical-align: baseline;
    white-space: normal;
    box-sizing: border-box;
    cursor: pointer;
    display: none;
    outline: 0 none;
    text-align: center;
    text-decoration: none;
    text-rendering: optimizelegibility;
    transition: background-color 100ms ease 0s, border-color 100ms ease 0s, color 100ms ease 0s;
    text-transform: none;
    overflow: visible;
    margin: 0;
    z-index: 111111;
}
.license-agreement.text-center {
    color: #999999;
    font-size: 9px;
    line-height: 100%;
    margin: 1em 0;
    text-align: center !important;
}
/* Затемняющий фон (оверлей) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9 !important; /* Темный полупрозрачный фон */
    z-index: 1000 !important; /* Чуть ниже модального окна */
    backdrop-filter: blur(3px); /* Эффект размытия фона (опционально) */
}

/* Модальное окно с формой */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999; /* Максимальный z-index, чтобы быть поверх всего */
    background: #ffffff; /* Чисто белый фон */
    /* Отключаем взаимодействие с фоном */
    pointer-events: auto;
}

/* Контейнер формы */
.career-popup {
    padding: 35px 30px;
    background: #ffffff;
    position: relative;
    z-index: 10000;
}

/* Заголовок */
.modal h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #333;
    text-align: center;
    height: 20px;
}

/* Поля формы */
.form-field {
    margin-bottom: 20px;
    position: relative;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #e31e24;
}

.form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.form-field input[type="file"] {
    padding: 10px 0;
    border: none;
    background: transparent;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

/* Кнопка отправки */
button.form_submit {
    width: 100%;
    padding: 14px 20px;
    background: #e31e24;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: none;
}

button.form_submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Лицензионное соглашение */
.license-agreement {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
    text-align: center;
    line-height: 1.4;
}

/* Сообщение об успехе */
.success-view {
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.success-message-block {
    padding: 20px 0;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #4CAF50;
    color: white;
    font-size: 40px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.success-text {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

/* Кнопка закрытия */
.close-modal-btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 12px 30px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: none;
    display: block;
}

/* Крестик закрытия (если есть) */
.mfp-close,
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

/* Блокировка прокрутки страницы */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 95vh;
    }

    .career-popup {
        padding: 25px 20px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        line-height: 60px;
    }
}

/* Стили для очень маленьких экранов */
@media (max-width: 480px) {
    .modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }

    .career-popup {
        min-height: 100vh;
        border-radius: 0;
    }
}

/* Стили для intlTelInput внутри модалки */
.intl-tel-input {
    width: 100%;
}

.intl-tel-input .selected-flag {
    z-index: 1;
    background: #fff;
    border-radius: 8px 0 0 8px;
}

.intl-tel-input .country-list {
    z-index: 10002; /* Выше модального окна */
    position: fixed; /* Чтобы список стран не выходил за пределы модалки */
    max-width: 400px;
}

/* Сообщения об ошибках */
.error-message,
.alert-danger {
    color: #e31e24;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Убираем взаимодействие с фоном при открытой модалке */
.modal-open .wrapper,
.modal-open .header,
.modal-open .footer,
.modal-open .content {
    pointer-events: none;
    user-select: none;
}

.modal-open .modal,
.modal-open .modal * {
    pointer-events: auto; /* Форма и её элементы должны быть кликабельны */
}
.error-messages-block {
    margin-bottom: 10px;
}
.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: center;
}
.checkbox-input {
    width: 20% !important;
}