/* CW Kozijnen: offerte- en serviceaanvraag (assets/cw-aanvraag.js).
   Zelfde beeldtaal als de site: Saira Condensed-koppen in kapitalen, Barlow,
   groen #8DC21F op zwart, rechte hoeken en een schuine kant op de knoppen. */

body.cwa-actief { background: #EDF0F1; margin: 0; }
[data-cw="aanvraag"] { display: block !important; padding: 0 !important; width: 100% !important; max-width: none !important; }

.cwa {
	--g: var(--cw-groen, #8DC21F);
	--g-d: var(--cw-groen-donker, #5e8a0f);
	--z: var(--cw-zwart, #0c0d0c);
	--t: #444944;
	--t2: #5b605b;
	--lijn: #d3d6d2;
	--kop: var(--cw-font-kop, "Saira Condensed"), "Arial Narrow", sans-serif;
	--tekst: var(--cw-font-tekst, Barlow), Arial, sans-serif;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	font-family: var(--tekst);
	color: var(--z);
	-webkit-font-smoothing: antialiased;
}
.cwa *, .cwa *::before, .cwa *::after { box-sizing: border-box; }
.cwa button { font: inherit; color: inherit; }

/* Balk bovenin */
.cwa-balk { position: sticky; top: 0; z-index: 10; background: var(--z); }
.admin-bar .cwa-balk { top: 32px; }
@media (max-width: 782px) { .admin-bar .cwa-balk { top: 46px; } }
@media (max-width: 600px) { .admin-bar .cwa-balk { top: 0; } }
.cwa-balk-in { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; max-width: 1344px; margin: 0 auto; padding: 0 20px; height: 64px; }
.cwa .cwa-terug { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #1f211f; border: 0; color: #fff; cursor: pointer; transition: background-color .2s; }
.cwa .cwa-terug:hover { background: #2c2f2c; }
.cwa-logo { justify-self: center; display: block; line-height: 0; }
.cwa-logo img { height: 50px; width: auto; display: block; margin-top: 14px; }
.cwa-soort { justify-self: end; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #bfc3bf; }
.cwa-voortgang { height: 4px; background: rgba(255,255,255,.14); }
.cwa-voortgang span { display: block; height: 100%; width: 0; background: var(--g); transition: width .35s ease; }
@media (min-width: 768px) {
	.cwa-balk-in { grid-template-columns: 1fr auto 1fr; height: 76px; padding: 0 50px; }
	.cwa-terug { justify-self: start; }
	.cwa-logo img { height: 62px; margin-top: 16px; }
}

/* Inhoud */
.cwa-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 32px 20px 40px; }
.cwa-kolom { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) { .cwa-main { padding: 64px 50px 56px; } }
.cwa-kolom.is-in > * { animation: cwa-in .3s ease both; }
@keyframes cwa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cwa-kolom.is-in > * { animation: none; } .cwa-voortgang span { transition: none; } }

.cwa-stap { margin: 0 0 -12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g-d); }
.cwa-titel { margin: 0; font-family: var(--kop); font-weight: 800; font-size: 36px; line-height: .95; text-transform: uppercase; letter-spacing: -.005em; color: var(--z); outline: none; text-wrap: balance; }
@media (min-width: 768px) { .cwa-titel { font-size: 46px; } }
.cwa-sub, .cwa-tekst { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--t); text-wrap: pretty; }
.cwa-titel + .cwa-sub { margin-top: -8px; }
.cwa-tekst { color: var(--z); }
.cwa-klein { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--t2); }
.cwa-label { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: var(--t); }
.cwa-fout { margin: 0; padding: 12px 14px; background: #fff; border-left: 3px solid #c0392b; font-size: 14.5px; color: #a1281b; }
.cwa-sr, .cwa-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cwa-hp { left: -9999px; }

/* Knoppen */
.cwa-knop { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 24px; border: 0; background: var(--g); color: #fff; font-family: var(--tekst); font-size: 16.5px; font-weight: 600; text-decoration: none; cursor: pointer; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background-color .2s, opacity .2s; }
.cwa-knop:hover { background: var(--cw-groen-hover, #7caf15); color: #fff; }
.cwa-knop[disabled] { opacity: .4; cursor: not-allowed; }
.cwa-knop--twee { background: transparent; color: var(--z); border: 1.5px solid var(--z); clip-path: none; }
.cwa-knop--twee:hover { background: var(--z); color: #fff; }
.cwa-knop + .cwa-knop { margin-top: -8px; }

/* Velden */
.cwa-veld { display: flex; flex-direction: column; gap: 7px; }
.cwa-veld > span { display: block; line-height: 1.3; font-size: 13.5px; font-weight: 600; color: var(--t); }
.cwa-veld > span i { font-style: normal; font-weight: 400; color: var(--t2); }
.cwa-veld input, .cwa-veld textarea { width: 100%; min-height: 56px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--lijn); border-radius: 0; font-family: var(--tekst); font-size: 17px; font-weight: 500; color: var(--z); outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.cwa-veld textarea { resize: vertical; line-height: 1.5; min-height: 110px; }
.cwa-veld input::placeholder, .cwa-veld textarea::placeholder { color: #9aa09a; font-weight: 400; }
.cwa-veld input:focus, .cwa-veld textarea:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(141,194,31,.22); }
.cwa-veld--groot input { min-height: 64px; font-size: 21px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.cwa-veld.is-fout input { border-color: #c0392b; }
.cwa-veld em { font-style: normal; font-size: 13.5px; color: #a1281b; }
.cwa-veld.is-vast > div { min-height: 56px; display: flex; align-items: center; padding: 0 16px; background: #e1e5e6; font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.cwa-velden { display: flex; flex-direction: column; gap: 16px; }
.cwa-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.cwa-adres { margin: -8px 0 0; font-size: 13.5px; color: var(--t2); display: flex; align-items: center; gap: 6px; }
.cwa-adres-ok { color: var(--g-d); display: inline-flex; }
.cwa-adres-ok svg { width: 15px; height: 15px; }

/* Particulier / zakelijk */
.cwa-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cwa-type { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 18px 18px 20px; min-height: 96px; background: #fff; border: 2px solid transparent; text-align: left; cursor: pointer; transition: border-color .2s; }
.cwa-type strong { font-family: var(--kop); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; }
.cwa-type span { font-size: 14px; color: var(--t2); line-height: 1.35; }
.cwa-type:hover, .cwa-type:focus-visible { border-color: var(--g); outline: none; }

/* Antwoordopties */
.cwa-opties { display: flex; flex-direction: column; gap: 8px; }
.cwa-optie { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 14px 16px 14px 18px; background: #fff; border: 2px solid transparent; font-size: 16.5px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.cwa-optie:hover { border-color: #b9beb8; }
.cwa-optie:focus-visible { outline: none; border-color: var(--g); }
.cwa-optie.is-on { border-color: var(--g); }
.cwa-optie-tekst { flex: 1; }
.cwa-optie-prijs { font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--t2); }
.cwa-optie-eind { display: inline-flex; color: #a4aaa3; }
.cwa-optie.is-on .cwa-optie-eind { color: var(--g); }
.cwa-vakje { flex: 0 0 24px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #b9beb8; background: #fff; color: #fff; transition: background-color .15s, border-color .15s; }
.cwa-vakje svg { width: 15px; height: 15px; }
.is-on > .cwa-vakje { background: var(--g); border-color: var(--g); }

/* Infoblokken en kaarten */
.cwa-info { padding: 14px 16px; background: #fff; border-left: 3px solid var(--g); font-size: 15px; line-height: 1.5; color: var(--z); }
.cwa-prijskaart { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 24px; background: var(--z); color: #fff; }
.cwa-prijskaart::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 5px; background: var(--g); }
.cwa-prijskaart span { font-size: 14.5px; line-height: 1.45; color: #bfc3bf; }
.cwa-prijskaart strong { font-family: var(--kop); font-weight: 800; font-size: 60px; line-height: .9; text-transform: uppercase; color: var(--g); }
.cwa-tarieven, .cwa-overzicht { background: #fff; padding: 20px 20px 18px; }
.cwa-tarieven h2 { margin: 0 0 8px; font-family: var(--kop); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; }
.cwa-rij { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid #e6e8e5; font-size: 15px; line-height: 1.4; }
.cwa-overzicht .cwa-rij:first-child { border-top: 0; }
.cwa-rij span { color: var(--t); }
.cwa-rij b { font-weight: 600; text-align: right; white-space: nowrap; }
.cwa-overzicht .cwa-rij b { white-space: normal; }
.cwa-tarieven p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--t2); }

/* Uploaden */
.cwa-upload, .cwa-foto { position: relative; cursor: pointer; }
.cwa-upload input, .cwa-foto input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.cwa-upload { display: flex; align-items: center; gap: 14px; padding: 18px 16px; background: #fff; border: 1.5px dashed #9aa09a; transition: border-color .2s; }
.cwa-upload:hover, .cwa-upload:focus-within { border-color: var(--g); }
.cwa-upload > svg { flex: none; color: var(--g-d); }
.cwa-upload span { display: flex; flex-direction: column; gap: 2px; }
.cwa-upload strong { font-size: 15.5px; font-weight: 600; }
.cwa-upload small { font-size: 13px; color: var(--t2); }
.cwa-bestanden { list-style: none; margin: -8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cwa-bestanden li { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; background: #fff; border-left: 3px solid var(--g); font-size: 14.5px; }
.cwa-bestanden li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cwa-bestanden button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--t2); cursor: pointer; }
.cwa-bestanden button:hover { color: #a1281b; }
.cwa-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cwa-foto { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 132px; padding: 14px; background: #fff; border: 1.5px dashed #c3c8ce; transition: border-color .2s; overflow: hidden; }
.cwa-foto.is-verplicht { border-color: #7c838b; }
.cwa-foto:hover, .cwa-foto:focus-within { border-color: var(--g); }
.cwa-foto.is-on { border: 2px solid var(--g); }
.cwa-foto > svg { color: var(--z); margin-bottom: auto; }
.cwa-foto img { max-width: none; width: calc(100% + 28px); margin: -14px -14px 6px; height: 96px; object-fit: cover; display: block; }
.cwa-foto strong { font-size: 15px; font-weight: 600; }
.cwa-foto small { font-size: 12.5px; color: var(--t2); }
.cwa-foto.is-verplicht:not(.is-on) small { color: var(--z); font-weight: 600; }

/* Akkoord */
.cwa-akkoord { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #fff; border: 2px solid transparent; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.cwa-akkoord input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cwa-akkoord.is-on { border-color: var(--g); }
.cwa-akkoord.is-fout { border-color: #c0392b; }
.cwa-akkoord:focus-within { box-shadow: 0 0 0 3px rgba(141,194,31,.3); }

/* Klaar */
.cwa-klaar-icoon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--z); color: var(--g); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.cwa-klaar-icoon svg { width: 30px; height: 30px; }

/* Hulpregel onderaan */
.cwa-hulp { margin: 40px 0 0; font-size: 14px; color: var(--t2); text-align: center; }
.cwa-hulp a { color: var(--z); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--g); }

/* Hello-thema geeft knoppen een roze hover/focus en afgeronde hoeken: hier overschreven. */
.cwa button { border-radius: 0; text-transform: none; }
.cwa .cwa-type, .cwa .cwa-type:hover, .cwa .cwa-type:focus,
.cwa .cwa-optie, .cwa .cwa-optie:hover, .cwa .cwa-optie:focus { background-color: #fff; color: var(--z); }
.cwa .cwa-type:hover span, .cwa .cwa-type:focus span { color: var(--t2); }
.cwa .cwa-knop:focus { background-color: var(--g); color: #fff; }
.cwa .cwa-knop:hover { background-color: var(--cw-groen-hover, #7caf15); color: #fff; }
.cwa .cwa-knop--twee, .cwa .cwa-knop--twee:focus { background-color: transparent; color: var(--z); }
.cwa .cwa-knop--twee:hover { background-color: var(--z); color: #fff; }
.cwa .cwa-terug, .cwa .cwa-terug:focus { background-color: #1f211f; color: #fff; }
.cwa .cwa-terug:hover { background-color: #2c2f2c; color: #fff; }
.cwa .cwa-bestanden button, .cwa .cwa-bestanden button:hover, .cwa .cwa-bestanden button:focus { background-color: transparent; }
.cwa button:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }

/* Knoppen: recht aan de zijkanten, witte tekst op groen, iets dikkere letter. */
.cwa .cwa-knop { clip-path: none; color: #fff; font-weight: 600; }
.cwa .cwa-knop--twee, .cwa .cwa-knop--twee:focus { color: var(--z); }
.cwa .cwa-knop--twee:hover { color: #fff; }

/* Logo vult de volle hoogte van de balk, zonder uit te steken. */
.cwa .cwa-logo { align-self: stretch; display: flex; }
.cwa .cwa-logo img { height: 64px; max-width: none; margin: 0; }
@media (min-width: 768px) { .cwa .cwa-logo img { height: 76px; } }
