/* ==========================================================================
   NounCity — enquiry forms
   Loaded only on pages that contain a form shortcode.
   Tokens come from the theme, with literal fallbacks so the form stays
   usable under any theme.
   ========================================================================== */

.nc-enquiry {
	max-width: 44rem;
}

.nc-enquiry__form {
	display: flex;
	flex-direction: column;
}

.nc-enquiry .nc-field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	margin-bottom: 1.25rem;
}

.nc-enquiry .nc-field__label {
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 600;
	color: var(--wp--preset--color--ink, #1C1C1E);
}

.nc-enquiry .nc-field__required {
	color: var(--wp--preset--color--error, #B91C1C);
	margin-inline-start: 0.125rem;
}

.nc-enquiry .nc-field__hint {
	margin: 0;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	line-height: 1.5;
	color: var(--wp--preset--color--slate-600, #60606C);
}

.nc-enquiry .nc-input,
.nc-enquiry .nc-textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 0.875rem;
	background-color: var(--wp--preset--color--slate-100, #F2F2F4);
	border: 1.5px solid var(--wp--preset--color--slate-200, #E6E6E8);
	border-radius: var(--wp--custom--radius--sm, 6px);
	color: var(--wp--preset--color--ink, #1C1C1E);
	/* 16px stops iOS Safari zooming the viewport on focus. */
	font-size: 1rem;
	line-height: 1.5;
	font-family: inherit;
}

.nc-enquiry .nc-textarea {
	min-height: 9rem;
	resize: vertical;
}

.nc-enquiry .nc-input:focus,
.nc-enquiry .nc-textarea:focus {
	outline: none;
	background-color: var(--wp--preset--color--white, #FFFFFF);
	border-color: var(--wp--preset--color--saffron, #FD7207);
	box-shadow: 0 0 0 3px rgb(253 114 7 / 0.28);
}

.nc-enquiry [aria-invalid="true"] {
	border-color: var(--wp--preset--color--error, #B91C1C);
	background-color: #FEF5F5;
}

.nc-enquiry .nc-field__error {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 500;
	color: var(--wp--preset--color--error, #B91C1C);
}

/* Colour alone never carries the error — the glyph does too. */
.nc-enquiry .nc-field__error::before {
	content: "!";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
	background-color: var(--wp--preset--color--error, #B91C1C);
	color: #FFFFFF;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
}

.nc-enquiry .nc-charcount {
	font-size: var(--wp--preset--font-size--micro, 0.75rem);
	color: var(--wp--preset--color--slate-600, #60606C);
	text-align: end;
	font-variant-numeric: tabular-nums;
}

.nc-enquiry .nc-charcount--over {
	color: var(--wp--preset--color--error, #B91C1C);
	font-weight: 600;
}

.nc-enquiry .nc-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	line-height: 1.55;
	color: var(--wp--preset--color--slate-700, #4A4A54);
	cursor: pointer;
}

.nc-enquiry .nc-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.1rem;
	accent-color: var(--wp--preset--color--saffron, #FD7207);
}

.nc-enquiry .nc-button {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 0.5rem;
	padding: 0.875rem 1.75rem;
	/* Ink on saffron is 6.15:1; white on saffron would fail AA. */
	background-color: var(--wp--preset--color--saffron, #FD7207);
	color: var(--wp--preset--color--ink, #1C1C1E);
	border: 0;
	border-radius: var(--wp--custom--radius--md, 10px);
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.nc-enquiry .nc-button:hover {
	background-color: var(--wp--preset--color--saffron-600, #DF6202);
}

.nc-enquiry .nc-button[aria-disabled="true"] {
	opacity: 0.6;
	cursor: progress;
}

.nc-enquiry .nc-notice {
	padding: 1rem 1.125rem;
	margin-bottom: 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--md, 10px);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
}

.nc-enquiry .nc-notice p {
	margin: 0;
}

.nc-enquiry .nc-notice--success {
	background-color: #E7F3F1;
	border-color: #A8D3CC;
	color: #0F766E;
}

.nc-enquiry .nc-notice--error {
	background-color: #FDECEC;
	border-color: #F0B9B9;
	color: #B91C1C;
}

/* Honeypot: off-screen, not display:none, which bots skip. */
.nc-enquiry .nc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Admin list pills */
.nc-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	background: #F2F2F4;
	color: #4A4A54;
}

.nc-pill--corporate {
	background: #FEE8D8;
	/* saffron-800 — #B44F01 on this fill is 4.37:1 and fails AA. */
	color: #903F01;
}
