/* ====================================================================
   Visselblåsarkanal — Inkludera Kulturplattform
   ==================================================================== */

.ia-vb-wrap {
	max-width: 680px;
	margin: 0 auto;
	padding: 2rem 1rem;
	font-family: "DM Sans", -apple-system, sans-serif;
}

.ia-vb-header {
	text-align: center;
	margin-bottom: 2rem;
}

.ia-vb-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.ia-vb-header h2 {
	font-size: 2rem;
	font-weight: 800;
	color: #2E2E2E;
	margin: 0 0 .75rem;
}

.ia-vb-intro {
	color: #555;
	font-size: 1rem;
	line-height: 1.6;
	max-width: 560px;
	margin: 0 auto;
}

/* Privacy panel */
.ia-vb-privacy {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
}

.ia-vb-privacy h3 {
	font-size: .9rem;
	font-weight: 700;
	color: #0369a1;
	margin: 0 0 .75rem;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.ia-vb-privacy ul {
	margin: 0;
	padding: 0 0 0 1.25rem;
	color: #2E2E2E;
	font-size: .9rem;
	line-height: 1.7;
}

.ia-vb-privacy a {
	color: #0369a1;
	font-weight: 600;
}

/* Form */
.ia-vb-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.ia-vb-field label {
	display: block;
	font-weight: 700;
	font-size: .9rem;
	color: #2E2E2E;
	margin-bottom: .5rem;
}

.ia-vb-field textarea {
	width: 100%;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	padding: .875rem 1rem;
	font-family: inherit;
	font-size: .95rem;
	line-height: 1.6;
	color: #2E2E2E;
	resize: vertical;
	transition: border-color .2s;
	box-sizing: border-box;
}

.ia-vb-field textarea:focus {
	outline: none;
	border-color: #70CE99;
	box-shadow: 0 0 0 3px rgba(112, 206, 153, .2);
}

.ia-vb-notice {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 6px;
	padding: .875rem 1rem;
	font-size: .875rem;
	color: #7c2d12;
	line-height: 1.5;
}

.ia-vb-btn {
	background: #2E2E2E;
	color: #fff;
	border: none;
	padding: .875rem 2rem;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s, transform .1s;
	align-self: flex-start;
}

.ia-vb-btn:hover { background: #70CE99; color: #2E2E2E; }
.ia-vb-btn:active { transform: scale(.98); }

/* Alert */
.ia-vb-alert {
	padding: .875rem 1rem;
	border-radius: 6px;
	font-size: .9rem;
	font-weight: 600;
}

.ia-vb-alert--error {
  background: #fdf7f7; color: #7a2e2e; border: 1px solid #e8d0d0;
  border-left: 3px solid #b4534f; text-align: left; font-weight: 500;
}

/* Tack-vy */
.ia-vb-tack {
	text-align: center;
	padding: 4rem 1rem;
}

.ia-vb-tack h2 {
	font-size: 1.75rem;
	font-weight: 800;
	color: #2E2E2E;
	margin: 1rem 0 .75rem;
}

.ia-vb-tack p {
	color: #555;
	font-size: 1rem;
	line-height: 1.6;
}

/* ── Responsivt ────────────────────────────────────────────── */
@media (max-width: 600px) {
	.ia-vb-wrap {
		padding: 1.5rem .75rem;
	}
	.ia-vb-header h2 {
		font-size: 1.5rem;
	}
	.ia-vb-icon {
		font-size: 2.25rem;
	}
	.ia-vb-btn {
		width: 100%;
		text-align: center;
		align-self: stretch;
		padding: 1rem;
	}
	.ia-vb-privacy {
		padding: 1rem;
	}
	.ia-vb-tack {
		padding: 2.5rem .75rem;
	}
	.ia-vb-tack h2 {
		font-size: 1.4rem;
	}
}

/* === Mottagarval (tillagt 2026-08-21) === */
.ia-vb-mottagare {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem;
}
.ia-vb-mottagare-val {
  flex: 1 1 auto; min-width: 140px; cursor: pointer;
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem .9rem; border: 1.5px solid #e2e8f0; border-radius: 10px;
  background: #fff; transition: border-color .15s, background .15s;
}
.ia-vb-mottagare-val:hover { border-color: #70CE99; background: #F3FBF6; }
.ia-vb-mottagare-val input[type=radio] { accent-color: #70CE99; width: 17px; height: 17px; cursor: pointer; }
.ia-vb-mottagare-val:has(input:checked) { border-color: #70CE99; background: #E0F6EB; font-weight: 600; }
.ia-vb-hjalptext { font-size: .82rem; color: #64748b; margin: .5rem 0 0; }

/* Mottagarmärkning i ärendelistan */
.ia-vb-mottagare-badge {
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: .2rem .55rem; border-radius: 999px;
  background: #EEF2F7; color: #475569; white-space: nowrap;
}

/* === Referenskod och uppföljning (2026-08-21) === */
.ia-vb-ref {
  background: #F3FBF6; border: 1.5px solid #70CE99; border-radius: 12px;
  padding: 1.25rem; margin: 1.5rem 0; text-align: center;
}
.ia-vb-ref-rubrik {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #3E7A57; margin: 0 0 .4rem;
}
.ia-vb-ref-kod {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.5rem; font-weight: 700; letter-spacing: .08em;
  color: #1a2a1e; margin: 0 0 .3rem; word-break: break-all;
  cursor: pointer; display: inline-block;
  padding: .35rem .7rem; border-radius: 8px;
  border: 1.5px dashed #A8DEC1; background: #fff;
  transition: background .15s, border-color .15s;
}
.ia-vb-ref-kod:hover { background: #E0F6EB; border-color: #70CE99; }
.ia-vb-ref-kod:focus-visible { outline: 2px solid #70CE99; outline-offset: 2px; }
.ia-vb-ref-klicktips { font-size: .74rem; color: #94a3b8; margin: 0 0 .8rem; }
.ia-vb-ref-kopierat {
  font-size: .8rem; font-weight: 700; color: #1a5c38;
  margin: 0; height: 1.2em;
  opacity: 0; transition: opacity .15s;
}
.ia-vb-ref-kopierat--syns { opacity: 1; }
.ia-vb-ref-kopierat--fel { color: #8A5A00; }
.ia-vb-tack-lank { margin: 1.25rem 0 0; }
.ia-vb-tack-lank a {
  font-weight: 700; font-size: .92rem; color: #1a5c38;
  text-decoration: none; border-bottom: 2px solid #A8DEC1;
  padding-bottom: .1rem; transition: border-color .15s;
}
.ia-vb-tack-lank a:hover { border-color: #70CE99; }
.ia-vb-ref-varning {
  font-size: .88rem; line-height: 1.55; color: #6B4E14;
  background: #FFF8E6; border: 1px solid #F5D98B; border-radius: 8px;
  padding: .7rem .9rem; margin: 0 0 .6rem; text-align: left;
}
.ia-vb-ref-info { font-size: .82rem; color: #64748b; margin: 0; }

.ia-vb-folj { margin-top: 2rem; border-top: 1px solid #e2e8f0; padding-top: 1.25rem; }
.ia-vb-folj > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: .5rem;
  font-weight: 600; color: #3E7A57; font-size: .95rem;
}
.ia-vb-folj > summary::-webkit-details-marker { display: none; }
.ia-vb-folj-chevron {
  margin-left: auto; width: 8px; height: 8px; flex: none;
  border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg); transition: transform .18s;
}
.ia-vb-folj[open] > summary .ia-vb-folj-chevron { transform: rotate(-135deg); }
.ia-vb-folj-body { padding-top: 1rem; }
.ia-vb-ref-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em; text-transform: uppercase;
}
.ia-vb-btn--sekundar { background: #fff; color: #1a2a1e; border: 1.5px solid #70CE99; }
.ia-vb-btn--sekundar:hover { background: #E0F6EB; }

.ia-vb-status-datum  { font-size: .84rem; color: #64748b; margin: 0 0 1rem; }

/* Handläggarens öppna kommentar, som anmälaren läser (2026-08-21) */

/* === Vägval och fristående följ-sida (2026-08-21) === */
.ia-vb-tillbaka { margin: 0 0 1rem; font-size: .88rem; }
.ia-vb-tillbaka a { color: #3E7A57; text-decoration: none; font-weight: 600; }
.ia-vb-tillbaka a:hover { text-decoration: underline; }

.ia-vb-ingress {
  font-size: 1rem; color: #64748b; margin: .4rem 0 0; line-height: 1.6;
}

.ia-vb-val { display: flex; flex-direction: column; gap: .85rem; margin-top: 1.75rem; }
.ia-vb-valkort {
  display: flex; align-items: center; gap: 1.1rem; text-decoration: none;
  padding: 1.35rem 1.5rem; border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: linear-gradient(160deg, #fff 0%, #fafcff 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.03);
  transition: border-color .15s, box-shadow .18s, transform .12s;
}
.ia-vb-valkort:hover {
  border-color: #70CE99; transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,.07), 0 12px 28px rgba(112,206,153,.14);
}
.ia-vb-valkort-ikon { font-size: 1.75rem; flex: none; line-height: 1; }
.ia-vb-valkort-text { flex: 1; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ia-vb-valkort-rubrik { font-size: 1.05rem; font-weight: 700; color: #1a2a1e; line-height: 1.35; }
.ia-vb-valkort-under { font-size: .87rem; color: #64748b; line-height: 1.55; }
.ia-vb-valkort-pil { font-size: 1.6rem; color: #cbd5e1; flex: none; line-height: 1; }
.ia-vb-valkort:hover .ia-vb-valkort-pil { color: #3E7A57; }

@media (max-width: 560px) {
  .ia-vb-valkort { padding: 1.1rem 1.15rem; gap: .85rem; }
  .ia-vb-valkort-pil { display: none; }
}

/* === Konversation mellan anmälare och handläggare (2026-08-27) === */
.ia-vb-trad { margin-top: 1.75rem; text-align: left; }
.ia-vb-trad-rubrik {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #94a3b8; margin: 0 0 .8rem;
}
.ia-vb-trad-tom { font-size: .88rem; color: #64748b; margin: 0 0 1.25rem; line-height: 1.6; }
.ia-vb-svarsform { margin-top: 1.25rem; }

@media (max-width: 560px) {
  .ia-vb-medd--du, }

/* Bekräfta att koden är sparad (2026-08-27) */
.ia-vb-bekrafta {
  background: #FFF8E6; border: 1.5px solid #E8B33C; border-radius: 12px;
  padding: 1.1rem 1.25rem; margin: 1.5rem 0; text-align: left;
  transition: background .2s, border-color .2s;
}
.ia-vb-bekrafta--klar { background: #F3FBF6; border-color: #70CE99; }
.ia-vb-bekrafta-fraga {
  font-size: 1.02rem; font-weight: 700; color: #6B4E14; margin: 0 0 .7rem;
}
.ia-vb-bekrafta--klar .ia-vb-bekrafta-fraga { color: #1a5c38; }
.ia-vb-bekrafta-val {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  font-size: .95rem; font-weight: 600; color: #1a2a1e;
}
.ia-vb-bekrafta-val input { accent-color: #70CE99; width: 20px; height: 20px; cursor: pointer; }
.ia-vb-bekrafta-hjalp { font-size: .82rem; color: #6B4E14; margin: .6rem 0 0; line-height: 1.55; }
.ia-vb-bekrafta--klar .ia-vb-bekrafta-hjalp { color: #64748b; }

/* Tidsgräns mellan meddelanden (2026-08-27) */

/* === Dämpad palett (2026-08-27) ===================================
   Farg anvands bara dar den bar information: en liten prick for status
   och en tunn kantlinje for vem som talar. Allt annat ar neutralt, sa
   att beslutet och avsandarna sticker ut genom typografi i stallet for
   genom konkurrerande fargytor. */

/* Status - neutral ruta med en prick som barare av fargen */
.ia-vb-status-kort {
  display: flex; align-items: flex-start; gap: .75rem;
  background: #fff; border: 1px solid #e6e9ec; border-radius: 10px;
  padding: 1rem 1.15rem; margin: 1.25rem 0; text-align: left;
}
.ia-vb-status-kort::before {
  content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%;
  margin-top: .35rem; background: #cbd5e1;
}
.ia-vb-status-kort--obehandlad::before { background: #E8B33C; }
.ia-vb-status-kort--behandlas::before  { background: #5B9BD5; }
.ia-vb-status-kort--avslutad::before   { background: #4BAF7A; }
.ia-vb-status-rubrik { font-size: 1rem; font-weight: 700; margin: 0 0 .15rem; color: #1a2a1e; }
.ia-vb-status-text   { font-size: .9rem; margin: 0; color: #5b6470; }

/* Slutgiltigt beslut - sidans tyngsta element, utan fargyta */
.ia-vb-beslut {
  background: #fff; border: 1px solid #d8dde2; border-top: 4px solid #1a2a1e;
  border-radius: 4px 4px 10px 10px;
  padding: 1.25rem 1.35rem; margin: 1.5rem 0; text-align: left;
}
.ia-vb-beslut-rubrik {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #1a2a1e; margin: 0 0 .55rem;
}
.ia-vb-beslut-text {
  font-size: 1.05rem; line-height: 1.6; color: #1a2a1e; margin: 0; font-weight: 500;
}

/* Meddelanden - avsandaren syns pa kantlinje och placering, inte pa fyllning */
.ia-vb-medd {
  background: #fff; border: 1px solid #e6e9ec; border-radius: 10px;
  padding: .85rem 1rem; margin-bottom: .55rem;
}
.ia-vb-medd--du  { border-left: 3px solid #9aa3ad; margin-left: 2.5rem; }
.ia-vb-medd--dem { border-left: 3px solid #1a2a1e; margin-right: 2.5rem; }
.ia-vb-medd-avs {
  font-size: .8rem; font-weight: 700; color: #1a2a1e; margin: 0 0 .3rem;
}
.ia-vb-medd--du .ia-vb-medd-avs { color: #5b6470; }
.ia-vb-medd-text { font-size: .93rem; line-height: 1.6; color: #2b3138; margin: 0; }
.ia-vb-medd-tid  { font-size: .72rem; color: #9aa3ad; margin: .4rem 0 0; }

/* Vantetid och kvittens - dampade */
.ia-vb-vanta {
  background: #fafbfc; border: 1px solid #e6e9ec; border-radius: 9px;
  padding: .7rem .9rem; margin: 1rem 0 0; font-size: .86rem;
  color: #5b6470; line-height: 1.55;
}
.ia-vb-alert--ok {
  background: #fafbfc; color: #2b3138; border: 1px solid #d8dde2;
  border-left: 3px solid #4BAF7A;
}

@media (max-width: 560px) {
  .ia-vb-medd--du, .ia-vb-medd--dem { margin-left: 0; margin-right: 0; }
}
