/* ==========================================================================
   Frijns theme — contactpagina: infocards, mededeling, formulier
   ========================================================================== */

/* --- Mededeling (kantoor gesloten voor nieuwe cliënten) --- */
.notice-band {
	background: var(--color-tint);
	border: 1px solid var(--color-tint-strong);
	border-left: 5px solid var(--color-primary);
	border-radius: var(--radius-m);
	padding: var(--space-card);
}

/* De kop is een h2 voor de koppenstructuur, maar mag niet zo groot ogen als
   een sectiekop: dit is een mededeling, geen nieuw hoofdstuk. */
.notice-band h2,
.notice-band h3 {
	margin-top: 0;
	margin-bottom: clamp(0.7rem, 1.6vw, 1rem);
	color: var(--color-primary-dark);
	font-size: clamp(1.15rem, 1vw + 0.95rem, 1.5rem);
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.notice-band p {
	margin: 0;
	color: var(--color-text);
	line-height: 1.65;
}

.notice-band p + p {
	margin-top: clamp(0.6rem, 1.4vw, 0.9rem);
}

/* --- Contact-infocards --- */
.contact-card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-m);
	padding: clamp(1.25rem, 2vw, 1.75rem);
	box-shadow: var(--shadow-card);
	height: 100%;
	text-align: center;
}

.contact-card .card-icon {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 0.9rem;
	border-radius: 50%;
}

.contact-card h3 {
	margin: 0 0 0.4rem;
	font-size: var(--wp--preset--font-size--medium, 1.05rem);
}

.contact-card p {
	margin: 0;
	color: var(--color-muted);
	line-height: 1.6;
}

.contact-card a {
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: none;
}

/* Nummer en naam horen op één regel; iets kleiner zodat "(Michel)" er altijd
   bij past, ook in de smalle kolom op telefoons. */
.contact-card__tel {
	font-size: clamp(0.82rem, 0.35vw + 0.74rem, 0.95rem);
	white-space: nowrap;
}

.contact-card a:hover {
	text-decoration: underline;
}

/* --- Kaart & route --- */
.map-section {
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.map-embed {
	border-radius: var(--radius-m);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--color-border);
	line-height: 0;
}

.map-embed iframe {
	width: 100%;
	height: clamp(280px, 34vw, 400px);
	border: 0;
	display: block;
}

.route-panel {
	background: var(--color-tint);
	border-radius: var(--radius-m);
	padding: var(--space-card);
	text-align: center;
}

.route-panel .card-icon {
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--color-white);
}

.route-panel h3 {
	margin: 0 0 0.4rem;
}

.route-panel p {
	color: var(--color-muted);
	margin: 0 0 1.1rem;
}

.route-panel .wp-block-buttons {
	justify-content: center;
	margin-bottom: 0.9rem;
}

.route-panel__link {
	margin-bottom: 0.5rem !important;
}

.route-panel__link a {
	color: var(--color-primary);
	font-weight: 600;
}

.route-panel__note {
	font-size: var(--wp--preset--font-size--small, 0.95rem);
	margin-bottom: 0 !important;
}

/* --- Mobiel: compactere contactpagina --- */
@media (max-width: 781px) {
	/* Contactgegevens als 2x2 grid i.p.v. vier gestapelde blokken */
	.wp-block-columns.contact-cards {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 0.8rem;
	}

	.contact-cards .wp-block-column {
		width: 100% !important;
		flex-basis: auto !important;
	}

	.contact-card {
		padding: 1rem 0.8rem;
	}

	.contact-card .card-icon {
		width: 2.4rem;
		height: 2.4rem;
		margin-bottom: 0.6rem;
	}

	.contact-card h3 {
		font-size: 0.95rem;
	}

	.contact-card p {
		font-size: 0.9rem;
	}

	.notice-band {
		padding: 1.15rem 1rem;
	}

	.contact-form-wrap {
		padding: 1.4rem 1.1rem;
		border-radius: var(--radius-m);
	}

	.route-panel {
		padding: 1.25rem 1rem;
	}
}

/* --- Formulier: meldingen --- */
.form-notice {
	border-radius: var(--radius-s);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-weight: 600;
}

.form-notice--success {
	background: #E7F6EC;
	border: 1px solid #B7E4C7;
	color: #14532D;
}

.form-notice--error {
	background: #FDECEC;
	border: 1px solid #F5C2C7;
	color: #842029;
}

/* Honeypot-veld visueel verbergen (bots zien het wel) */
.frijns-form .form-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Formulier --- */
.contact-form-wrap {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-card);
	padding: clamp(1.5rem, 3.5vw, 3rem);
}

.contact-form-wrap h2 {
	margin-top: 0;
	margin-bottom: 0.5rem;
	text-align: center;
}

/* Introtekst boven het formulier */
.contact-form-wrap > p {
	text-align: center;
	color: var(--color-muted);
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.frijns-form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(1.1rem, 2vw, 1.5rem);
}

.frijns-form .form-field--full {
	grid-column: 1 / -1;
}

/* Eerder naar één kolom: voorkomt kruimelige labels naast elkaar */
@media (max-width: 781px) {
	.frijns-form {
		grid-template-columns: 1fr;
	}

	.frijns-form .form-field--full {
		grid-column: auto;
	}
}

/* Padding en border binnen de veldbreedte houden — anders steken de
   velden op mobiel buiten de kaart */
.frijns-form input,
.frijns-form textarea,
.frijns-form button {
	box-sizing: border-box;
}

/* Velden als kolom; labels onderaan uitlijnen zodat inputs op één lijn
   staan, ook als het ene label over twee regels wrapt */
.frijns-form .form-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.frijns-form label {
	display: flex;
	align-items: flex-end;
	flex: 1;
	gap: 0.25rem;
	font-weight: 600;
	color: var(--color-navy);
	margin-bottom: 0.45rem;
	font-size: var(--wp--preset--font-size--small, 0.95rem);
	line-height: 1.35;
}

/* Verplicht-sterretje in Frijns-blauw */
.frijns-form .req {
	color: var(--color-primary);
	font-weight: 700;
}

.frijns-form input[type='text'],
.frijns-form input[type='tel'],
.frijns-form input[type='email'],
.frijns-form textarea {
	width: 100%;
	padding: 0.85rem 1.05rem;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-s);
	background: #FBFCFE;
	font: inherit;
	color: var(--color-text);
	transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.frijns-form input::placeholder,
.frijns-form textarea::placeholder {
	color: #A6ACC2;
}

.frijns-form input:focus,
.frijns-form textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	background: var(--color-white);
	box-shadow: 0 0 0 3px rgba(21, 40, 179, 0.12);
}

.frijns-form textarea {
	min-height: 9rem;
	resize: vertical;
}

/* Veld met suggestielijst eronder */
.frijns-form .form-field--suggesties {
	position: relative;
}

.frijns-form .woonplaats-lijst {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 5;
	margin: 0.35rem 0 0;
	padding: 0.3rem;
	list-style: none;
	max-height: 15rem;
	overflow-y: auto;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-s);
	box-shadow: 0 4px 12px rgba(10, 18, 64, 0.06), 0 14px 32px rgba(10, 18, 64, 0.14);
}

.frijns-form .woonplaats-lijst[hidden] {
	display: none;
}

.frijns-form .woonplaats-lijst li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.55rem 0.75rem;
	border-radius: var(--radius-s);
	cursor: pointer;
	font-size: var(--wp--preset--font-size--small, 0.95rem);
	color: var(--color-navy);
}

.frijns-form .woonplaats-lijst li:hover,
.frijns-form .woonplaats-lijst li.is-actief {
	background: var(--color-tint);
	color: var(--color-primary);
}

.frijns-form .woonplaats-provincie {
	color: var(--color-muted);
	font-size: 0.85em;
	flex-shrink: 0;
}

/* Veld dat de browser afkeurt */
.frijns-form input.is-onjuist {
	border-color: #C0392B;
}

.frijns-form .form-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: var(--wp--preset--font-size--small, 0.95rem);
	color: var(--color-muted);
}

.frijns-form .form-consent input {
	margin-top: 0.25rem;
	accent-color: var(--color-primary);
	width: 1.1rem;
	height: 1.1rem;
}

.frijns-form button[type='submit'] {
	justify-self: start;
	background: var(--color-primary);
	color: var(--color-white);
	font: inherit;
	font-weight: 600;
	font-size: 1.02rem;
	border: 0;
	border-radius: var(--radius-pill);
	padding: 0.9rem 2.5rem;
	cursor: pointer;
	transition: background-color var(--transition-base), box-shadow var(--transition-base);
	box-shadow: 0 2px 8px rgba(21, 40, 179, 0.18);
}

.frijns-form button[type='submit']:hover {
	background: var(--color-primary-dark);
	box-shadow: 0 4px 14px rgba(21, 40, 179, 0.25);
}

@media (max-width: 640px) {
	.frijns-form button[type='submit'] {
		width: 100%;
	}
}
