/* ── Form container ───────────────────────────────────────────────────── */
.formham-form {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Field groups ─────────────────────────────────────────────────────── */
.formham-field-group {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-grow: 1;
    min-width: 0;
}

/* ── Labels ───────────────────────────────────────────────────────────── */
.formham-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: inherit;
    line-height: 1.4;
}

/* ── Inputs, textareas, selects ───────────────────────────────────────── */
.formham-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s;
    appearance: auto;
}
.formham-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
textarea.formham-input {
    resize: vertical;
    height: 120px;
    min-height: 60px;
}
select.formham-input { cursor: pointer; }

/* ── Radio buttons ────────────────────────────────────────────────────── */
.formham-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}
.formham-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

/* ── Checkbox / terms ─────────────────────────────────────────────────── */
.formham-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.5;
    margin-top: 4px;
}
.formham-checkbox {
    margin-top: 3px;
    flex-shrink: 0;
}

/* ── Required star ────────────────────────────────────────────────────── */
.formham-required { color: #dc2626; }

/* ── Submit group ─────────────────────────────────────────────────────── */
.formham-submit-group { flex-basis: 100%; width: 100%; }

.formham-submit {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 5px;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    line-height: 1.5;
}
.formham-submit:hover { opacity: .88; }
.formham-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ── reCAPTCHA ────────────────────────────────────────────────────────── */
.formham-form .g-recaptcha { flex-basis: 100%; }
.grecaptcha-badge { visibility: visible !important; opacity: 1 !important; z-index: 2147483647 !important; }

/* ── Suppress Elementor Pro's own error banner ────────────────────────── */
.elementor-message.elementor-message-danger { display: none !important; }