/**
 * U-Consults Scheduling — front-end booking form styles.
 * Self-contained: palette variables are declared on .ucs-booking so the
 * form looks native inside the U-Consults theme and still works without it.
 * All classes are prefixed `ucs-`.
 */

.ucs-booking {
	--ucs-navy: #10233b;
	--ucs-navy-deep: #0b1a2e;
	--ucs-navy-soft: #1b3554;
	--ucs-gold: #c5a15d;
	--ucs-gold-deep: #a8853f;
	--ucs-gold-soft: #f3e9d3;
	--ucs-offwhite: #f6f4ef;
	--ucs-white: #ffffff;
	--ucs-text: #2b3a4f;
	--ucs-muted: #5d6b7f;
	--ucs-line: #e6e0d3;
	--ucs-radius: 14px;
	--ucs-error-bg: #fdf0ef;
	--ucs-error-line: #e0b4ae;
	--ucs-error-text: #7a2e25;

	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--ucs-text);
	max-width: 760px;
	margin: 0 auto;
}

.ucs-booking *,
.ucs-booking *::before,
.ucs-booking *::after {
	box-sizing: border-box;
}

.ucs-booking__form {
	background: var(--ucs-white);
	border: 1px solid var(--ucs-line);
	border-radius: var(--ucs-radius);
	padding: 28px;
	box-shadow: 0 12px 32px rgba(16, 35, 59, 0.08);
}

.ucs-field {
	margin-bottom: 18px;
}

.ucs-field label,
.ucs-field__label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ucs-navy);
	margin-bottom: 6px;
}

.ucs-field input[type="text"],
.ucs-field input[type="email"],
.ucs-field input[type="tel"],
.ucs-field input[type="date"],
.ucs-field select,
.ucs-field textarea {
	width: 100%;
	padding: 11px 12px;
	font: inherit;
	font-size: 0.95rem;
	color: var(--ucs-text);
	background: var(--ucs-white);
	border: 1px solid var(--ucs-line);
	border-radius: 8px;
}

.ucs-field textarea {
	resize: vertical;
}

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

.ucs-field input:disabled,
.ucs-field select:disabled {
	background: var(--ucs-offwhite);
	color: var(--ucs-muted);
}

.ucs-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

@media (max-width: 640px) {
	.ucs-field-row {
		grid-template-columns: 1fr;
	}
	.ucs-booking__form {
		padding: 20px;
	}
}

.ucs-type-note {
	margin: 8px 0 0;
	padding: 10px 12px;
	font-size: 0.88rem;
	background: var(--ucs-gold-soft);
	border-left: 3px solid var(--ucs-gold);
	border-radius: 6px;
	color: var(--ucs-navy);
}

/* "You will meet with: …" line under the appointment type (since 1.0.3). */
.ucs-type-meet {
	margin: 8px 0 0;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ucs-navy);
}

/* Per-type preparation content: plain text with preserved line
   breaks, rendered under the type note when the type has any. */
.ucs-type-prep {
	margin: 8px 0 0;
	padding: 10px 12px;
	font-size: 0.88rem;
	line-height: 1.55;
	white-space: pre-line;
	background: var(--ucs-offwhite);
	border-left: 3px solid var(--ucs-navy);
	border-radius: 6px;
	color: var(--ucs-text);
}

/* Consultation request form ([uconsults_consult_form]) — shares the
   field, button, and honeypot styles above; adds its own shell. */
.ucs-consult {
	--ucs-navy: #10233b;
	--ucs-navy-deep: #0b1a2e;
	--ucs-navy-soft: #1b3554;
	--ucs-gold: #c5a15d;
	--ucs-gold-deep: #a8853f;
	--ucs-gold-soft: #f3e9d3;
	--ucs-offwhite: #f6f4ef;
	--ucs-white: #ffffff;
	--ucs-text: #2b3a4f;
	--ucs-muted: #5d6b7f;
	--ucs-line: #e6e0d3;
	--ucs-radius: 14px;
	--ucs-error-bg: #fdf0ef;
	--ucs-error-line: #e0b4ae;
	--ucs-error-text: #7a2e25;

	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--ucs-text);
	max-width: 760px;
	margin: 0 auto;
}

.ucs-consult *,
.ucs-consult *::before,
.ucs-consult *::after {
	box-sizing: border-box;
}

.ucs-consult__form {
	background: var(--ucs-white);
	border: 1px solid var(--ucs-line);
	border-radius: var(--ucs-radius);
	padding: 28px;
	box-shadow: 0 12px 32px rgba(16, 35, 59, 0.08);
}

@media (max-width: 640px) {
	.ucs-consult__form {
		padding: 20px;
	}
}

.ucs-consult__intro {
	margin: 0 0 18px;
	font-size: 0.95rem;
	line-height: 1.55;
}

.ucs-consult__error {
	margin-bottom: 18px;
	padding: 12px 14px;
	font-size: 0.92rem;
	background: var(--ucs-error-bg);
	border: 1px solid var(--ucs-error-line);
	border-radius: 8px;
	color: var(--ucs-error-text);
}

.ucs-consult__error p {
	margin: 0 0 6px;
}

.ucs-consult__error p:last-child {
	margin-bottom: 0;
}

.ucs-consult__success {
	padding: 22px;
	font-size: 1rem;
	line-height: 1.55;
	background: var(--ucs-gold-soft);
	border: 1px solid var(--ucs-gold);
	border-radius: var(--ucs-radius);
	color: var(--ucs-navy);
}

.ucs-consult__fineprint {
	margin: 14px 0 0;
	font-size: 0.82rem;
	color: var(--ucs-muted);
}

.ucs-radio-group {
	display: flex;
	gap: 22px;
}

.ucs-radio-group label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--ucs-text);
	margin-bottom: 0;
	cursor: pointer;
}

.ucs-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 42px;
	align-items: flex-start;
}

.ucs-slots__hint {
	margin: 4px 0;
	font-size: 0.9rem;
	color: var(--ucs-muted);
}

.ucs-slot {
	appearance: none;
	padding: 9px 14px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ucs-navy);
	background: var(--ucs-white);
	border: 1px solid var(--ucs-navy);
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.ucs-slot:hover {
	background: var(--ucs-gold-soft);
}

.ucs-slot:focus-visible {
	outline: 2px solid var(--ucs-gold);
	outline-offset: 2px;
}

.ucs-slot--selected,
.ucs-slot--selected:hover {
	background: var(--ucs-navy);
	color: var(--ucs-white);
	border-color: var(--ucs-navy);
}

.ucs-booking__error {
	margin-bottom: 18px;
	padding: 12px 14px;
	font-size: 0.92rem;
	background: var(--ucs-error-bg);
	border: 1px solid var(--ucs-error-line);
	border-radius: 8px;
	color: var(--ucs-error-text);
}

.ucs-booking__success {
	padding: 22px;
	font-size: 1rem;
	line-height: 1.55;
	background: var(--ucs-gold-soft);
	border: 1px solid var(--ucs-gold);
	border-radius: var(--ucs-radius);
	color: var(--ucs-navy);
}

.ucs-submit {
	display: inline-block;
	padding: 13px 28px;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	color: var(--ucs-white);
	background: var(--ucs-navy);
	border: 1px solid var(--ucs-navy);
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ucs-submit:hover {
	background: var(--ucs-navy-soft);
}

.ucs-submit:focus-visible {
	outline: 2px solid var(--ucs-gold);
	outline-offset: 2px;
}

.ucs-submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.ucs-booking__fineprint {
	margin: 14px 0 0;
	font-size: 0.82rem;
	color: var(--ucs-muted);
}

/* Honeypot — visually removed, never seen by real visitors. */
.ucs-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
