/* ============================================================
   Bygglund: kontakt.css (22.11.2026). The contact section after Sverre's picture of it: «prøv å etterlikn dette
   kontaktskjemaet for bygglund ... velge mellom 4 bilder av et og samme prosjekt. man kan velge mellom også kommer det opp som
   det store bildet. pass på at kontaktskjemaet har riktig innhold og har en enkel progress bar».
   Two columns that share top and bottom on a cool light ground: on the left one large rounded photo with the review mark at
   its top and three proofs on a dark glass strip at its foot, and under it a real review beside four small photos of the same
   job; on the right the form in a white rounded card. The form's own parts (.hf-*: tiles, fields, buttons, the bar) are in
   hero.css, where the card in the hero has them from; here they only get the room this larger card has.
   Under 900 px the form comes first and the photo after it. No motion but the page's own reveal and the photo's cross-fade.
   ============================================================ */

/* the sizes follow the window's height too (svh), so the whole section fits one screen under the menu in Sverre's windows */
.kontakt.kt { --flate: var(--kt-flate); padding-block: clamp(1.75rem, 5svh, 5.5rem); }
.kt-rad { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr); gap: clamp(1.5rem, 2.6vw, 2.6rem); align-items: stretch; }

/* ---------- the photo ---------- */
.kt-venstre { display: flex; flex-direction: column; gap: clamp(1rem, 1.8vw, 1.6rem); min-width: 0; }
.kt-stor { position: relative; flex: 1; min-height: clamp(18rem, 30vw, 36rem); margin: 0; border-radius: var(--radius-bilde); overflow: hidden; background: var(--betong); }
.kt-stor > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.17s linear; }
.kt-stor > img.bytter { opacity: 0; }

.kt-omtale {
  position: absolute; top: clamp(0.9rem, 1.8vw, 1.6rem); left: clamp(0.9rem, 1.8vw, 1.6rem);
  display: grid; gap: 0.1rem; padding: 0.7rem 1.35rem 0.75rem; border-radius: var(--radius-pille);
  background: var(--hvit); color: var(--hf-tekst); text-decoration: none; box-shadow: 0 14px 34px -16px var(--hf-skygge);
  transition: transform 0.25s var(--mykt);
  --fokus: var(--hf-valgt);
}
.kt-omtale:hover { transform: translateY(-2px); }
.kt-omtale-topp { display: flex; align-items: center; gap: 0.6rem; }
.kt-omtale-topp strong { font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.kt-omtale-topp svg { display: block; width: 6.2rem; height: auto; fill: var(--stjerne); }
.kt-omtale-under { font-size: 0.95rem; color: var(--hf-tekst-2); white-space: nowrap; }

.kt-bevis {
  position: absolute; left: clamp(0.9rem, 1.8vw, 1.6rem); bottom: clamp(0.9rem, 1.8vw, 1.6rem); max-width: calc(100% - 2 * clamp(0.9rem, 1.8vw, 1.6rem));
  display: flex; margin: 0; padding: clamp(0.8rem, 1.3vw, 1.15rem) 0; list-style: none; border-radius: var(--radius-kort);
  background: var(--kt-glass); color: var(--hvit);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
}
.kt-bevis li {
  display: grid; justify-items: center; gap: 0.45rem; padding: 0 clamp(0.9rem, 1.7vw, 1.75rem); border-left: 1px solid var(--hero-strek);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem); font-weight: 500; line-height: 1.2; text-align: center;
}
.kt-bevis li:first-child { border-left: 0; }
.kt-bevis li span { max-width: 8.5em; }
.kt-bevis svg { width: clamp(1.7rem, 2.4vw, 2.2rem); height: clamp(1.7rem, 2.4vw, 2.2rem); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the review and the four small photos ---------- */
.kt-under { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.kt-sitat { position: relative; flex: 1; min-width: 0; margin: 0; padding-left: 1.5rem; color: var(--hf-tekst); }
.kt-sitat::before { content: "\201C"; position: absolute; left: -0.1rem; top: -0.55rem; font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--hf-tekst); }
.kt-sitat blockquote { margin: 0; }
.kt-sitat p { margin: 0; font-size: clamp(1.0625rem, 1.22vw, 1.18rem); line-height: 1.35; }
.kt-sitat figcaption { margin-top: 0.45rem; font-size: 0.95rem; color: var(--hf-tekst-2); }
.kt-mini { flex: none; display: flex; gap: clamp(0.4rem, 0.7vw, 0.65rem); margin: 0; padding: 0 0 0 clamp(1rem, 2vw, 1.9rem); list-style: none; border-left: 1px solid var(--linje-sterk); }
.kt-mini a {
  display: block; width: clamp(3.2rem, 4.5vw, 4.4rem); aspect-ratio: 1 / 0.9; border-radius: var(--radius-flis); overflow: hidden;
  outline: 2px solid transparent; outline-offset: 2px; opacity: 0.82;
  transition: opacity 0.2s var(--mykt), outline-color 0.2s var(--mykt), transform 0.2s var(--mykt);
}
.kt-mini a:hover { opacity: 1; transform: translateY(-2px); }
.kt-mini a[aria-pressed="true"] { opacity: 1; outline-color: var(--hf-valgt); }
.kt-mini a:focus-visible { outline-color: var(--hf-tekst); opacity: 1; }
.kt-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- the form card: the hero card's parts with the room this card has ---------- */
.hf.kt-skjema {
  display: flex; flex-direction: column; margin: 0;
  padding: clamp(1.3rem, 3.6svh, 2.6rem) clamp(1.2rem, 2.3vw, 2.4rem) clamp(0.9rem, 2.4svh, 1.8rem);
  border-radius: var(--radius-bilde); background: var(--hvit);
  box-shadow: 0 30px 70px -40px var(--kt-skygge), 0 0 0 1px var(--hf-kant);
  scroll-margin-top: calc(var(--meny-h) + 1rem);
}
html.js-anim .hf.kt-skjema { animation: none; }
.hf.kt-skjema { width: auto; max-width: none; }
/* the numbered steps of Sverre's picture: a round number, the step's word and a line under each. The step one is on is dark and
   carries its whole question; the ones behind it keep the filled number. The plain bar under it is for screen readers only */
.kt-steg { display: flex; align-items: stretch; gap: clamp(1.5rem, 2.5vw, 2.3rem); margin: 0; padding: 0; list-style: none; font-size: clamp(0.8rem, 0.95vw, 0.9rem); color: var(--hf-dempet); }
.kt-steg li { position: relative; display: flex; align-items: center; gap: 0.55rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--hf-kant); white-space: nowrap; transition: color 0.3s var(--mykt), border-color 0.3s var(--mykt); }
.kt-steg li + li::before { content: ""; position: absolute; top: calc(50% - 0.35rem); left: calc(-1 * clamp(1.5rem, 2.5vw, 2.3rem) + 0.45rem); width: calc(clamp(1.5rem, 2.5vw, 2.3rem) - 0.9rem); height: 1.5px; background: var(--hf-kant-sterk); }
.kt-steg b {
  flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1.5px solid var(--hf-kant-sterk); border-radius: 50%;
  font-size: 0.9rem; font-weight: 600; color: var(--hf-tekst); transition: background-color 0.3s var(--mykt), border-color 0.3s var(--mykt), color 0.3s var(--mykt);
}
.kt-steg .lang { display: none; }
.kt-steg { min-width: 0; }
/* the step one is on may break its question over two lines, so the row never leaves the card (a phone, English) */
.kt-steg .er-na { color: var(--hf-tekst); border-bottom-color: var(--hf-tekst); font-weight: 500; min-width: 0; flex: 0 1 auto; white-space: normal; line-height: 1.2; }
.kt-steg .er-na .lang { display: inline; }
.kt-steg .er-na .kort { display: none; }
.kt-steg .er-ferdig { border-bottom-color: var(--hf-kant-sterk); }
.kt-steg .er-na b, .kt-steg .er-ferdig b { background: var(--hf-knapp); border-color: var(--hf-knapp); color: var(--hvit); }
.kt-skjema .hf-fremdrift { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* the questions stand in the steps at the top, so the legends are for screen readers; without the script every step shows
   under each other and the legends are the questions */
.kt-skjema .hf-steg + .hf-steg { margin-top: 1.5rem; }
html.js:not(.hf-uten) .kt-skjema legend.hf-tittel { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kt-tittel { margin: clamp(0.9rem, 2.2svh, 1.75rem) 0 0; font-size: clamp(2rem, min(3.6vw, 6.4svh), 3.4rem); font-weight: 600; letter-spacing: -0.028em; line-height: 1.04; color: var(--hf-tekst); }
.kt-ingress { margin: clamp(0.4rem, 1.1svh, 0.7rem) 0 0; font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.45; color: var(--hf-tekst-2); }
.kt-skjema .hf-kropp { flex: 1; margin-top: clamp(0.85rem, 2svh, 1.6rem); }
.kt-skjema .hf-tittel { padding: 0; font-size: clamp(1.15rem, 1.5vw, 1.35rem); letter-spacing: -0.01em; }
.kt-skjema .hf-fliser { gap: clamp(0.5rem, 1.3svh, 0.95rem) clamp(0.6rem, 1vw, 0.95rem); margin-top: 0; }
.kt-skjema .hf-flis { background: var(--hf-flate); min-height: clamp(46px, 7svh, 72px); gap: clamp(0.6rem, 1vw, 1rem); padding: 0 clamp(0.7rem, 1.1vw, 1.1rem) 0 clamp(0.8rem, 1.3vw, 1.35rem); font-size: clamp(1rem, 1.2vw, 1.14rem); }
.kt-skjema .hf-flis svg { width: clamp(1.6rem, 2.2vw, 2.1rem); height: clamp(1.6rem, 2.2vw, 2.1rem); }
.kt-skjema .hf-flis i { right: clamp(0.6rem, 1vw, 1rem); width: 1.5rem; height: 1.5rem; margin-top: -0.75rem; }
.kt-skjema .hf-bred { grid-column: 1 / -1; }
.kt-skjema .hf-flis > span { hyphens: manual; }
.kt-skjema .hf-felt { margin-top: clamp(0.45rem, 1.1svh, 1rem); }
.kt-skjema .hf-steg > .hf-to:first-of-type .hf-felt, .kt-skjema .hf-steg > .hf-felt:first-of-type { margin-top: 0; }
.kt-skjema .hf-felt input, .kt-skjema .hf-felt textarea, .kt-skjema .bilder-knapp { background: var(--hf-flate); }
.kt-skjema .hf-felt input { min-height: clamp(44px, 6svh, 54px); }
.kt-skjema .bilder-knapp { min-height: clamp(40px, 5.4svh, 50px); }
.kt-skjema .hf-to { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(0.6rem, 1vw, 0.95rem); }
.kt-skjema .hf-felt textarea { min-height: clamp(3.8rem, 8.4svh, 7rem); max-height: 22rem; }
.kt-skjema .hf-fot { margin-top: clamp(0.8rem, 2svh, 1.5rem); }
.kt-skjema .hf-neste, .kt-skjema .hf-tilbake { min-height: clamp(50px, 7svh, 66px); font-size: clamp(1.08rem, 1.3vw, 1.2rem); }
.kt-skjema .hf-tilbake { width: clamp(50px, 7svh, 66px); }
.kt-skjema .hf-takk { flex: 1; min-height: 18rem; }

/* the foot of the card: the line about the details, centred under the button as in the picture */
.kt-skjema .hf-trygg { margin-top: clamp(0.6rem, 1.6svh, 1.1rem); font-size: 0.95rem; }

/* ---------- narrower screens ---------- */
/* where the card is narrower only the step one is on carries words */
@media (max-width: 1299px) {
  .kt-steg { gap: 1.4rem; }
  .kt-steg li + li::before { left: -1rem; width: 0.6rem; }
  .kt-steg .kort { display: none; }
  .kt-steg .er-na { flex: 1; }
}
@media (max-width: 1199px) {
  .kt-under { flex-direction: column; align-items: stretch; }
  .kt-mini { padding-left: 0; border-left: 0; }
  .kt-mini li { flex: 1; }
  .kt-mini a { width: 100%; }
}
@media (max-width: 899px) {
  .kt-rad { grid-template-columns: minmax(0, 1fr); }
  .kt-skjema { order: -1; }
  .kt-stor { flex: none; min-height: 0; aspect-ratio: 1 / 1; }
  .kt-bevis li { padding-inline: clamp(0.6rem, 3vw, 1.2rem); font-size: 0.9rem; }
  .kt-skjema .hf-flis { min-height: 56px; }
  .kt-skjema .hf-neste, .kt-skjema .hf-tilbake { min-height: 56px; }
  .kt-skjema .hf-tilbake { width: 56px; }
  .kontakt.kt { padding-block: clamp(2rem, 7vw, 3.5rem); }
}
@media (max-width: 479px) {
  .kt-omtale { padding: 0.55rem 1.05rem 0.6rem; }
  .kt-omtale-topp strong { font-size: 1.05rem; }
  .kt-omtale-topp svg { width: 5.2rem; }
  .kt-bevis { right: clamp(0.9rem, 1.8vw, 1.6rem); justify-content: space-between; }
  .kt-bevis li { flex: 1; padding-inline: 0.4rem; font-size: 0.82rem; }
  .kt-skjema .hf-fliser { gap: 0.5rem; }
  .kt-skjema .hf-flis { padding: 0 0.55rem 0 0.65rem; gap: 0.5rem; font-size: 0.94rem; }
  .kt-skjema .hf-flis svg { width: 1.4rem; height: 1.4rem; }
  .kt-skjema .hf-flis i { right: 0.45rem; width: 1.15rem; height: 1.15rem; margin-top: -0.575rem; }
  .kt-skjema .hf-to { grid-template-columns: minmax(0, 1fr); }
  .kt-skjema .hf-steg > .hf-to .hf-felt + .hf-felt { margin-top: 0.7rem; }
  .kt-steg { gap: 1rem; font-size: 0.8rem; }
  .kt-steg li + li::before { left: -0.75rem; width: 0.5rem; }
  .kt-steg b { width: 1.6rem; height: 1.6rem; }
}
@media (max-width: 359px) {
  .hf.kt-skjema { padding-inline: 0.85rem; }
  .kt-skjema .hf-flis { gap: 0.4rem; padding: 0 0.4rem 0 0.5rem; font-size: 0.86rem; }
  .kt-skjema .hf-flis svg { width: 1.15rem; height: 1.15rem; }
  .kt-tittel { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kt-stor > img, .kt-mini a, .kt-omtale { transition: none; }
}
