/*
 * Theme lifted from the tln WordPress theme so this page reads as part of
 * lactationnetwork.com. Palette and type were taken from the live stylesheet
 * (wp-content/themes/tln/build/css/main.min.css) rather than eyeballed:
 *   #293d2a  dark green, dominant brand colour
 *   #f8ac32  amber, used for calls to action
 *   #c7d8c2  sage
 *   #efffe9  pale green page wash
 *   #140a14  near-black body text
 *   #bd503f  rust, used for errors
 * Matter (MatterSQ) is the brand face; the woff2/woff files are copied from the
 * same theme build so nothing is fetched from a third party.
 */

@font-face {
    font-family: 'MatterSQ';
    src: url('../fonts/Matter-Light.woff2') format('woff2'), url('../fonts/Matter-Light.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'MatterSQ';
    src: url('../fonts/Matter-Regular.woff2') format('woff2'), url('../fonts/Matter-Regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'MatterSQ';
    src: url('../fonts/Matter-Medium.woff2') format('woff2'), url('../fonts/Matter-Medium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'MatterSQ';
    src: url('../fonts/Matter-SemiBold.woff2') format('woff2'), url('../fonts/Matter-SemiBold.woff') format('woff');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'MatterSQ';
    src: url('../fonts/Matter-Bold.woff2') format('woff2'), url('../fonts/Matter-Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

:root {
    --green-dark: #293d2a;
    --green-mid: #506350;
    --green-muted: #8c9e89;
    --sage: #c7d8c2;
    --wash: #efffe9;
    --amber: #f8ac32;
    --ink: #140a14;
    --rust: #bd503f;
    --white: #fff;
    --radius: 6px;
    --font: 'MatterSQ', Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--wash);
}

.site-header {
    background: var(--green-dark);
    padding: 1.25rem 1.5rem;
}

.brand {
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.brand:hover, .brand:focus-visible { text-decoration: underline; }

.site-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.site-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    color: var(--green-mid);
    font-size: 0.85rem;
}

h1 {
    font-weight: 700;
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    line-height: 1.15;
    color: var(--green-dark);
    margin: 0 0 0.75rem;
}

.lede { font-size: 1.05rem; color: var(--green-mid); margin: 0 0 2rem; }
.intro a { color: var(--green-dark); }

fieldset {
    border: 1px solid var(--sage);
    border-radius: var(--radius);
    background: var(--white);
    padding: 1.5rem;
    margin: 0 0 1.5rem;
}

legend {
    font-weight: 600;
    color: var(--green-dark);
    padding: 0 0.5rem;
}

.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row .field { flex: 1 1 220px; }

.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }

label {
    display: block;
    font-weight: 500;
    color: var(--green-dark);
    margin-bottom: 0.35rem;
}

input[type='text'], input[type='email'], input[type='tel'], textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--green-muted);
    border-radius: var(--radius);
}

input:focus-visible, textarea:focus-visible, button:focus-visible, .choice:focus-within {
    outline: 3px solid var(--amber);
    outline-offset: 1px;
}

textarea { resize: vertical; }

.choice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: 400;
    color: var(--ink);
    padding: 0.4rem 0;
    cursor: pointer;
}

.choice input { margin-top: 0.35rem; flex: none; }

.req { color: var(--rust); }

.btn {
    display: inline-block;
    background: var(--amber);
    color: var(--ink);
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 2rem;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover, .btn:focus-visible { background: #e59a24; }

.field-error { display: block; color: var(--rust); font-size: 0.88rem; margin-top: 0.3rem; }

.validation-summary:not(:empty), .alert {
    background: #fff2f0;
    border: 1px solid var(--rust);
    border-radius: var(--radius);
    color: #7d2e21;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.5rem;
}

.validation-summary ul { margin: 0; padding-left: 1.2rem; }

.fineprint { color: var(--green-mid); font-size: 0.85rem; margin-top: 1.25rem; }

/* Honeypot: removed from view without display:none, which some bots detect. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cf-turnstile { margin: 0 0 1.5rem; }

@media (max-width: 540px) {
    .row { display: block; }
    .btn { width: 100%; text-align: center; }
}
