/* ============================================================
   Landing page — Figma 34:9 "Форма для sale.uub.com.ua"
   ============================================================ */

/* Зробити #load_content повної ширини для фонового зображення */
#load_content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
}

/* ── Фонова обгортка ── */
.lp-page {
    position: relative;
    min-height: 80vh;
    background: url('/pictures/landing-bg.webp') center / cover no-repeat;
}

.lp-page::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Radial gradient точно з Figma — білий зліва, прозорий справа */
    background: radial-gradient(circle at 34% 50%,
        rgba(255, 255, 255, 1)    0%,
        rgba(255, 255, 255, 0.98) 23%,
        rgba(255, 255, 255, 0)    100%);
    pointer-events: none;
    z-index: 0;
}

/* Колонки мають бути поверх псевдоелемента */
.lp-info-col,
.lp-form-col {
    position: relative;
    z-index: 1;
}

/* ── Ліва колонка: текстовий контент ── */
.lp-heading {
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 130%;
    color: #295EAF;
    margin-bottom: 16px;
}

.lp-lead {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #868686;
    margin-bottom: 16px;
}

.lp-text {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #27282B;
    margin-bottom: 16px;
}

.lp-section {
    margin-bottom: 24px;
}

.lp-section-head {
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 130%;
    color: #27282B;
    margin-bottom: 8px;
}

/* Список із крапкою-маркером кольору #295EAF */
.lp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-list li {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #27282B;
    padding-left: 20px;
    position: relative;
}

.lp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(0.65em);
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #295EAF;
    flex-shrink: 0;
}

/* Посилання в списках */
.lp-link {
    color: #295DB0;
    text-decoration: underline;
    font-weight: 700;
}

.lp-link:hover {
    color: #1e4a91;
    text-decoration: underline;
}

/* ── Права колонка: картка форми ── */
.lp-form-col {
    /* Прилипає до верху на великих екранах */
    align-self: flex-start;
}

@media (min-width: 992px) {
    .lp-form-col {
        position: sticky;
        top: 16px;
    }
}

/* Картка — bg #F9F9F9, border-radius 12px, padding 44px, gap 24px між дочірніми */
.lp-card {
    background: #F9F9F9;
    border-radius: 12px;
    padding: 44px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Заголовок картки: назва + підпис */
.lp-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-card-title {
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 130%;
    color: #295EAF;
    margin: 0;
}

.lp-card-sub {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #27282B;
    margin: 0;
}

/* Зірочка «обов'язкове поле» — синя */
.lp-req {
    color: #295EAF;
}

/* Позначка "(optional)" — сіра */
.lp-opt {
    font-weight: 400;
    font-size: 16px;
    color: #919191;
}

/* ── Форма ── */
#lpForm {
    display: flex;
    flex-direction: column;
    gap: 24px; /* між .lp-fields, кнопкою та повідомленнями */
    margin: 0;
}

/* Контейнер полів: gap 16px між полями */
.lp-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Одне поле (label + input + feedback): gap 6px */
.lp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp-label {
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 130%;
    color: #27282B;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Інпут */
.lp-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #D8DEE6;
    border-radius: 4px;
    background: #FFFFFF;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #27282B;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lp-input::placeholder {
    color: #919191;
}

.lp-input:focus {
    border-color: #295EAF;
    box-shadow: 0 0 0 2px rgba(41, 94, 175, 0.15);
}

/* Стан валідації */
.lp-input.is-invalid {
    border-color: #dc3545;
}

.lp-input.is-invalid:focus {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.lp-input.is-valid {
    border-color: #198754;
}

.lp-input.is-valid:focus {
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.15);
}

/* Textarea з меншим padding зверху/знизу (як у Figma: 5.5px 12px) */
.lp-textarea {
    padding-top: 6px;
    padding-bottom: 6px;
    resize: vertical;
    min-height: 76px;
}

/* Bootstrap .invalid-feedback стандартно прихований;
   показується коли попередній сіблінг має .is-invalid */
.invalid-feedback {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #dc3545;
}

/* ── Кнопка ── */
.lp-btn {
    width: 100%;
    padding: 16px 28px;
    background: #295EAF;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 130%;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: none;
}

.lp-btn:hover:not(:disabled) {
    background: #1e4a91;
}

.lp-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Повідомлення після сабміту ── */
.lp-msg {
    display: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.lp-msg.show {
    display: block;
}

.lp-ok {
    background: #d1e7dd;
    color: #0a3622;
    border: 1px solid #a3cfbb;
}

.lp-err {
    background: #f8d7da;
    color: #58151c;
    border: 1px solid #f1aeb5;
}

/* ── Адаптивність ── */
@media (max-width: 991px) {
    .lp-page::before {
        /* На мобільних — напівпрозорий білий фон для читабельності */
        background: rgba(255, 255, 255, 0.90);
    }

    .lp-card {
        padding: 28px 20px;
    }

    .lp-heading {
        font-size: 26px;
    }
}

@media (max-width: 575px) {
    .lp-card {
        padding: 20px 16px;
    }

    .lp-heading {
        font-size: 22px;
    }
}

/* Footer: прибираємо mt-3 тільки на Landing */
footer > .row.mt-3.bg-primary {
    margin-top: 0 !important;
}
