/* =========================================================================
   3byggepriser · formularer
   Hvid bund, dæmpede flader, ingen kanter hvor de ikke gør gavn.
   ========================================================================= */

/* ---- Skal ---------------------------------------------------------------- */
.tpform {
	position: relative;
	background: #fff;
	border-radius: var(--r-lg);
	padding: clamp(1.4rem, 3vw, 2.5rem);
	box-shadow: 0 1px 2px rgba(14,31,24,.05), 0 18px 44px -28px rgba(14,31,24,.28);
}
.section--surface .tpform { box-shadow: none; }

/* ---- Trinindikator ------------------------------------------------------- */
.tpsteps { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; }
.tpsteps__item { display: flex; align-items: center; gap: .6rem; }
.tpsteps__num {
	display: grid; place-items: center; width: 28px; height: 28px; flex: none;
	border-radius: 50%; background: var(--surface-2);
	font-size: .82rem; font-weight: 700; color: var(--stone-2);
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tpsteps__num .ic { width: 14px; height: 14px; }
.tpsteps__label { font-size: .85rem; font-weight: 600; color: var(--stone-2); white-space: nowrap; }
.tpsteps__bar { flex: 1; height: 2px; border-radius: 2px; background: var(--surface-3); min-width: .5rem; }
.tpsteps__item.is-active .tpsteps__num { background: var(--ink); color: #fff; }
.tpsteps__item.is-active .tpsteps__label { color: var(--ink); }
.tpsteps__item.is-done .tpsteps__num { background: var(--green); color: #fff; }
.tpsteps__item.is-done .tpsteps__label { color: var(--green-700); }
@media (max-width: 760px) {
	.tpsteps__label { display: none; }
	.tpsteps { gap: .4rem; }
}

/* ---- Paneler ------------------------------------------------------------- */
.tppanel { display: none; }
.tppanel.is-active { display: block; }
.tppanel__title { font-size: var(--fs-h4); margin-bottom: .4rem; }
.tppanel__sub { color: var(--stone); font-size: .96rem; margin-bottom: 1.6rem; max-width: 44rem; }

.tpform__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.tpform__nav .btn--back { color: var(--stone-2); font-weight: 600; padding-left: 0; }
.tpform__nav .btn--back:hover { color: var(--ink); background: transparent; }

/* ---- Filupload ----------------------------------------------------------- */
.dropzone {
	position: relative;
	display: grid; place-items: center; gap: .5rem;
	padding: 2.2rem 1.2rem;
	border-radius: var(--r);
	background: var(--surface-2);
	text-align: center;
	cursor: pointer;
	transition: background-color .2s var(--ease);
}
.dropzone:hover, .dropzone.is-over { background: var(--green-50); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__ic { color: var(--green); }
.dropzone__ic .ic { width: 26px; height: 26px; }
.dropzone b { font-size: 1rem; color: var(--ink); font-weight: 600; }
.dropzone span { font-size: .84rem; color: var(--stone-2); max-width: 32rem; }

.filelist { display: grid; gap: .4rem; margin-top: 1rem; }
.filelist:empty { margin-top: 0; }
.fileitem {
	display: flex; align-items: center; gap: .85rem;
	padding: .65rem .85rem;
	background: var(--surface-2); border-radius: var(--r-xs);
}
.fileitem__ic { display: grid; place-items: center; width: 28px; height: 28px; color: var(--green); flex: none; }
.fileitem__ic .ic { width: 18px; height: 18px; }
.fileitem__thumb { width: 34px; height: 34px; object-fit: cover; flex: none; border-radius: var(--r-xs); }
.fileitem__meta { min-width: 0; flex: 1; }
.fileitem__meta b { display: block; font-size: .89rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fileitem__meta span { font-size: .78rem; color: var(--stone-2); }
.fileitem__del { display: grid; place-items: center; width: 28px; height: 28px; color: var(--stone-2); flex: none; transition: color .18s var(--ease); }
.fileitem__del:hover { color: var(--danger); }
.fileitem__del .ic { width: 16px; height: 16px; }

/* ---- Opsummering --------------------------------------------------------- */
.summary { display: grid; gap: .1rem; background: var(--surface-2); border-radius: var(--r); padding: .4rem 1.1rem; }
.summary__row { display: grid; grid-template-columns: 11rem 1fr; gap: 1.2rem; padding: .62rem 0; font-size: .93rem; }
.summary__row dt { font-size: .84rem; color: var(--stone-2); font-weight: 600; }
.summary__row dd { color: var(--ink); font-weight: 600; margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .summary__row { grid-template-columns: 1fr; gap: .2rem; } }

/* ---- Beskeder ------------------------------------------------------------ */
.formmsg {
	display: none; align-items: flex-start; gap: .7rem;
	padding: .9rem 1.1rem; border-radius: var(--r);
	font-size: .93rem; font-weight: 600; margin-bottom: 1.4rem;
}
.formmsg.is-on { display: flex; }
.formmsg .ic { width: 18px; height: 18px; flex: none; margin-top: .12rem; }
.formmsg--err { background: #FBEFEC; color: #8A2E20; }
.formmsg--ok { background: var(--green-50); color: var(--green-700); }
.formmsg--info { background: var(--surface-2); color: var(--ink); }

/* ---- Kvittering ---------------------------------------------------------- */
.receipt { padding-block: 1rem; }
.receipt__ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.4rem; background: var(--green); color: #fff; border-radius: var(--r-lg); }
.receipt__ic .ic { width: 28px; height: 28px; }
.receipt h2 { font-size: var(--fs-h2); }
.receipt p { color: var(--stone); margin-top: .9rem; font-size: var(--fs-lead); max-width: 38rem; }
.receipt__ref {
	display: inline-block; margin-top: 1.4rem; padding: .55rem 1rem;
	background: var(--surface-2); border-radius: var(--r);
	font-size: .92rem; font-weight: 700; letter-spacing: .04em; color: var(--ink);
}

/* ---- Sidebjælke ---------------------------------------------------------- */
.formlayout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .85fr); gap: clamp(1.6rem, 3vw, 3rem); align-items: start; }
@media (max-width: 1000px) { .formlayout { grid-template-columns: 1fr; } }
.formaside { display: grid; gap: 1.4rem; position: sticky; top: calc(var(--header-h-full) + 1.5rem); }
@media (max-width: 1000px) { .formaside { position: static; } }
.formaside__card { background: var(--surface-2); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; }
.section--surface .formaside__card { background: #fff; }
.formaside__card h3 { font-size: 1.02rem; margin-bottom: .8rem; }
.formaside__card p { color: var(--stone); font-size: .93rem; }
.formaside__card--dark { background: var(--ink); color: var(--stone-light); }
.formaside__card--dark h3 { color: #fff; }
.formaside__card--dark p { color: rgba(255,255,255,.76); }

/* ---- Spinner ------------------------------------------------------------- */
.spin { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tpspin .7s linear infinite; }
@keyframes tpspin { to { transform: rotate(360deg); } }
.is-busy { pointer-events: none; opacity: .7; }

/* ---- Honeypot ------------------------------------------------------------ */
.tp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================================
   Enkeltsides opgaveformular
   ========================================================================= */

.tpform--single { padding: clamp(1.5rem, 3vw, 2.5rem); }
.textarea--lead { min-height: 10rem; font-size: 1.05rem; }
.field__opt { font-size: .78rem; font-weight: 500; color: var(--stone-2); text-transform: none; letter-spacing: 0; }

/* Fag som kompakte chips, så valget fylder én blok i stedet for otte kort */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .55rem .95rem; border-radius: var(--r);
	background: var(--surface-2); color: var(--text);
	font-size: .92rem; font-weight: 600; cursor: pointer;
	transition: background-color .16s var(--ease), color .16s var(--ease);
}
.chip span .ic { width: 17px; height: 17px; color: var(--green); transition: color .16s var(--ease); }
.chip:hover span { background: var(--green-50); }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:checked + span .ic { color: var(--green-300); }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.dropzone--slim { padding: 1.4rem 1.2rem; }
.dropzone--slim .dropzone__ic .ic { width: 22px; height: 22px; }
.dropzone--slim b { font-size: .95rem; }

.more__panel[hidden] { display: none !important; }
.tpform__note { margin-top: .85rem; font-size: .86rem; color: var(--stone-2); text-align: center; }

.modal__quote {
	margin: 0; padding: 1.1rem 1.3rem;
	background: var(--surface-2); border-radius: var(--r);
	font-size: 1rem; line-height: 1.65; color: var(--ink);
}
