/* ==========================================================================
   Product Contact Form — Based on Registration Guarantee Style
   ========================================================================== */

:root {
    --lh-blue: #4992BB;
    --lh-blue-dark: #3a7a9e;
    --lh-blue-light: #DCEBF3;
    --lh-gray-bg: #EBEBEB;
    --lh-text: #565656;
    --lh-text-dark: #333;
    --lh-white: #fff;
    --lh-radius: 10px;
}

.lh-product-contact {
    background: var(--lh-blue-light);
    padding: 60px 0;
}

.lh-product-contact__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.lh-product-contact__intro {
    margin-bottom: 32px;
}

.lh-product-contact__intro h2 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--e-global-color-text);
    margin: 0 0 16px;
    text-transform: uppercase;
    line-height: 1.15;
}

.lh-product-contact__intro p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--lh-text-dark);
}

/* ---------- Form Grid ---------- */
.lh-product-contact-form__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
}

.lh-form__field--full {
    grid-column: span 12;
}

.lh-form__field--half {
    grid-column: span 6;
}

.lh-form__field--third {
    grid-column: span 4;
}

.lh-form__field--two-thirds {
    grid-column: span 8;
}

.lh-form__field--quarter {
    grid-column: span 3;
}

/* ---------- Labels ---------- */
.lh-form__field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--lh-text-dark);
    margin: 0 0 5px 0;
}

.lh-form__field .required {
    color: #c0392b;
}

/* ---------- Inputs ---------- */
.lh-form__field input[type="text"],
.lh-form__field input[type="email"],
.lh-form__field input[type="tel"],
.lh-form__field input[type="date"],
.lh-form__field select,
.lh-form__field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--lh-gray-bg);
    border-radius: var(--lh-radius);
    background: var(--lh-white);
    transition: border-color 0.2s;
    outline: none;
    box-shadow: none;
    appearance: none;
}

.lh-form__field input:focus,
.lh-form__field select:focus,
.lh-form__field textarea:focus {
    border-color: var(--lh-blue);
}

.lh-form__field input::placeholder,
.lh-form__field textarea::placeholder {
    color: #aaa;
}

/* Select arrow */
.lh-form__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23565656' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Textarea specific */
.lh-form__field textarea {
    min-height: 120px;
    resize: vertical;
}

/* ---------- Checkboxes ---------- */
.lh-form__field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    cursor: pointer;
}

.lh-form__field--checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--lh-blue);
    border: 2px solid var(--lh-gray-bg);
    border-radius: 4px;
}

.lh-form__field--checkbox span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--lh-text);
}

.lh-form__field--checkbox a {
    color: var(--lh-blue);
    text-decoration: underline;
}

/* ---------- Actions ---------- */
.lh-form__actions-row {
    display: flex;
    justify-content: flex-end;
    /* Align right as per design, or space-between */
    align-items: center;
    margin-top: 20px;
}

.lh-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px;
    background: var(--lh-blue);
    /* Or Red #cf1e29 based on prev css? Reference used Blue */
    color: var(--lh-white);
    border: none;
    border-radius: var(--lh-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    width: auto;
}

.lh-btn-submit:hover {
    background: var(--lh-blue-dark);
}

.lh-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.lh-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--lh-white);
    border-radius: 50%;
    animation: lh-spin 0.8s linear infinite;
}

@keyframes lh-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Feedback Messages */
.lh-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--lh-radius);
    font-size: 14px;
    display: none;
}

.lh-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.lh-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ==========================================================================
   Chip List & Autocomplete (Preserved)
   ========================================================================== */

.lh-chiplist-wrapper {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid var(--lh-gray-bg);
    border-radius: var(--lh-radius);
    background: var(--lh-white);
    min-height: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    position: relative;
    transition: border-color 0.2s;
}

.lh-chiplist-wrapper:focus-within {
    border-color: var(--lh-blue);
}

.lh-chip {
    display: inline-flex;
    align-items: center;
    background-color: var(--lh-blue-light);
    color: var(--lh-blue-dark);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
}

.lh-chip__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--lh-blue-dark);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.lh-chip__remove:hover {
    background-color: var(--lh-white);
    color: #c0392b;
}

.lh-chiplist-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    flex-grow: 1;
    min-width: 120px;
    padding: 4px 0 !important;
    box-shadow: none !important;
    height: auto !important;
}

.lh-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 5px;
}

.lh-autocomplete-results[hidden] {
    display: none;
}

.lh-autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lh-autocomplete-item:last-child {
    border-bottom: none;
}

.lh-autocomplete-item:hover,
.lh-autocomplete-item.is-focused {
    background-color: #f5f5f5;
    color: var(--lh-blue);
}

.lh-autocomplete-item.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {

    .lh-form__field--half,
    .lh-form__field--third,
    .lh-form__field--two-thirds,
    .lh-form__field--quarter {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {

    .lh-form__field--half,
    .lh-form__field--third,
    .lh-form__field--two-thirds,
    .lh-form__field--quarter {
        grid-column: span 12;
    }

    .lh-btn-submit {
        width: 100%;
    }
}