/* JWS Offerte — frontend styling
   Scoped onder .jws-offerte zodat het thema er niet doorheen lekt. */

.jws-offerte {
	--jws-ink: #07091a;
	--jws-deep: #0a1430;
	--jws-mid: #0d1f4a;
	--jws-blue: #0086c9;
	--jws-accent: #7cd4fd;
	--jws-white: #ffffff;
	--jws-line: rgba(255, 255, 255, 0.14);
	--jws-line-soft: rgba(255, 255, 255, 0.08);
	--jws-radius: 18px;

	position: relative;
	overflow: hidden;
	border-radius: var(--jws-radius);
	box-sizing: border-box;
	font-family: inherit;
}

.jws-offerte *,
.jws-offerte *::before,
.jws-offerte *::after {
	box-sizing: border-box;
}

/* Gradient achtergrond zoals de mooie sectie */
.jws-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(1200px 500px at 80% -10%, rgba(0, 134, 201, 0.28), transparent 60%),
		linear-gradient(120deg, #07091a 0%, #0a1430 35%, #0d2150 75%, #0a1430 100%);
	z-index: 0;
}

.jws-inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 48px;
	padding: clamp(28px, 4vw, 64px);
	max-width: 1240px;
	margin: 0 auto;
}

.jws-layout-split .jws-inner {
	grid-template-columns: 1fr 1fr;
	align-items: center;
}

.jws-layout-compact .jws-inner {
	grid-template-columns: minmax(0, 620px);
	justify-content: center;
}

/* ---------- Info-kolom ---------- */
.jws-eyebrow {
	display: inline-block;
	background: rgba(0, 134, 201, 0.18);
	border: 1px solid rgba(0, 134, 201, 0.42);
	color: var(--jws-accent);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	padding: 7px 16px;
	border-radius: 50px;
}

.jws-headline {
	margin: 18px 0 0;
	font-size: clamp(34px, 4.4vw, 60px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -1.5px;
	color: var(--jws-white);
}

.jws-accent {
	display: block;
	color: var(--jws-accent);
}

.jws-sub {
	margin: 18px 0 0;
	max-width: 460px;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.62);
}

.jws-cta-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 28px;
}

.jws-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 26px;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	cursor: pointer;
}

.jws-btn svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jws-btn-white {
	background: var(--jws-white);
	color: var(--jws-mid);
}

.jws-btn-white:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.jws-btn-ghost {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--jws-line);
	color: var(--jws-white);
}

.jws-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

.jws-info-list {
	margin-top: 36px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.jws-info-item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.jws-info-ic {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: rgba(0, 134, 201, 0.16);
	border: 1px solid rgba(0, 134, 201, 0.3);
}

.jws-info-ic svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--jws-accent);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jws-info-lbl {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.jws-info-val {
	display: block;
	margin-top: 2px;
	font-size: 15px;
	font-weight: 700;
	color: var(--jws-white);
}

a.jws-info-link {
	text-decoration: none;
	transition: color 0.18s ease;
}

a.jws-info-link:hover {
	color: var(--jws-accent);
	text-decoration: underline;
}

/* ---------- Form-kaart ---------- */
.jws-form-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--jws-line);
	border-radius: var(--jws-radius);
	padding: clamp(24px, 2.6vw, 38px);
	backdrop-filter: blur(8px);
}

.jws-form-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--jws-white);
	margin-bottom: 22px;
	letter-spacing: -0.4px;
}

.jws-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.jws-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.jws-field {
	margin: 0;
}

.jws-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.jws-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 8px;
}

.jws-req {
	color: #ff6b6b;
}

.jws-input {
	width: 100%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--jws-line);
	border-radius: 11px;
	padding: 14px 15px;
	font-size: 15px;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	color-scheme: dark;
	transition: border-color 0.18s ease, background 0.18s ease;
	font-family: inherit;
}

.jws-input::placeholder {
	color: rgba(255, 255, 255, 0.45) !important;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.45);
	opacity: 1;
}

/* Tekst die je intypt wit houden, ook na autofill */
.jws-offerte input.jws-input,
.jws-offerte select.jws-input,
.jws-offerte textarea.jws-input {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
}

.jws-offerte select.jws-input option {
	color: #1c1c1c;
	background: #ffffff;
}

.jws-input:-webkit-autofill,
.jws-input:-webkit-autofill:hover,
.jws-input:-webkit-autofill:focus {
	-webkit-text-fill-color: #ffffff;
	transition: background-color 9999s ease-in-out 0s;
}

.jws-input:focus {
	outline: none;
	border-color: rgba(0, 134, 201, 0.7);
	background: rgba(0, 134, 201, 0.1);
}

select.jws-input {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237cd4fd' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
}

.jws-date::-webkit-calendar-picker-indicator,
.jws-time::-webkit-calendar-picker-indicator {
	filter: brightness(0) invert(1);
	opacity: 1;
	cursor: pointer;
}

/* Wit getypte/ingevulde datum- en tijdwaarde + losse velddelen */
.jws-date,
.jws-time {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	text-align: left;
}

.jws-date::-webkit-date-and-time-value,
.jws-time::-webkit-date-and-time-value {
	text-align: left;
	margin: 0;
}

.jws-date::-webkit-datetime-edit,
.jws-time::-webkit-datetime-edit,
.jws-date::-webkit-datetime-edit-fields-wrapper,
.jws-time::-webkit-datetime-edit-fields-wrapper {
	color: #ffffff;
	-webkit-text-fill-color: #ffffff;
	padding: 0;
}

/* Radiogroep */
.jws-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.jws-radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--jws-line);
	border-radius: 11px;
	padding: 11px 15px;
	font-size: 14px;
	font-weight: 600;
	color: var(--jws-white);
	cursor: pointer;
	transition: all 0.18s ease;
}

.jws-radio input {
	accent-color: var(--jws-blue);
	margin: 0;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.jws-radio:has(input:checked) {
	background: rgba(0, 134, 201, 0.22);
	border-color: rgba(0, 134, 201, 0.7);
}

/* Bestand */
.jws-file {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.jws-file input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.jws-file-btn {
	flex: 0 0 auto;
	background: rgba(0, 134, 201, 0.2);
	border: 1px solid rgba(0, 134, 201, 0.5);
	color: var(--jws-white);
	padding: 11px 18px;
	border-radius: 11px;
	font-size: 14px;
	font-weight: 700;
}

.jws-file-name {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Submit */
.jws-submit {
	margin-top: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	background: var(--jws-blue);
	color: #fff;
	border: 0;
	border-radius: 50px;
	padding: 17px 24px;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.jws-submit:hover {
	background: #0098e3;
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(0, 134, 201, 0.4);
}

.jws-submit:disabled {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

.jws-message {
	font-size: 14px;
	line-height: 1.5;
	display: none;
}

.jws-message.is-error {
	display: block;
	color: #ffb4b4;
	background: rgba(255, 107, 107, 0.12);
	border: 1px solid rgba(255, 107, 107, 0.3);
	border-radius: 10px;
	padding: 12px 14px;
}

.jws-message.is-success {
	display: block;
	color: #b7f5d2;
	background: rgba(46, 204, 113, 0.12);
	border: 1px solid rgba(46, 204, 113, 0.32);
	border-radius: 10px;
	padding: 12px 14px;
}

.jws-cond[hidden] {
	display: none !important;
}

/* Responsive */
@media (max-width: 980px) {
	.jws-layout-split .jws-inner {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}

@media (max-width: 560px) {
	.jws-row {
		grid-template-columns: 1fr;
	}

	.jws-btn {
		width: 100%;
		justify-content: center;
	}

	/* Diensten: twee per rij, compacter rondje en tekst */
	.jws-radio-group {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.jws-radio {
		padding: 10px 10px;
		font-size: 13px;
		gap: 7px;
		border-radius: 10px;
	}

	.jws-radio input {
		width: 15px;
		height: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jws-offerte * {
		transition: none !important;
	}
}
