/* 
   Файл стилей для страницы вакансий
   Подключается отдельно в vacancies.html
   Дополняет основной style.css
*/

/* Контейнер страницы вакансий */
.vacancies-container {
    max-width: 1100px;
    margin: -1500px auto 100px;
    padding: 0 20px;
}

/* Заголовок страницы вакансий */
.vacancies-title {
    color: #2c3e50;
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin: 0 auto 40px;
    line-height: 1.3;
    padding: 0 20px;
    position: relative;
    padding-bottom: 40px;
}

/* Горизонтальная полоска под заголовком */
.vacancies-title:after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg,
            #0a9e3c 0%,
            #00ff88 25%,
            #0a9e3c 50%,
            #00ff88 75%,
            #0a9e3c 100%);
    margin: 30px auto 0;
    border-radius: 3px;
    animation: wave 3s ease-in-out infinite;
    background-size: 200% 100%;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(10, 158, 60, 0.3);
}

.vacancies-title:after:hover {
    transform: scaleX(1.2);
}

/* Подзаголовок вакансий */
.vacancies-subtitle {
    text-align: center;
    color: #5a6c7d;
    margin-bottom: 60px;
    font-size: 1.3em;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(10, 158, 60, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.08);
    position: relative;
}

.vacancies-subtitle:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0a9e3c, #3498db);
    border-radius: 0 2px 2px 0;
}

/* Сетка вакансий */
.vacancies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

/* Карточка вакансии */
.vacancy-card {
    background: white;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vacancy-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50, #3498db);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
    border-color: #3498db;
}

.vacancy-card:hover:before {
    opacity: 1;
}

/* Заголовок вакансии */
.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.vacancy-title {
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.vacancy-badge {
    background: linear-gradient(135deg, #0a9e3c, #00ff88);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
}

/* Мета-информация вакансии */
.vacancy-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f4f8;
}

.vacancy-salary {
    font-size: 1.3em;
    font-weight: 700;
    color: #0a9e3c;
    display: flex;
    align-items: center;
}

.vacancy-salary:before {
    content: '💰';
    margin-right: 8px;
}

.vacancy-experience {
    font-size: 1.1em;
    color: #5a6c7d;
    display: flex;
    align-items: center;
}

.vacancy-experience:before {
    content: '⏱️';
    margin-right: 8px;
}

/* Описание вакансии */
.vacancy-description h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin: 25px 0 15px;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.vacancy-description h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 50%;
}

.vacancy-description ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.vacancy-description li {
    color: #5a6c7d;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.vacancy-description li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Кнопка отклика */
.vacancy-apply-btn {
    background: linear-gradient(135deg, #3498db, #0a9e3c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vacancy-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9, #088f35);
}

/* Секция преимуществ работы */
.benefits-section {
    background: white;
    border-radius: 10px;
    padding: 50px;
    margin: 80px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
    position: relative;
}

.benefits-title {
    color: #2c3e50;
    font-size: 2em;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.benefits-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #0a9e3c);
    border-radius: 1.5px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.benefit-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.benefit-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.benefit-card h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    color: #5a6c7d;
    line-height: 1.6;
}

/* Процесс отбора */
.selection-process {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 10px;
    padding: 50px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    color: white;
}

.selection-process:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #0a9e3c);
}

.process-title {
    color: white;
    font-size: 2em;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.process-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #0a9e3c);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #0a9e3c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.process-step h3 {
    color: white;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

.process-step p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95em;
}

/* СТИЛИ ТОЛЬКО ДЛЯ ВСПЛЫВАЮЩЕГО ОКНА ФОРМЫ */

/* ФОРМА ОТКЛИКА НА ВАКАНСИЮ - УЛУЧШЕННАЯ ВЕРСИЯ */
/* СТИЛИ ТОЛЬКО ДЛЯ ВСПЛЫВАЮЩЕГО ОКНА ФОРМЫ */

/* ФОРМА ОТКЛИКА НА ВАКАНСИЮ - ПРАВИЛЬНАЯ ВЕРСИЯ */
/* СТИЛИ ДЛЯ ВСПЛЫВАЮЩЕГО ОКНА ФОРМЫ ОТКЛИКА */
/* СТИЛИ ДЛЯ ВСПЛЫВАЮЩЕГО ОКНА ФОРМЫ */
/* ВСПЛЫВАЮЩЕЕ ОКНО ФОРМЫ - МОДУЛЬНАЯ СТРУКТУРА */
/* ВСПЛЫВАЮЩЕЕ ОКНО ФОРМЫ - НОВЫЕ СТИЛИ */
/* ВСПЛЫВАЮЩЕЕ ОКНО ФОРМЫ - ДВУХКОЛОНОЧНАЯ СТРУКТУРА */
/* ВСПЛЫВАЮЩЕЕ ОКНО ФОРМЫ - ПРАВИЛЬНАЯ ВЕРСИЯ */
/* ВСПЛЫВАЮЩЕЕ ОКНО ФОРМЫ - ПРАВИЛЬНАЯ ВЕРСИЯ */
/* ВСПЛЫВАЮЩЕЕ ОКНО ФОРМЫ - ФИНАЛЬНАЯ ВЕРСИЯ */
/* ВСПЛЫВАЮЩЕЕ ОКНО ФОРМЫ - БАЗОВЫЕ ПАРАМЕТРЫ */

/* ОВЕРЛЕЙ (ФОН) */
/* ОВЕРЛЕЙ (ФОН) */
.vacancy-form-overlay {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* КОНТЕЙНЕР ФОРМЫ */
.vacancy-form-container {
    background: white;
    border-radius: 12px;
    width: 700px;     /* ФИКСИРОВАННАЯ ШИРИНА */
    height: 900px;    /* ФИКСИРОВАННАЯ ВЫСОТА */
    overflow: hidden; /* НИЧЕГО НЕ МЕНЯЕТСЯ */
    position: relative;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.3);
}

/* ЗАГОЛОВОК */
#formTitle {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    padding: 30px 30px 20px;
    margin: 0px;
    border-bottom: 1px solid #eee;
}

/* КНОПКА ЗАКРЫТИЯ */
.close-form-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 28px;
    color: #7f8c8d;
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

/* ОБЛАСТЬ ФОРМЫ */
.vacancy-form {
    padding: 25px 30px;
}

/* ГРУППА ПОЛЯ */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    min-height: 40px;
}

/* МЕТКА (ЛЕВАЯ КОЛОНКА) - ПРИВЯЗАНА К ЛЕВОМУ КРАЮ */
.form-group label {
    width: 220px;                   /* Фиксированная ширина метки */
    text-align: left;               /* Текст выровнен по левому краю */
    font-weight: 500;
    color: #2c3e50;
    font-size: 15px;
    padding-right: 20px;            /* Отступ между меткой и полем */
    box-sizing: border-box;
    flex-shrink: 0;
    line-height: 1.4;
}

/* ОБЯЗАТЕЛЬНЫЕ ПОЛЯ */
.form-group label[for="fullName"]::after,
.form-group label[for="phone"]::after {
    content: " *";
    color: #ff4444;
}

/* ========================================= */
/* ПРАВАЯ КОЛОНКА - КАЖДАЯ ЯЧЕЙКА ОТДЕЛЬНО */
/* ========================================= */

/* ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ ПОЛЕЙ ВВОДА */
.vacancy-form input[type="text"],
.vacancy-form input[type="email"],
.vacancy-form input[type="tel"],
.vacancy-form input[type="url"],
.vacancy-form textarea,
.vacancy-form input[type="file"] {
    box-sizing: border-box;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

/* ЯЧЕЙКА 1: Имя */
#fullName {
    width: 300px;       /* Ширина ячейки */
    height: 40px;       /* Высота ячейки */
    padding: 12px;      /* Внутренние отступы */
    position: absolute; /* Абсолютное позиционирование */
    left: 275px;        /* Отступ слева: 30px(padding формы) + 220px(ширина метки) + 20px(отступ метки) + 5px(корректировка) */
    top: 112px;         /* Отступ сверху: 30px(заголовок) + 20px(нижний padding заголовка) + 25px(padding формы сверху) + 37px(позиционирование) */
}

/* ЯЧЕЙКА 2: Телефон */
#phone {
    width: 300px;
    height: 40px;
    padding: 12px;
    position: absolute;
    left: 275px;        /* Такая же левая позиция, как у Имени */
    top: 172px;         /* 112px(верх Имени) + 40px(высота Имени) + 20px(отступ между строками) */
}

/* ЯЧЕЙКА 3: Email */
#email {
    width: 300px;
    height: 40px;
    padding: 12px;
    position: absolute;
    left: 275px;
    top: 232px;         /* 172px(верх Телефона) + 40px + 20px */
}

/* ЯЧЕЙКА 4: Портфолио */
#portfolio {
    width: 300px;
    height: 40px;
    padding: 12px;
    position: absolute;
    left: 275px;
    top: 292px;         /* 232px(верх Email) + 40px + 20px */
}

/* ЯЧЕЙКА 5: Сопроводительное письмо (textarea) */
#coverLetter {
    width: 300px;
    min-height: 120px;
    padding: 12px;
    position: absolute;
    left: 275px;
    top: 352px;         /* 292px(верх Портфолио) + 40px + 20px */
    resize: vertical;
    line-height: 1.4;
}

/* Для textarea меняем выравнивание метки */
.form-group:has(textarea) {
    align-items: flex-start;
}

.form-group:has(textarea) label {
    height: 120px;
    padding-top: 12px;
}

/* ЯЧЕЙКА 6: Файл (Резюме) */
#resume {
    width: 300px;
    height: 40px;
    padding: 12px 8px;
    position: absolute;
    left: 275px;
    top: 492px;         /* 352px(верх Письма) + 120px(высота Письма) + 20px */
    cursor: pointer;
}

/* ПОДПИСЬ К ФАЙЛОВОМУ ПОЛЮ */
.vacancy-form small {
    display: block;
    color: #7f8c8d;
    font-size: 12px;
    line-height: 1.3;
    position: absolute;
    left: 275px;
    top: 537px;         /* 492px(верх Файла) + 40px + 5px */
    width: 300px;
}

/* ЧЕКБОКС */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    position: absolute;
    left: 275px;
    top: 577px;         /* 537px(верх Подписи) + 20px + 20px */
    width: 300px;
    box-sizing: border-box;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0px;
    flex-shrink: 0;
}

.checkbox-group label {
    width: auto;
    margin: 0px;
    padding: 0px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #5a6c7d;
    cursor: pointer;
    text-align: left;
}

/* КНОПКА ОТПРАВКИ */
.submit-application-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: absolute;
    left: 275px;
    top: 647px;         /* 577px(верх Чекбокса) + 40px(высота Чекбокса) + 30px */
    width: 300px;
    height: 48px;
    box-sizing: border-box;
    transition: background 0.2s;
}

.submit-application-btn:hover {
    background: #2980b9;
}

/* ФОКУС ДЛЯ ПОЛЕЙ */
.vacancy-form input:focus,
.vacancy-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0px 0px 0px 2px rgba(52, 152, 219, 0.1);
}

/* УДАЛЯЕМ НЕНУЖНЫЕ ОБЩИЕ СТИЛИ ДЛЯ ПОЛЕЙ ВВОДА */
/* Они нам больше не нужны, так как каждая ячейка стилизуется отдельно */

/* СКРОЛЛБАР ДЛЯ КОНТЕЙНЕРА ФОРМЫ */
.vacancy-form-container::-webkit-scrollbar {
    width: 8px;
}

.vacancy-form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.vacancy-form-container::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

/* ========================================= */
/* МЕДИАЗАПРОСЫ ДЛЯ АДАПТАЦИИ */
/* ========================================= */

/* Для экранов шириной до 800px */
@media screen and (max-width: 800px) {
    .vacancy-form-container {
        width: 600px;
    }
    
    .form-group label {
        width: 180px;
    }
    
    /* Сдвигаем все ячейки правой колонки */
    #fullName,
    #phone,
    #email,
    #portfolio,
    #coverLetter,
    #resume,
    .vacancy-form small,
    .checkbox-group,
    .submit-application-btn {
        left: 230px; /* 30px + 180px + 20px */
        width: 260px;
    }
    
    #fullName { top: 112px; }
    #phone { top: 172px; }
    #email { top: 232px; }
    #portfolio { top: 292px; }
    #coverLetter { top: 352px; }
    #resume { top: 492px; }
    .vacancy-form small { top: 537px; }
    .checkbox-group { top: 577px; }
    .submit-application-btn { top: 647px; }
}

/* Для экранов шириной до 650px */
@media screen and (max-width: 650px) {
    .vacancy-form-container {
        width: 500px;
    }
    
    .form-group label {
        width: 150px;
    }
    
    /* Сдвигаем все ячейки правой колонки */
    #fullName,
    #phone,
    #email,
    #portfolio,
    #coverLetter,
    #resume,
    .vacancy-form small,
    .checkbox-group,
    .submit-application-btn {
        left: 200px; /* 30px + 150px + 20px */
        width: 230px;
    }
    
    #fullName { top: 112px; }
    #phone { top: 172px; }
    #email { top: 232px; }
    #portfolio { top: 292px; }
    #coverLetter { top: 352px; }
    #resume { top: 492px; }
    .vacancy-form small { top: 537px; }
    .checkbox-group { top: 577px; }
    .submit-application-btn { top: 647px; }
}

/* Для экранов шириной до 550px - переходим на одну колонку */
@media screen and (max-width: 550px) {
    .vacancy-form-container {
        width: 400px;
    }
    
    /* Убираем абсолютное позиционирование */
    .form-group {
        flex-direction: column;
        align-items: flex-start;
        position: static;
        margin-bottom: 20px;
    }
    
    .form-group label {
        width: 100%;
        padding: 0 0 8px 0;
        text-align: left;
        position: static;
    }
    
    /* Все ячейки становятся относительными */
    #fullName,
    #phone,
    #email,
    #portfolio,
    #coverLetter,
    #resume,
    .vacancy-form small,
    .checkbox-group,
    .submit-application-btn {
        position: static;
        width: 100%;
        left: auto;
        top: auto;
        margin: 0;
    }
    
    .form-group:has(textarea) label {
        height: auto;
        padding-top: 0;
    }
    
    .checkbox-group {
        margin-top: 20px;
    }
    
    .submit-application-btn {
        margin-top: 20px;
    }
}

/* Для экранов шириной до 450px */
@media screen and (max-width: 450px) {
    .vacancy-form-container {
        width: 350px;
        max-height: 700px;
    }
    
    #formTitle {
        font-size: 20px;
        padding: 20px 20px 15px;
    }
    
    .vacancy-form {
        padding: 20px 25px;
    }
    
    .close-form-btn {
        top: 15px;
        right: 20px;
        font-size: 24px;
    }
}

/* Для экранов шириной до 380px */
@media screen and (max-width: 380px) {
    .vacancy-form-container {
        width: 320px;
        max-height: 650px;
    }
    
    .vacancy-form {
        padding: 15px 20px;
    }
}

/* Для экранов шириной до 340px */
@media screen and (max-width: 340px) {
    .vacancy-form-container {
        width: 300px;
    }
    
    .vacancy-form {
        padding: 10px 15px;
    }
    
    #formTitle {
        font-size: 18px;
        padding: 15px 15px 10px;
    }
}