/* contact.css — additive styles for /contact and /thanks.
   Loaded after /css/main.css. Same design tokens. */

/* ---- form card ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 26px;
  max-width: 46rem;
}
@media (max-width: 720px) {
  .form-card { padding: 18px; }
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 18px;
}
.field > label,
.field > legend {
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0;
}
.req { color: var(--accent); font-weight: 700; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }

.brief-form input[type="text"],
.brief-form input[type="email"],
.brief-form select,
.brief-form textarea {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.brief-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.brief-form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}
.brief-form input:focus-visible,
.brief-form select:focus-visible,
.brief-form textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}
.brief-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  font-size: 0.95rem;
}
.checks label:hover { border-color: var(--accent); }
.checks input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent-2);
}
.brief-form button[type="submit"] {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  margin-top: 4px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 34rem;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- email block ---- */
.mail-big {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.2vw, 1.6rem);
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.mail-big a { color: var(--accent-2); text-decoration: none; }
.mail-big a:hover { color: var(--accent); text-decoration: underline; }

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
#copy-btn {
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.copy-row #copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.template {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 16px 18px;
  margin: 0 0 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* ---- small table ---- */
.tbl-scroll { overflow-x: auto; margin: 0 0 16px; }
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--white);
  max-width: 46rem;
}
.tbl th,
.tbl td {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.tbl th {
  background: var(--paper-2);
  font-weight: 650;
}

/* ---- what happens next: reuse .steps, tighten spacing ---- */
main .steps li:last-child { margin-bottom: 0; }

/* ---- thanks page ---- */
.done-mark {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent-2);
  margin: 0 0 10px;
}

@media (max-width: 880px) {
  .checks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .copy-row { flex-direction: column; align-items: stretch; }
  .copy-row #copy-btn { width: 100%; }
  .tbl { font-size: 0.88rem; }
}
