/*
 * Contactformulier-popup — doos altijd puur wit met een fijn zwart kader
 * (zelfde 1px-lijn als de pill-knoppen), ongeacht de gekozen sitekleur.
 * Stijlen dekken zowel het ingebouwde formulier (.gm-form) als Contact Form 7.
 */

.gm-modal {
	position: fixed;
	inset: 0;
	z-index: 200000;                 /* boven alles, ook de landingsoverlay */
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: var(--gm-bg, #fff);  /* volledig dekkend, in de gekozen sitekleur */
}

.gm-modal.open {
	display: flex;
}

body.gm-modal-open {
	overflow: hidden;   /* geen scroll achter de popup */
}

.gm-modal__box {
	box-sizing: border-box;
	width: min(680px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;                /* altijd wit, volgt de kleurkiezer NIET */
	color: #000;
	border: 1px solid #000;          /* fijn zwart kader, zelfde dikte als de pills */
	padding: clamp(28px, 5vw, 56px);
}

.gm-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 clamp(20px, 3vh, 36px);
}

.gm-modal__title {
	margin: 0;
	font-size: clamp(28px, 4vw, 56px);
	font-weight: 400;
	line-height: 1.05;
	color: #000;
}

.gm-modal__close {
	flex: none;
	border: 1px solid #000;
	border-radius: 100px;
	background: transparent;
	color: #000;
	font-size: 18px;
	line-height: 1;
	width: 44px;
	height: 44px;
	cursor: pointer;
	transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.gm-modal__close:hover {
	background: #000;
	color: #fff;
}

/* ---- formulier (eigen terugval én Contact Form 7) ---- */
.gm-form,
.gm-modal__box .wpcf7 form {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2.5vh, 26px);
}

.gm-modal__box label {
	display: block;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 8px;
	color: #000;
}

.gm-modal__box input[type="text"],
.gm-modal__box input[type="email"],
.gm-modal__box input[type="tel"],
.gm-modal__box input[type="url"],
.gm-modal__box input[type="number"],
.gm-modal__box textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	background: #fff;
	border: 1px solid #000;
	color: #000;
	font: inherit;
	font-size: clamp(16px, 1.4vw, 20px);
	padding: 14px 16px;
	border-radius: 0;               /* flat */
	appearance: none;
}

.gm-modal__box textarea {
	min-height: 140px;
	resize: vertical;
}

.gm-modal__box input:focus-visible,
.gm-modal__box textarea:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* Honeypot (eigen formulier): onzichtbaar voor mensen. */
.gm-form .gm-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Verstuur-knop: pill, zoals de andere knoppen op de site. */
.gm-form__submit,
.gm-modal__box .wpcf7 input[type="submit"],
.gm-modal__box .wpcf7 button[type="submit"] {
	align-self: flex-start;
	border: 1px solid #000;
	border-radius: 100px;
	background: #fff;
	color: #000;
	font: inherit;
	font-size: clamp(16px, 1.6vw, 22px);
	padding: 18px 44px;
	min-width: 200px;
	cursor: pointer;
	appearance: none;
	transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.gm-form__submit:hover:not(:disabled),
.gm-modal__box .wpcf7 input[type="submit"]:hover,
.gm-modal__box .wpcf7 button[type="submit"]:hover {
	background: #000;
	color: #fff;
}

.gm-form__submit:disabled {
	opacity: 0.5;
	cursor: wait;
}

.gm-form__status {
	margin: 0;
	font-size: clamp(15px, 1.3vw, 19px);
	line-height: 1.4;
	min-height: 1.4em;
	color: #000;
}

/* ---- Contact Form 7: meldingen in dezelfde flat stijl ---- */
.gm-modal__box .wpcf7-response-output {
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #000;
	font-size: clamp(14px, 1.2vw, 17px);
	color: #000;
}

.gm-modal__box .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #000;
}

.gm-modal__box .wpcf7-spinner {
	margin: 0 0 0 12px;
}
