/**
 * iLogist — Уніфікована форма зворотного зв'язку.
 *
 * Замість 5 різних форм з різними inline-стилями (175+ копій на сайті)
 * усі форми використовують ці класи:
 *   .ilg-form          — контейнер форми
 *   .ilg-field         — обгортка поля (input + опціональний label)
 *   .ilg-label         — лейбл над полем (uppercase, 12px)
 *   .ilg-input         — текстове поле (input/tel)
 *   .ilg-checkbox      — обгортка чекбокса (consent)
 *   .ilg-btn-submit    — помаранчева кнопка submit
 *
 * Модифікатори:
 *   .ilg-form--dark    — для темних фонів (футер)
 *   .ilg-form--inline  — для горизонтального розташування
 *
 * Візуально 1-в-1 з поточними .business-input + .business-submit-btn.
 */

/* ============================================================
   ОСНОВНІ СТИЛІ
============================================================ */
.ilg-form {
    width: 100%;
}

.ilg-field {
    margin-bottom: 16px;
}

.ilg-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.ilg-input {
    width: 100%;
    background-color: #f4f7f9;
    border: 1px solid transparent;
    border-radius: 8px;
    height: 50px;
    padding: 10px 15px;
    font-size: 15px;
    color: #333333;
    line-height: 1.4;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    font-family: inherit;
}

.ilg-input::placeholder {
    color: #999;
    opacity: 1;
}

.ilg-input:focus {
    background-color: #ffffff;
    border-color: #392ec9;
    box-shadow: 0 0 0 4px rgba(57, 46, 201, 0.1);
    outline: none;
}

.ilg-input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Textarea — той самий стиль, але автовисота */
textarea.ilg-input {
    height: auto;
    min-height: 100px;
    padding: 12px 15px;
    resize: vertical;
    line-height: 1.5;
}

/* Чекбокс згоди */
.ilg-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    cursor: pointer;
}

.ilg-checkbox input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    cursor: pointer;
}

.ilg-checkbox label {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    cursor: pointer;
    margin: 0;
}

/* Honeypot (приховане поле bot_check) */
.ilg-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   КНОПКА SUBMIT
============================================================ */
.ilg-btn-submit {
    display: block;
    width: 100%;
    background: #fca311;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.3);
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ilg-btn-submit:hover,
.ilg-btn-submit:focus {
    background-color: #e08e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 163, 17, 0.4);
    outline: none;
}

.ilg-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(252, 163, 17, 0.3);
}

.ilg-btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   ТЕМНА ВЕРСІЯ (для футера на темному фоні)
============================================================ */
.ilg-form--dark .ilg-label {
    color: rgba(255, 255, 255, 0.7);
}

.ilg-form--dark .ilg-input {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.ilg-form--dark .ilg-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ilg-form--dark .ilg-input:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fca311;
    box-shadow: 0 0 0 4px rgba(252, 163, 17, 0.15);
}

.ilg-form--dark .ilg-checkbox label {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   ГОРИЗОНТАЛЬНА ВЕРСІЯ (input + кнопка в один рядок, як у footer)
============================================================ */
.ilg-form--inline .ilg-field {
    margin-bottom: 0;
    display: flex;
}

.ilg-form--inline .ilg-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.ilg-form--inline .ilg-btn-submit {
    width: auto;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 24px;
    padding-right: 24px;
}


/* ============================================================
   МОБІЛЬНА АДАПТАЦІЯ
============================================================ */
@media (max-width: 575px) {
    .ilg-input {
        height: 48px;
        font-size: 16px; /* >= 16px щоб iOS Safari не зумив сторінку */
    }

    .ilg-btn-submit {
        font-size: 14px;
        padding: 13px 20px;
    }
}
