/* Ostoya Front op Maat — calculator styling
   Bewust neutraal en aansluitend bij standaard WooCommerce-thema's.
   Past de typografie en kleuren van het actieve thema waar mogelijk. */

.ostoya-fom {
	margin: 1.25rem 0 1.5rem;
	font-size: 14px;
	line-height: 1.5;
	color: inherit;
}

.ostoya-fom__banner {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	padding: 12px 18px;
	background: #faf7f2;
	border-left: 3px solid #353535;
	border-radius: 4px;
}

.ostoya-fom__banner-icon {
	flex-shrink: 0;
	color: #353535;
	opacity: 0.85;
}

.ostoya-fom__title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 17px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	color: #353535 !important;
	letter-spacing: normal !important;
	border: 0 !important;
	text-transform: none !important;
}

.ostoya-fom *,
.ostoya-fom *::before,
.ostoya-fom *::after {
	box-sizing: border-box;
}

.ostoya-fom__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

/* Single-field row layout (used when only houtnerf is shown). */
.ostoya-fom__row--single-field {
	grid-template-columns: 1fr;
}

.ostoya-fom__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ostoya-fom__field label {
	font-size: 13px;
	font-weight: 500;
	margin: 0;
	color: inherit;
	opacity: 0.85;
}

.ostoya-fom__field select,
.ostoya-fom__field input[type="number"] {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
	line-height: 1.3;
	min-height: 40px;
	-moz-appearance: textfield;
}

.ostoya-fom__field input[type="number"]::-webkit-outer-spin-button,
.ostoya-fom__field input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ostoya-fom__field select:focus,
.ostoya-fom__field input[type="number"]:focus {
	outline: none;
	border-color: rgba(0, 0, 0, 0.4);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.ostoya-fom__field small {
	font-size: 11px;
	opacity: 0.55;
}

.ostoya-fom__measure {
	background: rgba(0, 0, 0, 0.025);
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 14px;
}

.ostoya-fom__measure-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr 110px;
	gap: 16px;
	align-items: end;
}

.ostoya-fom__preview {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 84px;
	cursor: zoom-in;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	transform-origin: center center;
	position: relative;
	z-index: 1;
}

.ostoya-fom__preview svg {
	width: 64px;
	height: 64px;
	opacity: 0.7;
	transition: opacity 0.25s ease;
}

.ostoya-fom__preview:hover {
	transform: scale(2.6);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	z-index: 10;
}

.ostoya-fom__preview:hover svg {
	opacity: 1;
}

/* Notitie veld onder de maat-inputs */
.ostoya-fom__field--notitie {
	margin-top: 12px;
}

.ostoya-fom__field--notitie input[type="text"] {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
	line-height: 1.3;
	min-height: 40px;
}

.ostoya-fom__field--notitie input[type="text"]:focus {
	outline: none;
	border-color: rgba(0, 0, 0, 0.4);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.ostoya-fom__warn {
	display: none;
	margin-top: 10px;
	padding: 8px 12px;
	font-size: 12px;
	background: #fff3cd;
	color: #664d03;
	border-radius: 4px;
	border-left: 3px solid #ffc107;
}

.ostoya-fom__warn.is-visible {
	display: block;
}

.ostoya-fom__totals {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

.ostoya-fom__total-card {
	background: rgba(0, 0, 0, 0.025);
	border-radius: 6px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ostoya-fom__total-label {
	font-size: 12px;
	opacity: 0.7;
	font-weight: 400;
}

.ostoya-fom__total-value {
	font-size: 20px;
	font-weight: 500;
}

.ostoya-fom__notice {
	margin: 10px 0 12px;
	padding: 10px 14px;
	font-size: 13px;
	line-height: 1.45;
	background: #eaf4ec;
	border-left: 3px solid #5a8d62;
	color: #2c4830;
	border-radius: 4px;
}

.ostoya-fom__notice strong {
	font-weight: 600;
}

.ostoya-fom__info {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
	font-size: 12px;
	opacity: 0.65;
}

.ostoya-fom__info span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Disable add-to-cart when invalid */
.ostoya-fom-invalid .single_add_to_cart_button {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
}

/* Hide WooCommerce's native variation-price display on calculator-enabled
   product pages. The calculator's own "Prijs" card shows the actual
   calculated price; the native single-variation price would be confusing. */
.ostoya-fom-active form.cart .woocommerce-variation-price,
.ostoya-fom-active .single_variation .woocommerce-variation-price,
.ostoya-fom-active form.cart .single_variation .price {
	display: none !important;
}

/* Responsive */
@media (max-width: 640px) {
	.ostoya-fom__row,
	.ostoya-fom__totals {
		grid-template-columns: 1fr;
	}
	.ostoya-fom__measure-inputs {
		grid-template-columns: 1fr 1fr;
	}
	.ostoya-fom__preview {
		grid-column: span 2;
		min-height: 80px;
	}
}
