/* Общий сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Фоновая секция */
.hero-section {
    position: relative;
    height: 600px;
    background: url('../img/back_1im.jpeg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content .logo {
    height: 150px; /* или width: 200px — как вам удобнее */
    margin-bottom: 20px;
    object-fit: contain;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 6px; /* ← вот оно! */
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Форма */
.form-section {
    padding: 40px 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 450px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.submit-btn {
    width: 100%;
    background: #111;          /* чёрный */
    color: white;
    padding: 12px;
    border: none;
    border-radius: 26px;       /* закругление как у полей */
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
}

.submit-btn:hover,
.submit-btn:focus {
    background: #333;          /* темно-серый */
}

.submit-btn:active {
    background: #444;          /* чуть темнее при нажатии */
}

/* === ЧИСТЫЙ СТИЛЬ ДЛЯ ФОРМЫ === */
.form-field {
    margin-bottom: 24px;
}

.form-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 26px;
    background: #111;          /* чёрный */
    color: white;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

/* При фокусе — темно-серый #333 */
.input-wrapper input:focus {
    background: #333;
}

/* Подсказка */
.form-field .hint {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

/* Автокомплит — ВАЖНО! */
#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10000;
    display: none;
    margin-top: 4px;
}

#suggestions div {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 16px;
}

#suggestions div:hover {
    background: #f0f0f0;
}

/* Для Chrome, Edge, Safari */
.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(10) saturate(0); /* делает иконку белой */
    opacity: 0.9;
}

/* Для Firefox — убираем серую рамку и делаем стрелку контрастной */
.input-wrapper input[type="date"] {
    color: white;
}

/* Кастомная кнопка для загрузки файла */
.file-input-wrapper {
    position: relative;
}

.custom-file-btn {
    width: 100%;
    height: 52px;
    background: #111;
    color: white;
    border: none;
    border-radius: 26px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-file-btn::after {
    content: "▸";
    font-size: 18px;
}

.file-name {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 100px);
}

/* Две колонки для формы */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Кнопки в модальном окне */
.modal-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 26px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
    text-decoration: none; /* ← убирает подчёркивание */
    color: white;
    text-align: center;
    background: transparent; /* сброс фона */
}

.modal-btn.primary-btn {
    background: #111; /* чёрный */
}

.modal-btn.primary-btn:hover,
.modal-btn.primary-btn:focus {
    background: #333; /* темно-серый */
}

.modal-btn.secondary-btn {
    background: #222;
    margin-top: 16px; /* ← вот этот отступ */
}

.modal-btn.secondary-btn:hover,
.modal-btn.secondary-btn:focus {
    background: #444; /* темнее при наведении */
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        height: 320px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-content h2 {
        font-size: 20px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .hero-content .logo {
        height: 40px;
    }
    .form-grid {
            grid-template-columns: 1fr;
        }
}

@media (max-width: 480px) {
    .hero-section {
        height: 280px;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    .form-section {
        padding: 20px 10px;
    }
}