/* Minimal styling – arver temaets skrifttyper og farver. Simple Digital kan tilpasse. */
.hg-opt { max-width: 720px; margin: 56px auto 72px; padding: 0 16px; box-sizing: border-box; }
.hg-opt__intro { margin-bottom: 36px; font-size: 17px; line-height: 1.65; }
.hg-opt__intro h2 { margin: 0 0 6px; line-height: 1.2; }
.hg-opt__intro p { margin: 0 0 14px; }
.hg-opt__lead { font-weight: 600; font-size: 1.2em; margin: 0 0 22px !important; color: var(--hg-green-dark, #426D26); }
.hg-opt__notice { background: var(--hg-warn-bg, #FFF4D6); border-left: 4px solid var(--hg-warn-line, #E0A800); padding: 16px 20px; margin: 26px 0 18px; border-radius: 0 6px 6px 0; }
.hg-opt__notice p { margin: 0 0 8px !important; }
.hg-opt__notice p:last-child { margin-bottom: 0 !important; }
.hg-opt__notice-title { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85em; color: #6b5000; }
.hg-opt__notice a { font-weight: 600; }
.hg-opt__secure { background: var(--hg-green-soft, #EEF6E7); border-left: 4px solid var(--hg-green, #75B843); padding: 12px 20px; font-size: .92em; border-radius: 0 6px 6px 0; margin: 0 !important; }
.hg-opt form { display: flex; flex-direction: column; gap: 28px; }
.hg-opt__section { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 20px; min-width: 0; }
.hg-opt__section > legend { grid-column: 1 / -1; font-family: "Jura", sans-serif; font-size: 1.15em; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--hg-green-dark, #426D26); border-bottom: 2px solid var(--hg-green, #75B843); padding-bottom: 6px; margin-bottom: 14px; width: 100%; }
.hg-opt__field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; min-width: 0; }
.hg-opt__field--vej, .hg-opt__field--by { grid-column: span 4; }
.hg-opt__field--husnr, .hg-opt__field--postnr { grid-column: span 2; }
.hg-opt__field--fornavn, .hg-opt__field--efternavn, .hg-opt__field--telefon, .hg-opt__field--email,
.hg-opt__field--aarsag, .hg-opt__field--sps, .hg-opt__field--uddannelse, .hg-opt__field--aargang { grid-column: span 3; }
.hg-opt__field > label, .hg-opt__choices > legend { font-weight: 600; }
.hg-opt__choices { border: 0; margin: 0; padding: 0; }
.hg-opt__choices > legend { margin-bottom: 6px; padding: 0; }
.hg-opt input[type=text], .hg-opt input[type=email], .hg-opt input[type=tel] {
  width: 100%; padding: 10px 12px; border: 1px solid #999; border-radius: 4px; font: inherit; box-sizing: border-box;
}
.hg-opt input[readonly] { background: var(--hg-grey, #ECECEC); color: #333; border-color: #ccc; cursor: default; }
.hg-opt input[type=file] { padding: 10px; border: 1px dashed #999; border-radius: 4px; background: #fafafa; max-width: 100%; }
.hg-opt__file { border-left: 3px solid #ddd; padding-left: 12px; }
.hg-opt [aria-invalid=true] { border-color: #b00020; }
.hg-opt fieldset[aria-invalid=true] { border-left: 3px solid #b00020; padding-left: 10px; }
.hg-opt__error { color: #b00020; font-size: .9em; }
.hg-opt__hint { color: #555; font-size: .9em; }
.hg-opt__req { color: #b00020; }
.hg-opt__tag { color: #666; font-size: .9em; }
.hg-opt__alert { background: #fdecea; border-left: 4px solid #b00020; padding: 12px 16px; }
.hg-opt--ok { background: #e8f5e9; border-left: 4px solid #2e7d32; padding: 16px 20px; }
.hg-opt__check { font-weight: normal; display: flex; gap: 10px; align-items: flex-start; padding: 3px 0; cursor: pointer; }
.hg-opt__check[hidden] { display: none; }
.hg-opt__check input { margin-top: .3em; flex: none; }
.hg-opt__info-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0;
  margin-left: 6px; border-radius: 50%; border: 1px solid var(--hg-green-dark, #426D26); background: #fff; color: var(--hg-green-dark, #426D26);
  font: italic 700 12px/1 Georgia, serif; cursor: pointer; vertical-align: middle; }
.hg-opt__info-btn[aria-expanded=true] { background: var(--hg-green-dark, #426D26); color: #fff; }
.hg-opt__info { display: block; background: var(--hg-green-soft, #EEF6E7); padding: 8px 12px; border-radius: 4px; font-size: .9em; font-weight: normal; }
.hg-opt__info[hidden] { display: none; }
.hg-opt__labelrow { display: flex; flex-wrap: wrap; align-items: center; font-weight: 600; }
.hg-opt__labelrow .hg-opt__info { flex-basis: 100%; margin-top: 6px; }
.hg-opt__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hg-opt__submit { align-self: flex-start; padding: 13px 32px; cursor: pointer; border: 0; border-radius: 3px;
  background: var(--hg-green, #75B843); color: #fff; font: 600 1.05em "Jura", sans-serif; }
.hg-opt__submit:hover, .hg-opt__submit:focus-visible { background: var(--hg-green-dark, #426D26); }
.hg-opt input:focus-visible, .hg-opt select:focus-visible { outline: 2px solid var(--hg-green, #75B843); outline-offset: 1px; border-color: var(--hg-green-dark, #426D26); }
.hg-opt input[type=radio], .hg-opt input[type=checkbox] { accent-color: var(--hg-green-dark, #426D26); width: 18px; height: 18px; }
@media (max-width: 600px) {
  .hg-opt__section { grid-template-columns: 1fr; }
  .hg-opt__field { grid-column: 1 / -1 !important; }
}
.hg-opt__section > .hg-opt__hint { grid-column: 1 / -1; margin: 0; }

/* Selvstændig side: titel og undertitel står i det grønne felt */
.hg-standalone .hg-opt > h2, .hg-standalone .hg-opt__lead { display: none; }

/* Selvstændig side har sit eget grønne felt – mindre topmargen dér */
.hg-standalone .hg-opt { margin-top: 0; }
@media (max-width: 600px) { .hg-opt { margin-top: 32px; } .hg-opt__intro { font-size: 16px; } }
