/**
 * Taxi Blauw — Gravity Form #1 hero-styling
 */

.tb-form {
	--tb-form-primary: #001397;
	--tb-form-primary-hover: #0018b8;
	--tb-form-foreground: #0f172a;
	--tb-form-muted: #64748b;
	--tb-form-border: #e2e8f0;
	--tb-form-bg: #ffffff;
	--tb-form-primary-5: rgb(0 19 151 / 0.05);
	--tb-form-primary-10: rgb(0 19 151 / 0.1);
	--tb-form-primary-20: rgb(0 19 151 / 0.2);
	--tb-form-error: #dc2626;
	--tb-form-error-ring: rgb(220 38 38 / 0.15);
}

.gform_wrapper:has(.tb-form) {
	margin: 0;
	padding: 0;
	max-width: none;
}

.gform_wrapper:has(.tb-form) .gform_heading {
	display: none;
}

.tb-form .gform_fields {
	display: grid;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tb-form .gfield {
	margin: 0;
	padding: 0;
}

.tb-form .gfield_label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin-bottom: 6px;
	display: block;
}

.tb-form .gfield_required {
	color: var(--tb-form-error);
}

.tb-form .gfield_required_text,
.tb-form .gfield_required_asterisk {
	font-size: 0;
}

.tb-form .gfield_required_asterisk::after {
	content: '*';
	font-size: 11px;
}

/* Inputs, textarea & select */
.tb-form .ginput_container input[type='text'],
.tb-form .ginput_container input[type='tel'],
.tb-form .ginput_container input[type='email'],
.tb-form .ginput_container textarea,
.tb-form .ginput_container select,
.tb-form input[type='text'],
.tb-form input[type='tel'],
.tb-form input[type='email'],
.tb-form textarea,
.tb-form select {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--tb-form-border);
	border-radius: 12px;
	background: #fff;
	color: var(--tb-form-foreground);
	font-size: 14px;
	line-height: 44px;
	transition:
		border-color 0.15s,
		box-shadow 0.15s,
		background 0.15s;
	box-shadow: none;
	outline: none;
}

.tb-form .ginput_container textarea,
.tb-form textarea {
	height: auto;
	min-height: 110px;
	padding: 12px;
	line-height: 1.5;
	resize: vertical;
	background: #fff !important;
	color: var(--tb-form-foreground) !important;
}

/* Bericht: ~50% korter (GF rows/min-height overschrijven anders) */
.gform_wrapper .tb-form .gfield.tb-textarea textarea,
.gform_wrapper .tb-form .gfield.tb-message textarea,
.tb-form .gfield.tb-textarea textarea,
.tb-form .gfield.tb-message textarea,
.tb-form .tb-textarea .ginput_container textarea,
.tb-form .tb-message .ginput_container textarea {
	height: 125px !important;
	min-height: 125px !important;
	max-height: 200px;
}

.tb-form ::placeholder {
	color: color-mix(in srgb, var(--tb-form-muted) 60%, transparent);
}

.tb-form input:focus,
.tb-form textarea:focus,
.tb-form select:focus {
	border-color: var(--tb-form-primary);
	box-shadow: 0 0 0 3px var(--tb-form-primary-20);
}

/* Select arrow (Reden dropdown) */
.tb-form .ginput_container select,
.tb-form select {
	appearance: none;
	-webkit-appearance: none;
	padding: 0 36px 0 12px;
	line-height: 44px;
	background-color: #fff;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}

/* GF theme dubbele pijl verbergen */
.gform_wrapper:has(.tb-form) .select-arrow,
.gform_wrapper:has(.tb-form) .gform-theme__control__select-arrow {
	display: none !important;
}

/* Icon column left */
.tb-form .tb-icon .ginput_container {
	position: relative;
}

.tb-form .tb-icon .ginput_container::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 40px;
	background-color: var(--tb-form-primary-5);
	border-right: 1px solid var(--tb-form-border);
	border-radius: 12px 0 0 12px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	transition: background-color 0.15s;
	pointer-events: none;
}

.tb-form .tb-icon .ginput_container:focus-within::before {
	background-color: var(--tb-form-primary-10);
}

.tb-form .tb-icon .ginput_container input[type='text'],
.tb-form .tb-icon .ginput_container input[type='tel'],
.tb-form .tb-icon .ginput_container input[type='email'],
.tb-form .tb-icon .ginput_container textarea,
.tb-form .tb-icon input,
.tb-form .tb-icon textarea {
	padding-left: 52px !important;
}

/* Bericht: icoonkolom volledige hoogte, icoon bovenaan */
.tb-form .tb-textarea .ginput_container::before {
	bottom: 0;
	height: auto;
	background-position: 11px 13px;
}

.tb-user .ginput_container::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001397' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
}

.tb-phone .ginput_container::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001397' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
}

.tb-mail .ginput_container::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001397' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 6-10 7L2 6'/></svg>");
}

.tb-message .ginput_container::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001397' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
}

/* Submit button */
.gform_wrapper .tb-form .gform_footer,
.tb-form .gform_footer {
	padding: 0;
	margin: 8px 0 0;
	width: 100%;
}

.gform_wrapper .tb-form .gform_footer input[type='submit'],
.gform_wrapper .tb-form .gform_button,
.tb-form .gform_footer input[type='submit'],
.tb-form .gform_button {
	--tb-form-send-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/><path d='m21.854 2.147-10.94 10.939'/></svg>");
	width: 100% !important;
	max-width: none !important;
	height: 44px !important;
	min-height: 44px;
	border-radius: 12px !important;
	border: 0 !important;
	background-color: var(--tb-form-primary) !important;
	background-image: var(--tb-form-send-icon) !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 16px 16px !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding-right: 2.75rem !important;
	cursor: pointer;
	transition:
		background-color 0.15s,
		transform 0.05s;
}

.gform_wrapper .tb-form .gform_button:hover,
.tb-form .gform_button:hover,
.gform_wrapper .tb-form input[type='submit']:hover,
.tb-form input[type='submit']:hover {
	background-color: var(--tb-form-primary-hover) !important;
}

.gform_wrapper .tb-form .gform_button:active,
.tb-form .gform_button:active {
	transform: translateY(1px);
}

/* Inline SVG (wanneer PHP-filter actief is) */
.gform_wrapper .tb-form .gform_button .tb-form-submit-icon,
.gform_wrapper .tb-form .gform_button svg,
.tb-form .gform_button .tb-form-submit-icon,
.tb-form .gform_button svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: inline-block !important;
}

/* Voorkom dubbel icoon; plaats inline-SVG rechts */
.gform_wrapper .tb-form .gform_button:has(svg),
.tb-form .gform_button:has(svg) {
	background-image: none !important;
	padding-right: 2.75rem !important;
	position: relative !important;
}

.gform_wrapper .tb-form .gform_button:has(svg) svg,
.tb-form .gform_button:has(svg) svg {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

/* Validation */
.tb-form .gfield_error input,
.tb-form .gfield_error textarea,
.tb-form .gfield_error select {
	border-color: var(--tb-form-error);
	box-shadow: 0 0 0 3px var(--tb-form-error-ring);
}

.tb-form .gfield_validation_message {
	color: var(--tb-form-error);
	font-size: 12px;
	margin-top: 4px;
}

.tb-form .validation_message {
	color: var(--tb-form-error);
	font-size: 12px;
}

/* Thank-you message */
.tb-thanks {
	text-align: center;
	padding: 8px 0;
}

.tb-thanks-icon {
	width: 56px;
	height: 56px;
	border-radius: 9999px;
	background: var(--tb-form-primary-10);
	color: var(--tb-form-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.tb-thanks-icon svg {
	width: 28px;
	height: 28px;
}

.tb-thanks h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--tb-form-foreground);
	margin: 0 0 4px;
}

.tb-thanks p {
	font-size: 14px;
	color: var(--tb-form-muted);
	margin: 0 0 20px;
}

.tb-thanks-btn {
	display: inline-block;
	height: 40px;
	line-height: 38px;
	padding: 0 16px;
	border-radius: 12px;
	border: 1px solid var(--tb-form-border);
	background: var(--tb-form-bg);
	color: var(--tb-form-foreground);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.15s;
}

.tb-thanks-btn:hover {
	background: var(--tb-muted);
	color: var(--tb-form-foreground);
	text-decoration: none;
}
