/* ============================================================
   WAI CONTACT FORM — front-end styles
   Brand: navy #003161, red #b5121b, Montserrat
   ============================================================ */
.waic-form-section {
	font-family: Montserrat, Arial, Helvetica, sans-serif;
	color: #38455a;
}
.waic-form-inner {
	max-width: 720px;
	margin: 0 auto;
}

.waic-form-heading {
	font-family: Montserrat, Arial, Helvetica, sans-serif;
	font-size: 30px;
	font-weight: 800;
	color: #0e0e0e;
	line-height: 1.2;
	margin: 0 0 12px;
}
.waic-form-note {
	font-size: 14px;
	line-height: 1.6;
	color: #6b7a90;
	margin: 0 0 28px;
	padding: 12px 16px;
	background: #f5f8fc;
	border-left: 3px solid #003161;
	border-radius: 2px;
}

/* Alerts */
.waic-alert {
	font-size: 15px;
	line-height: 1.5;
	padding: 14px 18px;
	border-radius: 4px;
	margin: 0 0 24px;
}
.waic-alert--success {
	background: #e6f4ea;
	color: #1a7f3c;
	border: 1px solid #b7e0c4;
}
.waic-alert--error {
	background: #fdeaea;
	color: #b5121b;
	border: 1px solid #f3c2c2;
}

/* Form layout */
.waic-form { margin: 0; }
.waic-field { margin: 0 0 20px; }
.waic-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.waic-label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #1a2233;
	margin: 0 0 8px;
}
.waic-req { color: #b5121b; }

.waic-input {
	width: 100%;
	box-sizing: border-box;
	font-family: Montserrat, Arial, Helvetica, sans-serif;
	font-size: 15px;
	color: #1a2233;
	background: #fff;
	border: 1px solid #cfd6df;
	border-radius: 4px;
	padding: 13px 15px;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.waic-input:focus {
	outline: none;
	border-color: #005da5;
	box-shadow: 0 0 0 3px rgba(0, 93, 165, .15);
}
.waic-input::placeholder { color: #9aa7b5; }
.waic-textarea { resize: vertical; min-height: 120px; }

/* Radio choices */
.waic-choice-group {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.waic-choice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #38455a;
	padding: 12px 22px;
	border: 1px solid #cfd6df;
	border-radius: 4px;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease;
	user-select: none;
}
.waic-choice input { accent-color: #003161; width: 16px; height: 16px; }
.waic-choice:hover { border-color: #005da5; }
.waic-choice:has(input:checked),
.waic-choice.waic-choice--selected {
	border-color: #003161;
	background: #f5f8fc;
}

/* Captcha */
.waic-field--captcha .waic-label {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.waic-captcha-q {
	display: inline-block;
	font-weight: 800;
	color: #003161;
	background: #eef3f9;
	padding: 4px 12px;
	border-radius: 4px;
	letter-spacing: .04em;
}
.waic-captcha-input { max-width: 160px; }

/* Honeypot — visually hidden but present for bots */
.waic-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit */
.waic-actions { margin-top: 8px; }
.waic-submit {
	font-family: Montserrat, Arial, Helvetica, sans-serif;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #b5121b;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	border: none;
	border-radius: 4px;
	padding: 15px 40px;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.waic-submit:hover { background: #8f0f16; transform: translateY(-1px); }
.waic-submit:active { transform: translateY(0); }

/* Inline validation state */
.waic-input.waic-invalid,
.waic-choice-group.waic-invalid {
	border-color: #b5121b;
	box-shadow: 0 0 0 3px rgba(181, 18, 27, .12);
}

@media (max-width: 600px) {
	.waic-form-heading { font-size: 26px; }
	.waic-row { grid-template-columns: 1fr; gap: 0; }
	.waic-submit { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════
   APPOINTMENT STEP
   Rendered only when WAI Booking Manager is active. Deliberately built from
   the same tokens as the rest of this form rather than importing the booking
   manager's stylesheet — the point of putting the calendar here was to keep
   this plugin's look.
   ═══════════════════════════════════════════════════════════════════════ */

.waic-checkline {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	cursor: pointer;
	font-size: .95rem;
	color: #1a2233;
	font-weight: 600;
}
.waic-checkline input { margin-top: .2rem; width: 18px; height: 18px; accent-color: #b5121b; flex: none; }

.waic-booking-panel {
	margin-top: 1rem;
	padding: 1.25rem;
	border: 1px solid #cfd6df;
	border-left: 4px solid #005da5;
	background: #f5f8fc;
}

.waic-booking-help { margin: 0 0 1rem; font-size: .88rem; color: #38455a; line-height: 1.5; }

.waic-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.waic-cal-title { margin: 0; font-size: 1rem; font-weight: 700; color: #003161; text-transform: uppercase; letter-spacing: .04em; }
.waic-cal-arrow {
	border: 1px solid #cfd6df; background: #fff; color: #003161;
	width: 34px; height: 34px; line-height: 1; cursor: pointer;
	font-size: 1rem; transition: background .2s, border-color .2s, color .2s;
}
.waic-cal-arrow:hover { background: #005da5; border-color: #005da5; color: #fff; }
.waic-cal-arrow:focus-visible { outline: 3px solid #003161; outline-offset: 2px; }

.waic-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.waic-cal-dow {
	text-align: center; font-size: .65rem; font-weight: 700; letter-spacing: .1em;
	text-transform: uppercase; color: #6b7a90; padding: .35rem 0 .5rem;
}
.waic-cal-day {
	text-align: center; padding: .6rem .2rem; font-size: .9rem; font-weight: 600;
	color: #003161; background: #fff; border: 1px solid #cfd6df; cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}
.waic-cal-day:hover { border-color: #005da5; color: #005da5; background: #eef4fb; }
.waic-cal-day--on,
.waic-cal-day--on:hover { background: #005da5; border-color: #005da5; color: #fff; }
/* Today gets a ring, not a fill, so it can't be mistaken for the selection. */
.waic-cal-day--today:not(.waic-cal-day--on) { box-shadow: inset 0 0 0 2px #003161; }
.waic-cal-day--off {
	background: #eef1f5; border-color: #e2e7ee; color: #a7b2c0;
	font-weight: 400; cursor: default; pointer-events: none;
}
.waic-cal-day:focus-visible { outline: 3px solid #003161; outline-offset: 2px; }

.waic-slots-label {
	margin: 1rem 0 .5rem; font-size: .7rem; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; color: #003161;
}
.waic-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.waic-slot {
	padding: .6rem .4rem; font-size: .85rem; font-weight: 600; font-family: inherit;
	color: #003161; background: #fff; border: 1px solid #cfd6df; cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}
.waic-slot:hover { border-color: #005da5; color: #005da5; }
.waic-slot--on { background: #005da5; border-color: #005da5; color: #fff; }
.waic-slot:focus-visible { outline: 3px solid #003161; outline-offset: 2px; }

.waic-cal-msg { margin: 0; padding: 1.25rem 0; text-align: center; font-size: .88rem; color: #6b7a90; }
.waic-cal-msg--error { color: #b5121b; font-weight: 600; }

.waic-booking-chosen {
	margin: 1rem 0 0; padding: .7rem .9rem; background: #fff;
	border-left: 4px solid #b5121b; font-size: .9rem; font-weight: 600; color: #1a2233;
}

@media (max-width: 600px) {
	.waic-slots { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
	.waic-cal-day { padding: .5rem .1rem; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
	.waic-cal-day, .waic-slot, .waic-cal-arrow { transition: none; }
}

/* Appointment button — the visible way in. Outlined navy so it reads as a
   secondary action and doesn't compete with the red Send Message. */
.waic-book-btn {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-family: Montserrat, Arial, Helvetica, sans-serif;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #003161;
	background: #fff;
	border: 2px solid #003161;
	border-radius: 999px;
	padding: .8rem 1.5rem;
	margin: 0 0 .85rem;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.waic-book-btn:hover { background: #003161; color: #fff; }
.waic-book-btn:focus-visible { outline: 3px solid #005da5; outline-offset: 3px; }
.waic-book-btn--on { background: #005da5; border-color: #005da5; color: #fff; }
.waic-book-btn--on:hover { background: #004a85; border-color: #004a85; }

.waic-book-btn-ico { display: inline-flex; }
.waic-book-btn-ico svg { width: 17px; height: 17px; display: block; }

@media (max-width: 600px) {
	.waic-book-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.waic-book-btn { transition: none; }
}

/* Appointment choice sits in the same group as Phone / Email and inherits
   .waic-choice wholesale — only the selected tint differs, so the calendar
   opening is visibly tied to that choice. */
.waic-choice--appt input:checked ~ span { color: #005da5; }

/* ═══════════════════════════════════════════════════════════════════════
   [wai_booking_cta] — promo band

   Matched to the GoFundMe band in wai-branches so the two read as one
   component: #4a7fd5, 135px min-height, 1140px inner, 30px gap, and the
   same #eaf1fb pill. Values copied from .waib-gofundme rather than
   re-invented, because they sit on different pages of the same site.
   ═══════════════════════════════════════════════════════════════════════ */

.waic-cta-band {
	--waic-cta-bg: #4a7fd5;
	width: 100%;
	box-sizing: border-box;
	background-color: var(--waic-cta-bg);
	min-height: 135px;
	/* Column, so the note stacks under the row rather than sitting outside
	   the band on white. */
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px 20px;
	font-family: Montserrat, Arial, Helvetica, sans-serif;
	/* No trailing gap — the band is meant to meet the footer. If white still
	   shows beneath it, that space belongs to the page section wrapping the
	   shortcode, not to this. */
	margin-bottom: 0;
}

.waic-cta-inner {
	max-width: 1140px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 30px;
}

.waic-cta-msg {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.waic-cta-eyebrow {
	margin: 0;
	color: rgba(255, 255, 255, .92);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	line-height: 1.4;
}

.waic-cta-title {
	margin: 0;
	color: #fff;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

.waic-cta-meta {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, .92);
	font-size: .82rem;
	font-weight: 600;
}
/* Divider drawn rather than typed, so it can't wrap onto its own line. */
.waic-cta-meta span + span::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 11px;
	margin-right: 10px;
	background: rgba(255, 255, 255, .5);
	vertical-align: -1px;
}

.waic-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	background: #eaf1fb;
	color: #1a2233;
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .5px;
	text-decoration: none;
	padding: 14px 30px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background-color .2s ease, transform .2s ease;
}
.waic-cta-btn:hover { background: #fff; transform: translateY(-1px); color: #1a2233; }
.waic-cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.waic-cta-btn-arrow { color: #b5121b; }

.waic-cta-note {
	max-width: 880px;
	margin: 18px auto 0;
	padding: 0;
	font-family: Montserrat, Arial, Helvetica, sans-serif;
	font-size: .88rem;
	line-height: 1.6;
	text-align: center;
	color: rgba(255, 255, 255, .92);
}
.waic-cta-note p:last-child { margin-bottom: 0; }
.waic-cta-note p { margin: 0 0 .6rem; }
.waic-cta-note a { color: #fff; font-weight: 700; text-decoration: underline; }
.waic-cta-note a:hover { color: #eaf1fb; }

@media (max-width: 700px) {
	.waic-cta-inner { gap: 18px; }
	.waic-cta-title { font-size: 1.15rem; }
	.waic-cta-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.waic-cta-btn { transition: none; }
	.waic-cta-btn:hover { transform: none; }
}
