/* Contact / offerte (page-contact.php) */
.tpl-contact {
  .hero { padding: 0; min-height: 480px; height: min(clamp(560px, 58.3vw, 840px), calc(100svh - 128px)); display: flex; align-items: flex-end; }
  .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--coal); }
  .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(15 16 17 / 0.9) 0%, rgb(15 16 17 / 0.5) 55%, rgb(15 16 17 / 0.15) 100%); }
  .hero__text { position: relative; z-index: 1; padding: 0 var(--gutter) calc(var(--diag) * 0.4 + 24px); }
  .hero h1 { font-size: clamp(2.5rem, 10.28vw, 9.25rem); margin-bottom: clamp(16px, 2.2vw, 32px); }
  .hero p { font-size: clamp(1rem, 1.4vw, 1.25rem); max-width: 600px; text-wrap: pretty; }

  .body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 120px; align-items: start; }
  form, .success { display: flex; flex-direction: column; gap: 28px; }
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.16em; color: var(--mute-ink); margin-bottom: 12px; }
  form h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 0.95; }

  .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
  .field > .mono, legend.mono { font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--mute-ink); padding: 0; }
  legend.mono { margin-bottom: 8px; }
  input:not([type]), input[type='email'], input[type='tel'], textarea {
    height: 56px;
    padding: 0 16px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgb(15 16 17 / 0.25);
    border-radius: 0;
    transition: border-color var(--t-fast) var(--ease);
  }
  input:hover, textarea:hover { border-color: rgb(15 16 17 / 0.5); }
  input:focus, textarea:focus { border-color: var(--ink); }
  textarea { height: 168px; padding: 16px; line-height: 1.5; resize: vertical; }
  ::placeholder { color: #8a8984; }

  .is-error { --err: #c5221f; }
  .is-error > .mono, .is-error legend, .msg { color: var(--err, #c5221f); }
  .is-error input:not([type='radio']), .is-error textarea { border: 2px solid var(--err); }
  .msg { font-size: 0.875rem; }
  .banner { display: flex; gap: 14px; align-items: center; padding: 16px 20px; background: #fff; border: 2px solid #c5221f; color: #c5221f; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; animation: rise var(--t) var(--ease) both; }
  .banner span { flex: none; width: 22px; height: 22px; display: grid; place-items: center; background: #c5221f; color: #fff; }

  .choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .choice { position: relative; height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 8px; font-size: 0.75rem; background: #fff; border: 1px solid rgb(15 16 17 / 0.25); cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), scale var(--t-fast) var(--ease); }
  .choice:hover { border-color: var(--accent); }
  .choice:active { scale: 0.96; }
  .choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .choice__dot { flex: none; width: 10px; height: 10px; background: var(--accent); }
  .choice:has(:checked) { background: var(--accent); border-color: var(--accent); font-weight: 500; }
  .choice:has(:checked) .choice__dot { width: auto; height: auto; background: none; }
  .choice:has(:checked) .choice__dot::before { content: '✓'; }
  .choice:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

  .drop { position: relative; display: flex; gap: 20px; align-items: center; padding: 24px; background: #fff; border: 1px dashed rgb(15 16 17 / 0.45); transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
  .drop:hover { border-color: var(--ink); }
  .drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
  .drop:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
  .drop__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 1.125rem; }
  .drop__title { display: block; margin-bottom: 6px; }
  .drop__hint { display: block; font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--mute-ink); }
  .drop__file { display: block; margin-top: 8px; font-size: 0.9375rem; font-weight: 500; overflow-wrap: anywhere; }
  .drop__file:empty { display: none; }
  .drop__clear { position: relative; z-index: 1; flex: none; margin-left: auto; min-height: 44px; padding: 0 8px; background: none; border: 0; font-size: 1rem; color: var(--mute-ink); cursor: pointer; }

  .actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
  .note { font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--mute-ink); }

  .success h2 { font-size: clamp(2rem, 3.9vw, 3.5rem); line-height: 0.95; }
  .success__label { display: flex; gap: 14px; align-items: center; font-size: 0.75rem; letter-spacing: 0.16em; }
  .success__mark { width: 40px; height: 12px; background: var(--duurzaam); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
  .success__text { font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.6; max-width: 52ch; }
  .success__text a { text-decoration: underline; }

  .rows { margin: 0; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; }
  .rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgb(15 16 17 / 0.2); }
  .rows > div:first-child { border-top: 2px solid var(--ink); }
  .rows > div:last-child { border-bottom: 2px solid var(--ink); }
  .rows dt { color: var(--mute-ink); text-transform: uppercase; }
  .rows dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
  .rows__branche { text-transform: uppercase; font-weight: 500; }
  .rows--stacked > div { flex-direction: column; gap: 6px; }
  .rows--stacked dt { font-size: 0.6875rem; }
  .rows--stacked dd { text-align: left; font-weight: 500; letter-spacing: 0.08em; }
  .rows--stacked > div:last-child { border-bottom: 0; }

  aside { display: flex; flex-direction: column; gap: 36px; align-items: flex-start; }
  aside > * { width: 100%; }
  aside > .link { width: auto; }
  .aside__name { font-size: clamp(1.375rem, 1.8vw, 1.625rem); line-height: 1; margin-bottom: 14px; }
  .aside__address { font-size: 1.0625rem; line-height: 1.6; }
  .aside__phone { font-size: 1.125rem; }

  @media (max-width: 900px) {
    .body { grid-template-columns: 1fr; gap: 64px; }
    form, .success { gap: 22px; }
    .grid { grid-template-columns: 1fr; gap: 20px; }
    textarea { height: 140px; }
    .hero { height: min(clamp(560px, 58.3vw, 840px), calc(100svh - 64px)); }
  }
}
