/*
 * Contact form — [solomon_contact_form]
 *
 * Every colour reads a theme token first and falls back to the Solomon palette,
 * so the form matches the Solomon Enterprise theme and still looks deliberate
 * on any other theme.
 */

.smh-contact {
    --smh-contact-accent: var(--color-accent, #C8102E);
    --smh-contact-ink:    var(--color-text, #0d0d0d);
    --smh-contact-border: var(--color-border, #e2e2e2);
    --smh-contact-muted:  var(--color-text-muted, #888);
    --smh-contact-radius: var(--radius-lg, 4px);
    font-family: var(--font, inherit);
    color: var(--smh-contact-ink);
}

/* The honeypot must be unreachable for people but present for bots, so it is
   moved off-screen rather than display:none — some bots skip hidden fields. */
.smh-contact__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.smh-contact__notice {
    padding: 14px 18px;
    margin-bottom: 22px;
    border-radius: var(--smh-contact-radius);
    border-left: 3px solid;
    font-size: 15px;
    line-height: 1.6;
}
.smh-contact__notice--ok {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #14532d;
}
.smh-contact__notice--error {
    background: #fef2f2;
    border-color: var(--smh-contact-accent);
    color: #7f1d1d;
}

.smh-contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.smh-contact__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    min-width: 0;
}

.smh-contact__field label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 7px;
}

.smh-contact__req { color: var(--smh-contact-accent); }

.smh-contact__field input,
.smh-contact__field select,
.smh-contact__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--smh-contact-ink);
    background: var(--color-white, #fff);
    border: 1px solid var(--smh-contact-border);
    border-radius: var(--smh-contact-radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.smh-contact__field input:focus,
.smh-contact__field select:focus,
.smh-contact__field textarea:focus {
    outline: none;
    border-color: var(--smh-contact-accent);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}

.smh-contact__field textarea { resize: vertical; min-height: 140px; }

.smh-contact__consent {
    font-size: 13px;
    color: var(--smh-contact-muted);
    margin: 0 0 18px;
}

.smh-contact__submit {
    display: inline-block;
    padding: 14px 34px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .03em;
    color: #fff;
    background: var(--smh-contact-accent);
    border: none;
    border-radius: var(--smh-contact-radius);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.smh-contact__submit:hover {
    background: var(--color-primary-light, #a00c23);
    transform: translateY(-1px);
}
.smh-contact__submit:disabled { opacity: .6; cursor: default; transform: none; }

@media (max-width: 640px) {
    .smh-contact__row { grid-template-columns: 1fr; gap: 0; }
}
