/* /contact/ (pages/contact.py): the two forms behind two tabs sit in the first screen beside the headline, the address block under the headline,
   then the delivery map. The form's own pieces (.field, .btn, .contact-form, the consent box) come from inner.css; this file lays them out and
   adds the select and the tabs (the tabs reuse the news filter's button, .nbtn, so the page keeps one button language).
   Units: vw on the 2400 canvas above 1100px, min(Xvw, Ypx) at or below it. */

.chero { padding: calc(var(--head-h) + 3vw) 0 4vw; }
.chero__row { display: grid; grid-template-columns: minmax(0, 1fr) 44vw; grid-template-areas: "lead form" "side form"; align-items: start; gap: 2.5vw 5vw; padding: 0 5vw; }
.chero__lead { grid-area: lead; display: flex; flex-direction: column; gap: 2.5vw; }
.chero__lead .display { padding-top: .12em; padding-bottom: .1em; }
.chero__lead .line { will-change: transform; }
.chero__intro { max-width: 30vw; }
.chero__form { grid-area: form; padding-top: 1.2vw; }
.chero__side { grid-area: side; display: flex; flex-direction: column; gap: .6vw; align-self: end; }
.chero__in { margin-top: 1.6vw; }
.ct-addr { font-style: normal; }
.chero .contact-form { max-width: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2vw; }
.chero .field { margin-bottom: 1.3vw; }
.chero .field textarea { min-height: 7vw; }
.ct-req { color: var(--quiet); font-weight: 400; font-size: .85em; margin-left: .4em; }

/* the tabs: the news filter's button, a pair of them */
.ct-tabs { display: flex; flex-wrap: wrap; gap: .5vw; margin: 0 0 2.4vw; }
.ct-tabs[hidden] { display: none; }
.ct-tab { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: max(2.5vw, 44px); padding: 0 1.5vw;
  font: inherit; font-size: 1.25vw; font-weight: 500; letter-spacing: -.01em; line-height: 1; color: var(--navy); background: transparent;
  border: 1px solid rgba(11, 35, 64, .35); border-radius: 0; cursor: pointer;
  transition: background-color .4s var(--p2-out), color .4s var(--p2-out), border-color .4s var(--p2-out); }
.ct-tab:hover { border-color: var(--navy); }
.ct-tab[aria-pressed="true"] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.ct-tab:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.field[hidden] { display: none; }      /* the mode toggle hides the other mode's fields (contact.js) */
/* the map's land picture is pale on pale: let the paper show through it (the gate reads a white-backed image at phone width) */
.where .amap__land { mix-blend-mode: multiply; }

/* the select: the inputs' bottom-rule style, their blue-ink arrow */
.field select { width: 100%; font: inherit; font-size: 1.25vw; line-height: 1.3; color: var(--navy); border: 0; border-bottom: 1px solid var(--quiet); border-radius: 0;
  padding: .6vw 1.8vw .6vw 0; min-height: max(2.917vw, 44px); appearance: none; -webkit-appearance: none; cursor: pointer;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230b2340' stroke-width='1.4'/></svg>") right .2vw center / .9vw no-repeat; }
.field select:focus { border-bottom-color: var(--navy); }
.field select:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* the consent box: inner.css's `.field input` (full width, bottom rule) out-ranks `.check__in`, which drew the box as a long line; this restores the box */
.field--check .check__in { width: max(1.667vw, 24px); height: max(1.667vw, 24px); min-height: 0; padding: 0; margin: .1vw 0 0; border: 1px solid var(--navy); }
.field--check .check__in:checked { background: var(--navy) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M2.5 7.4 5.6 10.4 11.5 3.8' fill='none' stroke='%23f3f5f8' stroke-width='1.6'/></svg>") center / 70% no-repeat; }
.field--check .check__in[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.field--check .check__in:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

@media (max-width: 1100px) {
  .chero { padding: calc(var(--head-h) + min(8vw, 32px)) 0 min(8vw, 32px); }
  .chero__row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "form" "side"; gap: min(8vw, 32px); padding: 0 var(--pad-x); }
  .chero__lead { gap: min(5vw, 20px); }
  .chero__intro { max-width: min(86vw, 340px); padding-left: 5vw; }
  .chero__form { padding-top: 0; }
  .chero__side { gap: min(2vw, 8px); align-self: start; }
  .chero__in { margin-top: min(5vw, 20px); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .chero .field { margin-bottom: min(6vw, 24px); }
  .chero .field textarea { min-height: min(32vw, 128px); }
  .ct-tabs { gap: min(2vw, 8px); margin-bottom: min(6vw, 24px); }
  .ct-tab { min-height: 44px; padding: 0 min(4vw, 16px); font-size: min(4.2vw, 16.6px); }
  .field select { font-size: max(16px, 4.2vw); padding: min(2vw, 8px) min(7vw, 28px) min(2vw, 8px) 0; background-size: 14px; background-position: right 2px center; }
}
