/* ==========================================================================
   NegotiateHer site forms — one look for every sign-up, download and enquiry
   form (see assets/scripts/nh-forms.js). Selectors carry .nh-form so they beat
   the theme's bare input/textarea rules in style.css.
   ========================================================================== */

.nh-form {
    --nh-purple: #703ACF;
    --nh-purple-dark: #5A2E98;
    --nh-ink: #1A1740;
    --nh-muted: #585472;
    --nh-line: #D9D2EA;
    --nh-mist: #F3EFFC;

    position: relative;
    width: 100%;
    text-align: left;
}

.nh-form-fields {
    display: grid;
    gap: 10px;
}

/* Name + email + button on one line where there is room */
@media (min-width: 600px) {
    .nh-form--row .nh-form-fields {
        grid-template-columns: 1fr 1fr auto;
    }
}

.nh-form .nh-input {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--nh-line);
    border-radius: 10px;
    background: #fff;
    color: var(--nh-ink);
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.nh-form textarea.nh-input {
    height: auto;
    min-height: 128px;
    padding: 12px 16px;
    resize: vertical;
}

.nh-form .nh-input::placeholder {
    color: #8A8398;
    opacity: 1;
}

.nh-form .nh-input:focus {
    outline: none;
    border-color: var(--nh-purple);
    box-shadow: 0 0 0 3px rgba(112, 58, 207, 0.18);
}

.nh-form .nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    margin: 0;
    padding: 0 26px;
    border: 0;
    border-radius: 10px;
    background: var(--nh-purple);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.nh-form .nh-btn:hover {
    background: var(--nh-purple-dark);
}

.nh-form .nh-btn:focus-visible {
    outline: 3px solid rgba(112, 58, 207, 0.35);
    outline-offset: 2px;
}

.nh-form .nh-btn[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.nh-form-status {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--nh-muted);
}

.nh-form-status:empty {
    display: none;
}

.nh-form-status.is-error {
    color: #B3261E;
}

.nh-form-status a {
    color: var(--nh-purple);
    font-weight: 700;
}

.nh-form.is-done .nh-form-fields {
    display: none;
}

.nh-form.is-done .nh-form-status {
    margin: 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--nh-mist);
    color: var(--nh-ink);
}

.nh-form-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #8A8398;
}

/* Visually hidden, still read by screen readers */
.nh-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Honeypot: off-screen for people, irresistible to bots */
.nh-form .nh-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .nh-form .nh-input,
    .nh-form .nh-btn {
        transition: none;
    }
}
