/**
 * Enquiry form styles.
 *
 * Reads the active theme's custom properties where they exist and falls back
 * to neutral values where they do not, so the form belongs to whatever theme
 * it lands in rather than carrying its own look everywhere.
 */

.frenq-form-wrap {
	--frenq-ground: var(--lk-ground-2, #f4f4f5);
	--frenq-text: var(--lk-paper, #17181c);
	--frenq-dim: var(--lk-dim, #52525b);
	--frenq-line: var(--lk-line, rgba(0, 0, 0, 0.18));
	--frenq-accent: var(--lk-gold, #c9a227);
	--frenq-accent-text: #101114;

	max-width: 46rem;
}

.frenq-form__heading { margin-bottom: 1rem; }

.frenq-grid {
	display: grid;
	gap: 0 1.25rem;
	grid-template-columns: 1fr;
}

@media (min-width: 620px) {
	.frenq-grid { grid-template-columns: 1fr 1fr; }
}

.frenq-field { margin: 0 0 1.1rem; }

.frenq-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 0.35rem;
	color: var(--frenq-text);
}

.frenq-req { color: var(--frenq-accent); }

.frenq-field input,
.frenq-field select,
.frenq-field textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	background: var(--frenq-ground);
	border: 1px solid var(--frenq-line);
	color: var(--frenq-text);
	font: inherit;
	font-size: 0.95rem;
	border-radius: 2px;
}

.frenq-field textarea { resize: vertical; min-height: 8rem; }

.frenq-field input:focus,
.frenq-field select:focus,
.frenq-field textarea:focus {
	outline: 2px solid var(--frenq-accent);
	outline-offset: 1px;
	border-color: var(--frenq-accent);
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.frenq-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.frenq-btn {
	display: inline-block;
	padding: 0.85rem 1.7rem;
	background: var(--frenq-accent);
	border: 1px solid var(--frenq-accent);
	color: var(--frenq-accent-text);
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	border-radius: 2px;
}

.frenq-btn:hover { filter: brightness(1.08); }

.frenq-notice {
	border: 1px solid var(--frenq-line);
	border-left-width: 3px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	background: var(--frenq-ground);
}

.frenq-notice p:last-child { margin-bottom: 0; }
.frenq-notice--ok { border-left-color: var(--frenq-accent); }
.frenq-notice--error { border-left-color: #c0392b; }
.frenq-notice ul { margin: 0.5rem 0 0 1.1rem; }

/* Editor placeholder */
.frenq-block-fields { font-size: 0.85rem; opacity: 0.8; }

/* Modal */

.frenq-dialog {
	border: 1px solid var(--frenq-line, rgba(0,0,0,0.2));
	background: var(--frenq-ground, #fff);
	color: var(--frenq-text, #111);
	padding: 0;
	max-width: min(42rem, calc(100vw - 2rem));
	width: 100%;
	max-height: min(90vh, 48rem);
}

.frenq-dialog::backdrop {
	background: rgba(8, 9, 11, 0.72);
	backdrop-filter: blur(2px);
}

.frenq-dialog__inner {
	position: relative;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	overflow-y: auto;
	max-height: min(90vh, 48rem);
}

.frenq-dialog__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: none;
	border: 0;
	color: var(--frenq-dim, #52525b);
	font-size: 1.75rem;
	line-height: 1;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
}

.frenq-dialog__close:hover { color: var(--frenq-accent, #c9a227); }

/* The dialog inherits theme variables from the page, but ::backdrop does not
   participate in normal inheritance, so the wrapper carries them too. */
.frenq-modal-wrap {
	--frenq-ground: var(--lk-ground-2, #f4f4f5);
	--frenq-text: var(--lk-paper, #17181c);
	--frenq-dim: var(--lk-dim, #52525b);
	--frenq-line: var(--lk-line, rgba(0, 0, 0, 0.18));
	--frenq-accent: var(--lk-gold, #c9a227);
	display: inline-block;
}

.frenq-modal-open { text-decoration: none; display: inline-block; }
