/* ═══════════════════════════════════════════════════════════════
   contact-redesign.css – egettryck.se /kontakt
   Approved mockup variant B (2026-09-11): the catalog's language —
   cream panel var(--eg-stamp), terracotta Poppins heading (#7b4508,
   same as catalog-redesign.css / egstartpage hero), white tiles,
   pill chips, dark pill button. Palette --eg-* from header-redesign.css.
   Loaded only from themes/egettryckse/templates/contact.tpl; every
   selector is scoped to .eg-ct / .eg-cf or body#contact.
   Root font-size is 10px (theme), so 1rem = 10px.
   Bump ?v=N in contact.tpl on every edit.
═══════════════════════════════════════════════════════════════ */

/* ─── FLATTEN THE THEME'S SCAFFOLDING ───────────────────────────
   Same idea as info-page-redesign.css: .container.no-index > .row >
   #content-wrapper adds offsets; our wrap sets the 1200px/15px grid
   that the breadcrumb and header use. */
body#contact .container.no-index {
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
body#contact .container.no-index > .row {
  margin-left: 0;
  margin-right: 0;
}
body#contact #content-wrapper {
  float: none;
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-left: 0;
  padding-right: 0;
}

.eg-ct {
  background: var(--eg-canvas, #f9f8f6);
  padding: 6px 0 60px;
  margin: 0;
  color: var(--eg-ink, #1a1a1a);
}
.eg-ct__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  gap: 22px;
}
.eg-ct h1,
.eg-ct h2,
.eg-ct h3 {
  text-transform: none;
  letter-spacing: 0;
}

/* ─── 1. INTRO PANEL + CONTACT TILES ────────────────────────────── */
.eg-ct__panel {
  background: var(--eg-stamp, #f0ece4);
  border-radius: 18px;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 28px;
  align-items: end;
}
.eg-ct__title {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif !important;
  font-weight: 800 !important;
  font-size: 3rem !important;
  line-height: 1.15;
  color: #7b4508 !important;
}
.eg-ct__lead {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.65;
  color: #4c463c;
  max-width: 46ch;
}
.eg-ct__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.eg-ct-tile {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px 16px 14px;
  display: grid;
  gap: 4px;
  align-content: start;
  color: var(--eg-ink, #1a1a1a);
  text-decoration: none;
  transition: border-color .15s;
}
.eg-ct-tile:hover,
.eg-ct-tile:focus {
  border-color: var(--eg-border, #e2ddd8);
  color: var(--eg-ink, #1a1a1a);
  text-decoration: none;
}
.eg-ct-tile__k {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--eg-muted, #6b6a63);
}
.eg-ct-tile__v {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.eg-ct-tile__s {
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--eg-muted, #6b6a63);
}
.eg-ct-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.eg-ct-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.eg-ct-status.is-open {
  color: var(--eg-green, #2e7d5c);
  background: var(--eg-green-bg, #eef4f0);
}
.eg-ct-status.is-closed {
  color: var(--eg-muted, #6b6a63);
  background: #efece7;
}

/* ─── 2. HELP COLUMN + FORM CARD ────────────────────────────────── */
.eg-ct__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: 22px;
  align-items: start;
}
.eg-ct__help {
  padding: 6px 4px;
}
.eg-ct__help h2 {
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--eg-ink, #1a1a1a);
}
.eg-ct__help ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.eg-ct__help li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #3d3a35;
}
.eg-ct__help li::before {
  content: "✓";
  font-weight: 700;
  color: var(--eg-green, #2e7d5c);
}
.eg-ct__note {
  background: #fff;
  border: 1px solid var(--eg-border, #e2ddd8);
  border-radius: 14px;
  padding: 16px;
  font-size: 1.35rem;
  line-height: 1.55;
  color: #3d3a35;
}
.eg-ct__note b {
  display: block;
  margin-bottom: 4px;
  color: var(--eg-ink, #1a1a1a);
}
.eg-ct__form {
  background: #fff;
  border: 1px solid var(--eg-border, #e2ddd8);
  border-radius: 18px;
  padding: 30px 32px;
}
.eg-ct__h2 {
  margin: 0 0 4px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--eg-ink, #1a1a1a);
}
.eg-ct__sub {
  margin: 0 0 22px;
  font-size: 1.4rem;
  line-height: 1.55;
  color: var(--eg-muted, #6b6a63);
}

/* ─── 3. FORM (module widget) ───────────────────────────────────── */
.eg-cf {
  display: grid;
  gap: 18px;
  margin: 0;
}
.eg-cf__subjects {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.eg-cf__legend {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  width: auto;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--eg-muted, #6b6a63);
}
.eg-cf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.eg-cf-chip {
  position: relative;
  margin: 0;
  font-weight: 400;
}
.eg-cf-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.eg-cf-chip span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--eg-border, #e2ddd8);
  border-radius: 99px;
  background: #fff;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--eg-ink, #1a1a1a);
  transition: background .15s, border-color .15s;
}
.eg-cf-chip input:checked + span {
  background: var(--eg-ink, #1a1a1a);
  border-color: var(--eg-ink, #1a1a1a);
  color: #fff;
}
.eg-cf-chip input:focus-visible + span {
  outline: 2px solid #7b4508;
  outline-offset: 2px;
}
.eg-cf__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.eg-cf-fld {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.eg-cf-fld label,
.eg-cf-fld__lbl {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--eg-ink, #1a1a1a);
}
.eg-cf-fld i {
  font-style: normal;
  font-weight: 400;
  color: var(--eg-muted, #6b6a63);
}
.eg-cf-fld input,
.eg-cf-fld select,
.eg-cf-fld textarea {
  width: 100%;
  height: auto;
  border: 1px solid var(--eg-border, #e2ddd8) !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 12px 14px;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--eg-ink, #1a1a1a);
  box-shadow: none;
}
.eg-cf-fld textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}
.eg-cf-fld input:focus,
.eg-cf-fld select:focus,
.eg-cf-fld textarea:focus {
  outline: none;
  border-color: #7b4508 !important;
  box-shadow: 0 0 0 3px rgba(123, 69, 8, .12);
}
.eg-cf-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  border: 1.5px dashed #cfc5b8;
  border-radius: 12px;
  background: var(--eg-canvas, #f9f8f6);
  cursor: pointer;
  font-weight: 400;
}
.eg-cf-drop:hover,
.eg-cf-drop:focus-within {
  border-color: #7b4508;
}
.eg-cf-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0 !important;
  padding: 0;
}
.eg-cf-drop__ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--eg-border, #e2ddd8);
  border-radius: 10px;
  background: #fff;
  color: #7b4508;
}
.eg-cf-drop__txt {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.eg-cf-drop__txt b {
  font-size: 1.4rem;
  color: var(--eg-ink, #1a1a1a);
}
.eg-cf-drop__hint {
  font-size: 1.2rem;
  color: var(--eg-muted, #6b6a63);
}
.eg-cf-drop__file {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--eg-green, #2e7d5c);
  overflow-wrap: anywhere;
}
.eg-cf-drop__file:empty {
  display: none;
}
.eg-cf-drop__file.is-error {
  color: #b3261e;
}
/* Module honeypot: off-screen, not display:none (some bots skip hidden). */
.eg-cf__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.eg-cf__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.eg-cf__legal {
  margin: 0;
  max-width: 44ch;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--eg-muted, #6b6a63);
}
.eg-cf__legal a,
.eg-ct__lnk {
  color: #8c4e08;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(140, 78, 8, .35);
  text-underline-offset: 3px;
}
.eg-cf__legal a:hover,
.eg-ct__lnk:hover {
  color: #8c4e08;
  text-decoration-color: currentColor;
}
.eg-cf__btn {
  border: 0;
  border-radius: 99px;
  background: var(--eg-ink, #1a1a1a);
  color: #fff;
  padding: 14px 28px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.eg-cf__btn:hover {
  opacity: .9;
}
.eg-cf__btn:disabled {
  opacity: .6;
  cursor: progress;
}
.eg-cf-err {
  border: 1px solid #f1c3bf;
  background: #fdf1f0;
  border-radius: 12px;
  padding: 14px 16px;
  color: #8a1f17;
  font-size: 1.4rem;
  line-height: 1.5;
}
.eg-cf-err ul {
  margin: 0;
  padding-left: 18px;
}
.eg-cf-ok {
  border: 1px solid var(--eg-green-bd, #bcd8cb);
  background: var(--eg-green-bg, #eef4f0);
  border-radius: 14px;
  padding: 22px;
}
.eg-cf-ok h3 {
  margin: 0 0 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--eg-green, #2e7d5c);
}
.eg-cf-ok p {
  margin: 0 0 6px;
  font-size: 1.45rem;
  line-height: 1.55;
  color: var(--eg-ink, #1a1a1a);
}

/* ─── 4. ADDRESS + MAP ──────────────────────────────────────────── */
.eg-ct__visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  background: #fff;
  border: 1px solid var(--eg-border, #e2ddd8);
  border-radius: 18px;
  overflow: hidden;
  scroll-margin-top: 90px;
}
.eg-ct__addr {
  padding: 26px 28px;
  display: grid;
  gap: 6px;
  align-content: center;
}
.eg-ct__addr h2 {
  margin: 0 0 4px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--eg-ink, #1a1a1a);
}
.eg-ct__addr p {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.6;
  color: var(--eg-ink, #1a1a1a);
}
.eg-ct-map {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 62% 48%, rgba(46, 125, 92, .18) 0 60px, transparent 61px),
    linear-gradient(118deg, transparent 46%, #fff 46.3%, #fff 48.6%, transparent 49%),
    linear-gradient(28deg, transparent 60%, #fff 60.3%, #fff 61.8%, transparent 62%),
    linear-gradient(90deg, transparent 22%, #f6f3ee 22.2%, #f6f3ee 23.4%, transparent 23.6%),
    repeating-linear-gradient(0deg, #e8e3da 0 38px, #e3ddd3 38px 39px),
    #e8e3da;
}
.eg-ct-map__pin {
  position: absolute;
  left: 62%;
  top: 48%;
  width: 26px;
  height: 26px;
  margin: -26px 0 0 -13px;
  border-radius: 50% 50% 50% 0;
  background: #7b4508;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}
.eg-ct-map__pin::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}
.eg-ct-map__cta {
  position: relative;
  z-index: 1;
  max-width: 280px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 18px rgba(40, 30, 20, .12);
}
.eg-ct-map__cta button {
  border: 0;
  border-radius: 99px;
  background: var(--eg-ink, #1a1a1a);
  color: #fff;
  padding: 9px 18px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}
.eg-ct-map__cta p {
  margin: 8px 0 0;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--eg-muted, #6b6a63);
}
.eg-ct-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}
.eg-ct-map.is-loaded .eg-ct-map__cta,
.eg-ct-map.is-loaded .eg-ct-map__pin {
  display: none;
}
.eg-ct__co {
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
  color: var(--eg-muted, #6b6a63);
}

/* ─── MOBILE / TABLET ───────────────────────────────────────────── */
@media (max-width: 1199px) {
  .eg-ct__panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .eg-ct {
    padding: 4px 0 40px;
  }
  .eg-ct__wrap {
    padding: 0 12px;
    gap: 16px;
  }
  .eg-ct__panel {
    padding: 22px 18px;
    gap: 18px;
  }
  .eg-ct__title {
    font-size: 2.6rem !important;
  }
  .eg-ct__tiles {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .eg-ct-tile {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .eg-ct-tile__s {
    grid-column: 1 / -1;
  }
  .eg-ct__main {
    grid-template-columns: 1fr;
  }
  .eg-ct__help {
    order: 2;
  }
  .eg-ct__form {
    padding: 22px 18px;
  }
  .eg-cf__row {
    grid-template-columns: 1fr;
  }
  .eg-cf__btn {
    width: 100%;
  }
  .eg-ct__visit {
    grid-template-columns: 1fr;
  }
  .eg-ct__addr {
    padding: 20px 18px;
  }
  .eg-ct-map {
    min-height: 240px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eg-ct-tile,
  .eg-cf-chip span,
  .eg-cf__btn {
    transition: none;
  }
}

/* ─── 5. SITE FOOTER ON THIS PAGE ONLY ──────────────────────────────
   The footer's first row is a "Ring oss / Mailadress / Adress" strip —
   on /kontakt it repeats the tiles right above it. The footer also
   starts with an 85px white top margin that left a blank band under
   our canvas-coloured section. */
body#contact footer.footer-two {
  margin-top: 0;
}
body#contact footer.footer-two .inner-footer > .container > .row > .nov-row:first-child {
  display: none;
}
