/* The Wedding Poets — enquiry form */

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

:root {
    --cream: #fffef9;
    --ink: #1f2c52;
    --ink-soft: #4a5679;
    --line: rgba(31, 44, 82, 0.28);
    --line-soft: rgba(31, 44, 82, 0.16);
    --error: #8a2a2a;
    --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
    --body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--body);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.5;
}

a { color: inherit; }

.doc {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.mast {
    padding: 56px 0 40px;
    text-align: center;
}

.mast img {
    width: 200px;
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ---------- Intro ---------- */
.intro { text-align: center; padding-bottom: 40px; }

h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 30px;
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin-bottom: 24px;
}

.intro p { color: var(--ink-soft); margin-bottom: 14px; }

.contact {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.9;
}

.contact a { text-decoration: none; }
.contact a:first-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

/* ---------- Form ---------- */
.form { padding: 24px 0; }

/* Sections */
.fs { border: 0; padding: 0; margin: 0 0 50px; min-width: 0; }


legend {
    font-family: var(--display);
    font-weight: 400;
    font-size: 21px;
    line-height: 1.2;
    padding: 0;
    margin-bottom: 26px;
}


.field { margin-bottom: 26px; }

.field label,
.field .lbl {
    display: block;
    font-weight: 400;
    margin-bottom: 6px;
}

.field .req { color: var(--ink-soft); }
.field .opt { color: var(--ink-soft); font-size: 0.9em; }
.field .hint { display: block; color: var(--ink-soft); font-size: 0.9em; margin-bottom: 8px; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    font: inherit;
    font-weight: 300;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 8px 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%231f2c52' stroke-width='1.2'/></svg>");
    background-repeat: no-repeat;
    background-position: right 2px center;
    padding-right: 24px;
}

input:focus, select:focus, textarea:focus { border-bottom-color: var(--ink); }

/* Missing / invalid fields after a submit attempt */
.field .err { display: none; color: var(--error); font-size: 0.88em; margin-top: 6px; }
.field.is-missing .err { display: block; }
.field.is-missing input,
.field.is-missing select,
.field.is-missing textarea { border-bottom-color: var(--error); }
input::placeholder, textarea::placeholder { color: rgba(31, 44, 82, 0.4); }

.two { display: grid; grid-template-columns: 1fr; gap: 0 24px; }

.checks { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 4px; }

.checks label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 300;
    margin: 0;
    cursor: pointer;
}

.checks input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--ink);
}


/* Honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.actions { margin-top: 12px; }

button {
    font: inherit;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--ink);
    border: 1px solid var(--ink);
    padding: 14px 32px;
    cursor: pointer;
    width: 100%;
}

button[disabled] { opacity: 0.6; cursor: default; }

.status { margin-top: 16px; color: var(--ink-soft); min-height: 1.5em; }
.status.error { color: var(--error); }

.sent {
    display: none;
    text-align: center;
    padding: 56px 0;
    border-top: 1px solid var(--line-soft);
}

.sent h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 26px;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.sent p { color: var(--ink-soft); }

.form.is-sent { display: none; }
.sent.is-sent { display: block; }

/* ---------- Brochure line ---------- */
.brochure {
    border-top: 1px solid var(--line-soft);
    padding: 36px 0 64px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 15px;
}

.brochure a {
    display: inline-block;
    margin-top: 6px;
    color: var(--ink);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
}

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
    body { font-size: 18px; }
    .doc { padding: 0 32px; }
    .mast { padding: 72px 0 48px; }
    .mast img { width: 240px; }
    h1 { font-size: 38px; }
    legend { font-size: 24px; }
    .two { grid-template-columns: 1fr 1fr; }
    button { width: auto; }
}
