/* T19 · shared form art direction for Sample, RFQ and Contact. */

/* Labels stay closer to the field; inputs are the same height as buttons. */
.form .field > label,
.form .field > .flabel,
.form fieldset.field > legend {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.form .field .req { color: var(--err); }
.form .input,
.form .select,
.form .textarea {
  width: 100%;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-2);
  background: var(--bone);
  color: var(--ink);
  font-size: 17px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form .input,
.form .select { height: 52px; min-height: 52px; padding: 0 16px; }
.form .textarea { min-height: 150px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.form .input:hover,
.form .select:hover,
.form .textarea:hover { border-color: var(--ink-3); }
.form .input:focus,
.form .select:focus,
.form .textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  background: var(--bone);
}
.form .field.is-err .input,
.form .field.is-err .select,
.form .field.is-err .textarea {
  border-color: var(--err);
  box-shadow: 0 0 0 1px var(--err);
}
.form .field__err { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--err); }

/* Inline error summary: one line per problem, each one an anchor. */
.fsum {
  display: grid;
  gap: 7px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--err);
  border-radius: 8px;
  background: color-mix(in srgb, var(--err) 9%, var(--bone));
}
.fsum[hidden] { display: none; }
.fsum p { margin: 0; font-size: 14px; font-weight: 650; color: #8f2e1c; }
.fsum ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.fsum a { font-size: 14px; color: #8f2e1c; text-decoration: underline; text-underline-offset: 2px; }
.fsum a:hover, .fsum a:focus-visible { color: var(--ink); }

/* Option cards: a square tick, not an icon in a circle. */
.form .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .tile__b,
.form .tile--sm .tile__b,
.form .tile--pack .tile__b {
  min-height: 56px;
  background: var(--bone);
  border-color: var(--rule-2);
}
.form .tile__b i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1.5px solid var(--rule-2);
  color: transparent;
  background: transparent;
}
.form .tile__b i svg { width: 13px; height: 13px; }
.form .tile input:checked + .tile__b i {
  background: var(--green);
  border-color: var(--green);
  color: var(--bone);
}
.form .tile input:checked + .tile__b { background: var(--bone); }
.form .tile__b b { font-size: 17px; }
.form .tile--sm .tile__b b { font-size: 15px; }
.form .tile--pack .tile__b b { font-size: 14px; }

/* Contact enquiry types: full 56px target, square check. */
.form .opts { gap: 10px; }
.form .opt span {
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 12px;
  border-color: var(--rule-2);
  background: var(--bone);
  font-size: 15px;
  font-weight: 600;
}
.form .opt span::before {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
}
.form .opt input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: var(--bone);
}
.form .opt input:checked + span::before { content: "✓"; color: var(--ink); }

/* Sample flavour cards: a real photograph, a readable label, a square tick. */
.form .flv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .flv__i > span {
  min-height: 72px;
  padding: 8px 12px;
  gap: 12px;
  border-color: var(--rule-2);
  background: var(--bone);
}
.form .flv__i > span > img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}
.form .flv__i > span > b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.form .flv__i svg {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 3px;
  border: 1.5px solid var(--rule-2);
  border-radius: 4px;
  color: transparent;
  background: transparent;
}
.form .flv__i input:checked + span { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.form .flv__i input:checked + span svg { color: var(--bone); background: var(--green); border-color: var(--green); }
.form .field.is-err .flv__i > span { border-color: var(--err); }

/* Sample kit: the fallback photo stands in for the missing S-SAMPLEKIT frame. */
.skit { display: grid; gap: 10px; margin: 4px 0 18px; }
.skit picture, .skit img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}
.skit figcaption {
  padding-left: 12px;
  border-left: 2px solid var(--apricot);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.skit figcaption b { display: block; font-size: 14px; color: var(--ink); }

/* RFQ dossier: paper, ruled section headings and a stamp that lands once. */
.dossier {
  background-color: var(--bone);
  background-image: radial-gradient(rgba(22, 32, 26, .035) .7px, transparent .8px);
  background-size: 4px 4px;
}
.dsec legend {
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-2);
}
.dsec legend .num { letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.dossier.is-done .dossier__stamp { animation: stamp-once .8s cubic-bezier(.2, .9, .2, 1.2) both; }
@keyframes stamp-once {
  0% { opacity: 0; transform: scale(1.7) rotate(-28deg); }
  65% { opacity: .95; transform: scale(.94) rotate(-12deg); }
  100% { opacity: .78; transform: scale(1) rotate(-14deg); }
}

/* Success panel: reference, next steps, timing and a human address. */
.fdone {
  gap: 14px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: var(--bone);
}
.fdone .fdone__ic { width: 52px; height: 52px; background: var(--green); color: var(--bone); border-radius: 8px; }
.fdone .fdone__ic svg { width: 24px; height: 24px; }
.fdone__ref { margin: 0; font-size: 14px; color: var(--ink-2); }
.fdone__ref span { color: var(--ink); font-weight: 700; }
.fdone__next { width: 100%; padding-top: 14px; border-top: 1px solid var(--rule); }
.fdone__next b { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fdone__next p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.fdone__mail { font-weight: 650; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* Contact: a drawn Kolkata map, no third-party iframe. */
.cmap {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bone);
}
.cmap svg { display: block; width: 100%; height: auto; background: #e8ebe1; }
.cmap .river { fill: #b9d4cf; }
.cmap .block { fill: #dde3d6; }
.cmap .park { fill: #cbd8c2; }
.cmap .road { fill: none; stroke: #fbf8f2; stroke-width: 2.2; }
.cmap .road--major { stroke-width: 4; }
.cmap .label { fill: #5e675f; font: 600 9px/1 var(--f); letter-spacing: .08em; text-transform: uppercase; }
.cmap .pin { fill: var(--err); }
.cmap .pin-ring { fill: none; stroke: var(--err); stroke-width: 2; opacity: .35; }
.cmap figcaption {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.cmap figcaption b { font-size: 14px; color: var(--ink); }
.cmap__reply { color: var(--green); font-weight: 600; }

/* The mobile bar is a submit-route shortcut. Give the form room to clear it. */
@media (max-width: 900px) {
  [data-page="forms"] main > section { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .form-row, .form-row--3 { grid-template-columns: minmax(0, 1fr); }
  .form .flv { grid-template-columns: minmax(0, 1fr); }
  .skit img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .form .tiles, .form .tiles--4 { grid-template-columns: minmax(0, 1fr); }
  .form .opt span { width: 100%; }
  .fdone { padding: 22px 18px; }
}
