/* Pilgrim enquiry form — matches the Contact page design.
   "html" prefixes keep these over Elementor's site-wide heading and button styles. */

.pg-enquiry {
	--pge-ink: var(--pg-black, #0F1512);
	--pge-muted: var(--pg-muted, #4A4A44);
	--pge-line: rgba(15, 21, 18, .2);
	box-sizing: border-box;
	padding: 40px;
	background: var(--pg-sand, #EBE8E1);
	color: var(--pge-ink);
	font-family: var(--pg-sans, 'Jost', sans-serif);
	scroll-margin-top: calc(var(--pg-header-h, 86px) + 24px);
}
.pg-enquiry *, .pg-enquiry *::before, .pg-enquiry *::after { box-sizing: border-box; }
.pg-enquiry [hidden] { display: none !important; }

html .pg-enquiry .pg-enquiry__heading,
html .pg-enquiry .pg-enquiry__done-heading {
	margin: 0 0 20px;
	font-family: var(--pg-serif, 'Cormorant Garamond', serif);
	font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: 0; text-transform: none;
	color: var(--pge-ink);
}

.pg-enquiry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.pg-enquiry__field { margin: 0 0 22px; }

.pg-enquiry label,
.pg-enquiry .pg-enquiry__label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	font-size: 11px; font-weight: 500; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase;
	color: var(--pge-ink);
}
.pg-enquiry label i { font-style: normal; letter-spacing: .1em; text-transform: none; color: #6A6A62; }

html .pg-enquiry input[type="text"],
html .pg-enquiry input[type="email"],
html .pg-enquiry input[type="tel"],
html .pg-enquiry textarea {
	display: block; width: 100%; min-height: 50px; margin: 0;
	padding: 14px 16px;
	border: 1px solid rgba(15, 21, 18, .2); border-radius: 0;
	background: var(--pg-stone, #F5F3EE);
	color: var(--pge-ink);
	font-family: inherit; font-size: 15px; line-height: 1.5;
	box-shadow: none;
}
html .pg-enquiry textarea { min-height: 140px; resize: vertical; }
html .pg-enquiry input:focus,
html .pg-enquiry textarea:focus { outline: 2px solid var(--pg-push, #B34A55); outline-offset: 0; border-color: transparent; box-shadow: none; }
html .pg-enquiry [aria-invalid="true"] { border-color: #B3261E; background: #FBF1F0; }

.pg-enquiry__error { margin: 6px 0 0; font-size: 13px; color: #B3261E; }
.pg-enquiry__error:empty { display: none; }
.pg-enquiry__alert { margin: 0 0 20px; padding: 12px 14px; border-left: 4px solid #B3261E; background: #FBF1F0; font-size: 14px; }

/* Topic chips (radio buttons) */
.pg-enquiry__topics { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.pg-enquiry__topics legend { float: none; width: auto; }
.pg-enquiry__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-enquiry__chip { position: relative; display: inline-flex; }
.pg-enquiry__chip input {
	position: absolute; inset: 0; width: 100%; height: 100%;
	margin: 0; opacity: 0; cursor: pointer;
}
html .pg-enquiry .pg-enquiry__chip label {
	display: inline-flex; align-items: center;
	min-height: 44px; margin: 0; padding: 10px 18px;
	border: 1px solid rgba(15, 21, 18, .33);
	background: var(--pg-stone, #F5F3EE);
	color: var(--pge-ink);
	font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.3; text-transform: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
html .pg-enquiry .pg-enquiry__chip input:hover + label { border-color: var(--pge-ink); }
html .pg-enquiry .pg-enquiry__chip input:checked + label { background: var(--pge-ink); border-color: var(--pge-ink); color: #fff; }
html .pg-enquiry .pg-enquiry__chip input:focus-visible + label { outline: 2px solid var(--pg-push, #B34A55); outline-offset: 2px; }

/* Honeypot: hidden from people, visible to bots */
.pg-enquiry__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.pg-enquiry__privacy { margin: -6px 0 18px; font-size: 13px; color: var(--pge-muted); }
.pg-enquiry__privacy a { color: inherit; }

html .pg-enquiry .pg-btn { border: 0; cursor: pointer; font-family: inherit; padding: 14px 28px; }
.pg-enquiry__submit[disabled] { opacity: .6; cursor: progress; }
.pg-enquiry__note { margin: 16px 0 0; font-size: 13px; color: var(--pge-muted); }

/* Thank-you state */
.pg-enquiry__done { padding: 56px 16px; text-align: center; }
html .pg-enquiry .pg-enquiry__done-heading { font-size: 40px; margin-bottom: 12px; }
.pg-enquiry__done-heading:focus { outline: none; }
.pg-enquiry__done p { max-width: 380px; margin: 0 auto 20px; }

@media (max-width: 767px) {
	.pg-enquiry { padding: 24px; }
	.pg-enquiry__row { grid-template-columns: 1fr; }
}

/* Quiz banner, shown when "Choosing a class" is picked */
.pg-enquiry__hint { display: none; align-items: center; gap: 14px; margin: -6px 0 22px; padding: 14px 18px; background: var(--pg-blush, #EFC5C5); color: var(--pg-black, #0F1512); }
.pg-enquiry__topics:has(.pg-enquiry__hint-trigger:checked) + .pg-enquiry__hint { display: flex; animation: pg-enq-hint .35s ease; }
.pg-enquiry__hint-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.pg-enquiry__hint p { margin: 0; font-size: 15px; line-height: 1.45; }
html body .pg-enquiry__hint a { margin-left: 4px; font-weight: 500; color: var(--pg-black, #0F1512); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
html body .pg-enquiry__hint a:hover { color: var(--pg-push, #B34A55); }
@keyframes pg-enq-hint { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pg-enquiry__topics:has(.pg-enquiry__hint-trigger:checked) + .pg-enquiry__hint { animation: none; } }
