:root {
  --brand: #cb2c30;
  --brand-dark: #a8242a;
  --brand-soft: #fdecef;
  --bg: #f2f2f2;
  --panel: #ffffff;
  --text: #1e1f21;
  --muted: #5f6063;
  --line: #e1ded9;
  --red: #c4162d;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; max-width: 760px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.mark { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.lang button { border: 0; background: none; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.lang button[aria-pressed="true"] { background: var(--text); color: #fff; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.intro h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.15; margin: 18px 0 8px; }
.intro p { color: var(--muted); margin: 0 0 18px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 0 0 14px; }
fieldset.card { min-width: 0; }
/* Section headings sit inside their box (not on the border, the browser default for <legend>) */
fieldset.card { border: 1px solid var(--line); }
fieldset.card > legend { float: left; width: 100%; padding: 0 0 12px; margin: 0 0 4px; font-weight: 700; font-size: 19px; line-height: 1.3; border-bottom: 1px solid var(--line); }
fieldset.card > legend + * { clear: both; }
.q { clear: both; }

.q { margin: 14px 0 0; }
.q:first-of-type { margin-top: 6px; }
.label { display: block; font-weight: 600; margin-bottom: 4px; }
.req { color: var(--red); }
.help { color: var(--muted); font-size: 14px; margin: -2px 0 8px; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #cfccc7; border-radius: 8px; background: #fff;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 1px; border-color: var(--brand); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 14px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.opt input, .consent input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.q.bad input, .q.bad select, .q.bad textarea { border-color: var(--red); }
.err { color: var(--red); font-size: 14px; margin-top: 6px; }
.err.banner { background: #fde8eb; border-radius: 8px; padding: 10px 12px; margin: 12px 0 0; }

.consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { margin-top: 3px; }
.ts { margin: 14px 0 0; }
.ts:empty { display: none; }
.send { width: 100%; margin-top: 14px; padding: 14px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer; }
.send:hover { background: var(--brand-dark); }
.send:disabled { opacity: .6; cursor: default; }
.small { color: var(--muted); font-size: 14px; text-align: center; margin: 10px 0 0; }

.thanks { text-align: center; padding: 36px 20px; margin-top: 24px; }
.thanks h2 { margin: 0 0 8px; font-size: 24px; }
.notice { background: #fff8e6; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot { max-width: 760px; margin: 0 auto; padding: 0 16px 30px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* Privacy page */
.doc h1 { font-size: 28px; margin: 18px 0 6px; }
.doc h2 { font-size: 18px; margin: 22px 0 6px; }
.doc .en { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 8px; }

.brand img { height: 45px; width: auto; display: block; }
