/* InterestForm Component Styles — styled to g-etech design tokens (buildplan §3, §8.4) */

.com-interestform {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 0;
    font-family: "Inter", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
    color: #242423;
}

.interestform-description {
    margin-bottom: 1.5rem;
    color: #5f5e5a;
}

.interestform-field {
    margin-bottom: 1.25rem;
}

.interestform-field .form-label {
    display: block;
    font-weight: 500;
    margin-bottom: .4rem;
    color: #242423;
}

.interestform-field .form-label .required {
    color: #a8503f;
    margin-left: 2px;
}

/* Inputs — 4px radius is law (buildplan §3), no box-shadows */
.com-interestform input[type="text"],
.com-interestform input[type="email"],
.com-interestform input[type="tel"],
.com-interestform input[type="url"],
.com-interestform textarea,
.com-interestform select {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    color: #242423;
    background: #fcfcfc;
    border: 1px solid #e2e0dc;
    border-radius: 4px;
    padding: 10px 12px;
    box-shadow: none;
    transition: border-color .15s ease;
}

.com-interestform input:focus,
.com-interestform textarea:focus,
.com-interestform select:focus {
    outline: none;
    border-color: #e8a33d;
}

/* Inline validation states — muted brick error tone, NOT a new bright accent (buildplan §8.4) */
.com-interestform .is-invalid {
    border-color: #a8503f !important;
}

.com-interestform .is-valid {
    border-color: #8a9a7e;
}

.com-interestform .invalid-feedback {
    display: none;
    color: #a8503f;
    font-size: 14px;
    margin-top: 4px;
}

.com-interestform .is-invalid ~ .invalid-feedback,
.com-interestform .interestform-field:has(.is-invalid) .invalid-feedback {
    display: block;
}

/* Submit — gold fill, 4px radius, Inter 500 (buildplan §3 button spec) */
.interestform-submit {
    display: inline-block;
    min-width: 140px;
    padding: 11px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #242423;
    background: #e8a33d;
    border: 1px solid #e8a33d;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, opacity .2s;
}

.interestform-submit:hover {
    background: #c9821f;
    border-color: #c9821f;
}

.interestform-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.interestform-radio-group .form-check,
.interestform-checkbox-group .form-check {
    margin-bottom: .35rem;
}

/* Hide honeypot from screen readers and visual display */
.hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.interestform-turnstile {
    margin: 1rem 0;
}
