/* Konferensförfrågan – efterliknar Fillout-temat "1135 — Burgundy".
   Bakgrund #5b3745, frågor #e1b72d, svar vita, understrukna fält, grön primärfärg #00b371. */
dialog.konf {
  width: min(1000px, calc(100vw - 32px));
  overflow: visible;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #5b3745;
  color: #fff;
  font-family: Karrik, "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}
dialog.konf::backdrop { background: rgba(0, 0, 0, .55); }
.konf__form { position: relative; padding: 0 0 28px; max-height: calc(100dvh - 48px); overflow: auto; border-radius: 8px; }
.konf__close {
  position: fixed; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  translate: 0 0; margin: -17px 0 0 -17px;
  background: #1f1f1f; border: 0; color: #fff; font-size: 24px; line-height: 34px; cursor: pointer;
}
.konf__close:hover { background: #000; }

/* Stegindikator överst */
.konf__steps {
  list-style: none; margin: 0; padding: 14px 48px 14px 24px;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 16px; color: rgba(255, 255, 255, .35);
}
.konf__steps li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.konf__steps li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, .35); flex: none;
}
.konf__steps li + li { padding-left: 12px; }
.konf__steps li + li::after { content: none; }
.konf__steps li:not(:first-child) { position: relative; }
.konf__steps li:not(:first-child)::marker { content: none; }
.konf__steps li.is-active { color: #00d084; }
.konf__steps li.is-active::before { border-color: #00d084; background: radial-gradient(#00d084 0 4px, transparent 5px); }
.konf__steps li.is-done { color: #3ea576; }
.konf__steps li.is-done::before {
  border-color: #3ea576;
  background: #3ea576 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 14px;
}
.konf__steps li.is-done:not(:last-child)::after { background: #3ea576; }
.konf__steps li:not(:last-child)::after {
  content: ""; display: inline-block; width: 56px; height: 1px; background: rgba(255, 255, 255, .35); margin-left: 4px;
}

.konf__body { width: min(600px, calc(100% - 48px)); margin: 0 auto; padding-top: 40px; }
.konf__brand { margin: 0 0 18px; text-align: right; color: #e1b72d; font-size: 14px; font-weight: 500; letter-spacing: normal; }
.konf__step { border: 0; margin: 0; padding: 0; display: grid; gap: 22px; }
.konf__step legend { padding: 0; margin-bottom: 10px; }
.konf label { display: grid; gap: 10px; }
.konf strong { color: #e1b72d; font-size: 18px; font-weight: 900; line-height: 1.3; }
.konf__req { color: #bd971b; font-weight: 700; }
.konf input:not([type=checkbox]):not([type=range]), .konf textarea {
  font: inherit; font-size: 17px; line-height: 22.1px; color: #fff;
  background: rgba(255, 255, 255, .09);
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .2); border-radius: 0;
  padding: 8px 12px; min-height: 42px; width: 100%; box-sizing: border-box;
}
.konf input::placeholder, .konf textarea::placeholder { color: rgba(255, 255, 255, .35); }
.konf input:focus, .konf textarea:focus { outline: none; border-bottom-color: #00b371; background: rgba(255, 255, 255, .12); }
.konf input.konf__email:not([type=checkbox]) {
  padding-left: 40px;
  background: rgba(255, 255, 255, .09) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,.75)'%3E%3Cpath d='M2 6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v.4l-10 6.2L2 6.4z'/%3E%3Cpath d='M2 8.7V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8.7l-10 6.2z'/%3E%3C/svg%3E") no-repeat 12px center / 18px;
}
.konf__divider { border: 0; border-top: 1px solid rgba(255, 255, 255, .2); margin: 4px 0; }

/* Kryssrutor som i Fillout: fyrkant som blir grön med vit bock */
.konf__check {
  display: flex !important; align-items: center; gap: 14px; cursor: pointer;
  font-size: 18px; font-weight: 700; color: #fff; padding: 4px 0;
}
.konf__check + .konf__check { margin-top: -10px; }
.konf__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.konf__box {
  width: 22px; height: 22px; flex: none; box-sizing: border-box; border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .09);
}
.konf__check input:checked + .konf__box {
  border-color: #00b371;
  background: #00b371 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 16px;
}
.konf__check input:focus-visible + .konf__box { outline: 2px solid #00d084; outline-offset: 2px; }
.konf__caption { color: #bd971b; font-size: 16px; margin-top: -4px; }

.konf__slider { display: grid; gap: 12px; }
.konf__slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.konf output { color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; }
.konf input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 4px 0; background: transparent; cursor: pointer;
}
.konf input[type=range]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px;
  background: linear-gradient(to right, #00b371 var(--pct, 0%), rgba(255, 255, 255, .2) var(--pct, 0%));
}
.konf input[type=range]::-moz-range-track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.konf input[type=range]::-moz-range-progress { height: 5px; border-radius: 3px; background: #00b371; }
.konf input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px rgba(99, 102, 241, .45);
}
.konf input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(99, 102, 241, .45);
}
.konf input[type=range][data-untouched]::-webkit-slider-thumb { opacity: .6; box-shadow: none; }
.konf input[type=range][data-untouched]::-moz-range-thumb { opacity: .6; box-shadow: none; }
.konf__slider-ends { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; color: #fff; }
.konf__clear {
  justify-self: start; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; color: #fff; text-decoration: underline;
}
.konf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.konf__turnstile:empty { display: none; }

/* Knappar: grön pill, första steget full bredd, sedan "Tillbaka" + nästa till höger */
.konf__nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.konf__nav.is-first > * { flex: 1; }
.konf__btn {
  font: inherit; font-size: 18px; font-weight: 700; line-height: 25.2px; cursor: pointer;
  border: 1px solid transparent; border-radius: 9999px; min-height: 42px; padding: 6px 24px;
  background: #00b371; color: #fff;
  box-shadow: rgba(0, 0, 0, .1) 0 1px 3px 0, rgba(0, 0, 0, .1) 0 1px 2px -1px;
}
.konf__btn:hover { background: #00a066; }
.konf__btn[disabled] { opacity: .6; cursor: wait; }
.konf__btn--ghost {
  margin-right: auto; background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none;
}
.konf__btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.konf__error { margin: 16px 0 0; padding: 10px 12px; background: rgba(248, 113, 113, .15); border-bottom: 1px solid #f87171; color: #f87171; }

.konf__done { text-align: center; padding: 24px 0 8px; }
.konf__done h2 { margin: 0 0 8px; color: #e1b72d; font-size: 28px; font-weight: 900; }
.konf__done .konf__btn { margin-top: 20px; }
.konf__help { margin: 18px 0 0; font-size: 14px; color: #e1b72d; }
.konf__help a { color: #e1b72d; text-decoration: underline; }
.konf [hidden] { display: none !important; }

@media (max-width: 560px) {
  .konf__steps { gap: 8px; font-size: 14px; padding: 12px 44px 12px 16px; justify-content: flex-start; overflow: hidden; }
  .konf__steps li + li { padding-left: 0; }
  .konf__steps li:not(.is-active) { font-size: 0; gap: 0; }
  .konf__steps li:not(:last-child)::after { width: 16px; }
  .konf__body { padding-top: 24px; }
}

/* "Konferensförfrågan"-knappen – identisk med Fillouts knapp på Webflow-sajten. */
.w-embed.w-script button[data-konf-open] {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: none;
  border-radius: 32px;
  box-shadow: rgba(0, 0, 0, .2) 0 2px 5px 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
