/* Reusable blocks saved inside data-richtext. Kept deliberately neutral so
   designer typography still controls the actual text. */
.home-extra:empty { display: none; }
.home-extra:not(:empty) { margin-block: 24px; }

[data-richtext] .cms-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 20px;
  border: 1px solid var(--line, #d7e0df);
  border-radius: 8px;
  overscroll-behavior-inline: contain;
}
.cms-table-scroll:focus-visible { outline: 3px solid #bc8800; outline-offset: 3px; }
[data-richtext] table[data-rich-table] {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
[data-richtext] table[data-rich-table] th,
[data-richtext] table[data-rich-table] td {
  min-width: 100px;
  padding: 12px 14px;
  border: 1px solid var(--line, #d7e0df);
  text-align: left;
  vertical-align: top;
}
[data-richtext] table[data-rich-table] th {
  background: #edf4f0;
  color: #123e32;
  font-weight: 700;
}
[data-richtext] table[data-rich-table] caption {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
}
@media print {
  [data-richtext] .cms-table-scroll { overflow: visible; }
  [data-richtext] table[data-rich-table] { min-width: 0; table-layout: fixed; overflow-wrap: anywhere; }
}

.sveden-content a.button.yellow,
.sveden-content a.button.yellow:hover { color: #133b2c; }
.sveden-content a.button.outline,
.sveden-content a.button.outline:hover { color: var(--green); }

[data-richtext] > [data-rich-columns] {
  display: grid;
  width: 100%;
  max-width: 100%;
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
  margin-block: 1.5em;
}

[data-richtext] > [data-rich-columns="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-richtext] > [data-rich-columns="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

[data-richtext] > [data-rich-columns] > [data-rich-column] {
  min-width: 0;
  overflow-wrap: anywhere;
}

[data-richtext] > [data-rich-columns] > [data-rich-column] > :first-child {
  margin-top: 0 !important;
}

[data-richtext] > [data-rich-columns] > [data-rich-column] > :last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 720px) {
  [data-richtext] > [data-rich-columns] {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

.contact-form-section {
  padding-block: 0 64px;
}

.contact-form-card {
  max-width: 960px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7faf7;
  box-shadow: 0 16px 50px rgba(7, 60, 50, 0.08);
}

.contact-form-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.contact-form-head h2 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
}

.contact-form-head p:last-child {
  color: var(--muted);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-form-grid label,
.cta-file-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  font-weight: 700;
}

.contact-form-grid label > span,
.cta-file-label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.contact-form-wide {
  grid-column: 1 / -1;
}

.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.contact-form textarea {
  width: 100%;
  border: 1px solid #8aa198;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  min-height: 48px;
  padding: 10px 13px;
}

.contact-form textarea {
  min-height: 170px;
  padding: 13px;
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid #bc8800;
  outline-offset: 3px;
}

.contact-form-consent {
  display: flex;
  max-width: 780px;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: 0 0 auto;
}

.contact-form-consent a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-file-field,
.cta-captcha {
  max-width: 780px;
  margin: 22px 0;
}

.cta-file-input {
  max-width: 100%;
  padding: 10px;
  border: 1px dashed #77938a;
  border-radius: 9px;
  background: #fff;
}

.cta-field-hint,
.cta-file-name {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.cta-captcha {
  padding: 18px;
  border: 1px solid #cbd9d3;
  border-radius: 12px;
  background: #fff;
}

.cta-captcha-title {
  padding: 0 6px;
  font-size: 16px;
  font-weight: 800;
}

.cta-captcha-prompt {
  margin-bottom: 12px;
}

.cta-captcha-bricks,
.cta-captcha-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cta-captcha-bricks {
  min-height: 34px;
  margin-bottom: 13px;
}

.cta-captcha-brick {
  width: 44px;
  height: 24px;
  border: 2px solid #934a25;
  border-radius: 3px;
  background: #c96b3b;
  box-shadow: inset 0 0 0 2px #e9a17b;
}

.cta-captcha-option {
  display: inline-flex;
  min-width: 58px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #77938a;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
}

.cta-captcha-option:has(input:checked) {
  border-color: var(--green);
  background: #e8f5ec;
  box-shadow: 0 0 0 2px var(--green);
}

.cta-form-error {
  max-width: 780px;
  margin: 18px 0;
  padding: 13px 16px;
  border-left: 4px solid #a93625;
  background: #fff0ed;
  color: #6f1d12;
  font-weight: 700;
}

.lead-modal-open {
  overflow: hidden;
}

.lead-success-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lead-success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 45, 37, 0.72);
}

.lead-success-modal__panel {
  position: relative;
  width: min(520px, 100%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 25, 19, 0.35);
}

.lead-success-modal__scroll {
  padding: 40px;
  text-align: center;
}

.lead-success-modal__close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 14px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
}

.lead-success-modal__icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: #e5f5eb;
  color: var(--green);
  font-size: 34px;
  font-weight: 900;
}

.lead-success-modal h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.lead-success-modal p {
  margin-bottom: 24px;
  color: var(--muted);
}

.lead-success-modal__button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  border-radius: 24px;
  background: var(--green);
  color: #fff;
  font-weight: 750;
}

@media (max-width: 720px) {
  .contact-form-section {
    padding-bottom: 42px;
  }

  .contact-form-card {
    padding: 22px 16px;
  }

  .contact-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form-wide {
    grid-column: auto;
  }

  .lead-success-modal__scroll {
    padding: 36px 22px 28px;
  }
}
