/* ==========================================================================
   Form nhận yêu cầu tư vấn (trang chủ + trang theo lĩnh vực)
   --------------------------------------------------------------------------
   Dùng lại biến màu của solution_landing.css. Nạp file này SAU nó.
   ========================================================================== */

.lead-form {
    max-width: 640px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    text-align: left;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    color: #152337;
}

.lead-form__title {
    margin: 0 0 1.1rem;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: #114473;
}

/* Honeypot: ẩn khỏi mắt người và khỏi tab order, nhưng KHÔNG dùng
   display:none vì một số bot bỏ qua field bị ẩn kiểu đó. */
.lead-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (max-width: 560px) {
    .lead-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.lead-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.lead-field--wide {
    grid-column: 1 / -1;
}

.lead-field > span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #46586c;
}

.lead-field > span i {
    font-style: normal;
    color: #c2413b;
}

.lead-field input,
.lead-field select,
.lead-field textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.6rem 0.7rem;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #152337;
    background: #f8fafc;
    border: 1px solid #cfd9e4;
    border-radius: 9px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.lead-field textarea {
    resize: vertical;
    min-height: 62px;
}

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #114473;
    box-shadow: 0 0 0 3px rgba(17, 68, 115, 0.14);
}

.lead-field input[aria-invalid="true"] {
    border-color: #c2413b;
    box-shadow: 0 0 0 3px rgba(194, 65, 59, 0.14);
}

.lead-form__submit {
    width: 100%;
    margin-top: 1.1rem;
    padding: 0.8rem 1.2rem;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    background: #114473;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.12s ease;
}

.lead-form__submit:hover:not(:disabled) {
    background: #0c3357;
}

.lead-form__submit:active:not(:disabled) {
    transform: scale(0.99);
}

.lead-form__submit:focus-visible {
    outline: 3px solid rgba(17, 68, 115, 0.45);
    outline-offset: 2px;
}

.lead-form__submit:disabled {
    background: #7d8b99;
    cursor: progress;
}

.lead-form__status {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    line-height: 1.45;
    min-height: 1.2em;
}

.lead-form__status[data-state="error"] {
    color: #c2413b;
    font-weight: 600;
}

.lead-form__status[data-state="ok"] {
    color: #147a5b;
    font-weight: 600;
}

.lead-form__fine {
    margin: 0.6rem 0 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: #657486;
}

/* Trạng thái đã gửi xong: thay form bằng lời cảm ơn, không để người dùng
   gửi lại lần nữa. */
.lead-form--done .lead-form__grid,
.lead-form--done .lead-form__submit,
.lead-form--done .lead-form__fine,
.lead-form--done .lead-form__title {
    display: none;
}

.lead-form--done .lead-form__status {
    margin: 0;
    font-size: 0.98rem;
}

@media (prefers-reduced-motion: reduce) {
    .lead-form__submit,
    .lead-field input,
    .lead-field select,
    .lead-field textarea {
        transition: none;
    }
}
