/* =============================================
   contact-us — Whistleblower form section
   BEM: .contact-us__*
============================================= */

.contact-us {
    position: relative;
    padding: 80px 0;
    background-color: #1e2320;
    background-image: url('../img/bg-contact-us.jpg');
    background-size: cover;
    background-position: center;
    font-family: 'Proxima Nova Rg', sans-serif;
    color: #fff;
    overflow: hidden;
}

/* Тёмный оверлей поверх фото */
.contact-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 18, 0.72);
    pointer-events: none;
    z-index: 0;
}

.contact-us .container {
    position: relative;
    z-index: 1;
}

/* =====================
   Левая колонка
===================== */

.contact-us__left {
    padding-right: 32px;
}

.contact-us__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    line-height: 1.15;
    color: #fdc600;
    margin: 0 0 32px;
}

.contact-us__desc {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-us__desc p {
    font-size: 15px;
    line-height: 1.65;
    color: #d9d5cc;
    margin: 0;
}

.contact-us__email-link {
    color: #048ec9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-us__email-link:hover {
    color: #fff;
}

/* =====================
   Форма
===================== */

.contact-us__form-wrap {
    padding-left: 16px;
}

.contact-us__form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Поле (обёртка) */
.contact-us__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Лейбл */
.contact-us__label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.contact-us__required {
    color: #fdc600;
    margin-left: 2px;
}

/* ---- Select ---- */

.contact-us__select-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.contact-us__select {
    flex: 1 1 auto;
    height: 56px;
    padding: 0 20px;
    font-family: 'Proxima Nova Rg', sans-serif;
    font-size: 15px;
    color: #383838;
    background: #fff;
    border: 1px solid #fff;
    border-right: none;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-us__select:focus {
    border-color: #048ec9;
}

.contact-us__select-arrow {
    flex-shrink: 0;
    width: 56px;
    background: #fff;
    border: 1px solid #fff;
    border-left: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* ---- Textarea ---- */

.contact-us__textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: 'Proxima Nova Rg', sans-serif;
    font-size: 15px;
    color: #383838;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 0;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.contact-us__textarea:focus {
    border-color: #048ec9;
}

/* ---- Ошибка ---- */

.contact-us__error {
    display: none;
    font-size: 13px;
    color: #ff6b6b;
    font-style: italic;
}

.contact-us__field--error .contact-us__select,
.contact-us__field--error .contact-us__textarea {
    border-color: #ff6b6b;
}

.contact-us__field--error .contact-us__select-arrow {
    border-color: #ff6b6b;
    border-left-color: #ddd;
}

.contact-us__field--error .contact-us__captcha {
    border-color: #ff6b6b;
}

.contact-us__field--error .contact-us__error {
    display: block;
}

/* ---- Капча ---- */

.contact-us__captcha {
    background: #fff;
    border: 1px solid #fff;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s ease;
}

.contact-us__captcha-text {
    margin: 0;
    font-size: 15px;
    color: #383838;
    line-height: 1.5;
}

.contact-us__captcha-text strong {
    font-weight: 700;
}

.contact-us__captcha-icons {
    display: flex;
    gap: 20px;
}

.contact-us__captcha-icon-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2d3a2e;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
    font-size: 0;
    color: #fff;
}

.contact-us__captcha-icon-btn svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    pointer-events: none;
}

.contact-us__captcha-icon-btn:hover {
    background: #3a4a3c;
    transform: scale(1.08);
}

.contact-us__captcha-icon-btn--selected {
    background: #048ec9;
    border-color: #048ec9;
}

.contact-us__captcha-icon-btn--wrong {
    background: #c0392b;
    border-color: #c0392b;
    animation: shakeIcon 0.4s ease;
}

@keyframes shakeIcon {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

/* ---- Кнопка Submit ---- */

.contact-us__submit {
    align-self: flex-start;
    height: 56px;
    padding: 0 48px;
    background: #048ec9;
    color: #fff;
    font-family: 'Proxima Nova Rg', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.22s ease;
    letter-spacing: 0.02em;
}

.contact-us__submit:hover {
    background: #1877a0;
}

.contact-us__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---- Disclaimer ---- */

.contact-us__disclaimer {
    font-size: 13px;
    font-style: italic;
    color: #a09c94;
    line-height: 1.7;
    margin: 0;
}

/* ---- Success ---- */

.contact-us__success {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(253, 198, 0, 0.12);
    border: 1px solid #fdc600;
    padding: 20px 24px;
}

.contact-us__success[hidden] {
    display: none;
}

.contact-us__success p {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

/* =====================
   Планшет — до 1024px
===================== */

@media (max-width: 1024px) {
    .contact-us {
        padding: 60px 0;
    }

    .contact-us__title {
        font-size: 36px;
    }

    .contact-us__left {
        padding-right: 16px;
    }

    .contact-us__form-wrap {
        padding-left: 0;
    }
}

/* =====================
   Мобильный — до 768px
===================== */

@media (max-width: 768px) {
    .contact-us {
        padding: 40px 0;
    }

    .contact-us__left {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .contact-us__title {
        font-size: 30px;
        margin-bottom: 24px;
    }

    .contact-us__submit {
        width: 100%;
    }
}

/* Success — видим после отправки */
.contact-us__form--hidden {
    display: none;
}