/* Consult Armstrat widget — scoped frontend styles
   Font: Helvetica Now Display (loaded by the theme's @font-face declarations).
*/

.caw-widget,
.caw-widget *,
.caw-chooser,
.caw-chooser * {
	font-family: 'Helvetica Now Display' !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.caw-widget {
	--c-bg: #ffffff;
	--c-bg-soft: #fafaf8;
	--c-border: #e8e6e1;
	--c-border-strong: #d8d6d1;
	--c-text: #1a1a1a;
	--c-muted: #7a7a7a;
	/* Widget UI is intentionally monochrome — the brand orange shows up in
	   the emails, not in the calendar / time slots. */
	--c-accent: #1a1a1a;
	--c-accent-soft: #f2f2f0;
	--c-accent-soft-2: #e8e6e1;
	position: relative;
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 0;
	max-width: 1240px;
	height: 620px;
	margin: 32px auto;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	box-shadow: 0 10px 30px rgba(0,0,0,0.06);
	overflow: hidden;
	color: var(--c-text);
}
@media (max-width: 820px) {
	.caw-widget { grid-template-columns: 1fr; height: auto; margin: 0 auto; }
}

/* ===== Host (left) panel ===== */
.caw-widget-host {
	padding: 36px 28px;
	background: var(--c-bg-soft);
	border-right: 1px solid var(--c-border);
	display: flex;
	flex-direction: column;
}
@media (max-width: 820px) {
	.caw-widget-host { border-right: none; border-bottom: 1px solid var(--c-border); padding: 24px 20px; }
}
.caw-host-photo {
	width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
	display: block; margin: 0 0 14px;
	border: 1px solid var(--c-border);
}
.caw-host-eyebrow {
	font-size: 12px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--c-muted);
	margin: 0 0 6px;
	font-weight: 500;
}
.caw-host-photo--placeholder {
	background: var(--c-accent-soft); color: var(--c-accent);
	display: flex; align-items: center; justify-content: center;
	font-size: 30px; font-weight: 600;
}

.caw-host-name-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 0 4px !important;
}
.caw-host-name-row > * { flex: 0 0 auto !important; }
.caw-host-name {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	line-height: 1.2;
	color: var(--c-text);
}
.caw-host-designation {
	font-size: 13px;
	color: var(--c-muted);
	margin: 0 0 24px;
}

.caw-event-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--c-text);
	margin: 0 0 8px;
	line-height: 1.25;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}
.caw-event-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--c-muted);
	font-size: 14px;
	margin-bottom: 16px;
}
.caw-event-meta svg { stroke: currentColor; }

.caw-event-description {
	font-size: 14px;
	color: #444;
	margin: 0 0 16px;
	line-height: 1.55;
}
.caw-host-bio {
	font-size: 13px;
	color: #555;
	margin: 0;
	line-height: 1.55;
}

/* ===== Verified badge (with tooltip) ===== */
.caw-verified-badge {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	flex-shrink: 0; cursor: default;
}
.caw-verified-badge svg { display: block; }
.caw-verified-badge::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%) translateY(2px);
	background: #1a1a1a; color: #fff;
	font-size: 11px; font-weight: 500;
	padding: 4px 8px; border-radius: 4px;
	white-space: nowrap;
	opacity: 0; pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
	letter-spacing: 0.2px;
	z-index: 5;
}
.caw-verified-badge::before {
	content: '';
	position: absolute;
	bottom: calc(100% + 1px);
	left: 50%;
	transform: translateX(-50%) translateY(2px);
	border: 4px solid transparent;
	border-top-color: #1a1a1a;
	opacity: 0; pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.caw-verified-badge:hover::after,
.caw-verified-badge:hover::before {
	opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ===== Lock badge ===== */
.caw-lock-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: #f2f2f0;
	color: #555;
	border: 1px solid #d8d6d1;
	flex-shrink: 0;
	cursor: help;
}
.caw-lock-badge svg { display: block; }
.caw-lock-badge::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(2px);
	background: #1a1a1a; color: #ffffff;
	font-size: 11px; font-weight: 500;
	padding: 5px 9px; border-radius: 4px;
	white-space: nowrap;
	opacity: 0; pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
	letter-spacing: 0.2px;
	z-index: 5;
}
.caw-lock-badge::before {
	content: '';
	position: absolute;
	bottom: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%) translateY(2px);
	border: 4px solid transparent;
	border-top-color: #1a1a1a;
	opacity: 0; pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.caw-lock-badge:hover::after,
.caw-lock-badge:hover::before {
	opacity: 1; transform: translateX(-50%) translateY(0);
}
.caw-event-title .caw-lock-badge { width: 18px; height: 18px; }
.caw-event-title .caw-lock-badge svg { width: 11px; height: 11px; }

/* ===== Scheduler (right) panel ===== */
.caw-widget-scheduler {
	padding: 28px 32px;
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.caw-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.caw-step[hidden] { display: none; }
.caw-step-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
}
.caw-step-heading-group { flex: 1; min-width: 0; }
.caw-step-header h4 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--c-text);
}
.caw-step-subhead {
	font-size: 13px;
	color: var(--c-muted);
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
}
.caw-step-back {
	background: transparent;
	border: none;
	color: var(--c-accent);
	font-size: 13px;
	cursor: pointer;
	padding: 4px 8px;
	text-decoration: underline;
}
.caw-step-back:hover { text-decoration: underline; }

/* Floating Edit button — top-right corner of widget, only shown on details step */
.caw-floating-edit {
	position: absolute;
	top: 14px;
	right: 18px;
	z-index: 10;
	background: transparent;
	border: none;
	color: var(--c-text);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	padding: 4px 8px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.caw-floating-edit:hover { color: #000; }
.caw-floating-edit[hidden] { display: none !important; }
.caw-step-body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

/* ===== Picker — calendar + slot list side-by-side ===== */
.caw-picker {
	flex: 1;
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	gap: 28px;
	min-height: 0; /* allow child overflow:auto */
}
@media (max-width: 820px) {
	.caw-picker { grid-template-columns: 1fr; }
}

/* Calendar column */
.caw-picker-cal {
	display: flex;
	flex-direction: column;
}
.caw-cal-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 0 14px;
}
.caw-cal-month { font-size: 16px; font-weight: 600; color: var(--c-text); }
.caw-cal-nav {
	background: transparent; border: 1px solid var(--c-border); border-radius: 6px;
	width: 32px; height: 32px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--c-text);
}
.caw-cal-nav:hover { background: var(--c-bg-soft); }
.caw-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.caw-cal-dow {
	display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
	font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.6px;
	text-align: center; padding-bottom: 8px;
}
.caw-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.caw-cal-cell {
	position: relative;
	height: 46px;
	display: flex; align-items: center; justify-content: center;
	font-size: 13.5px; font-weight: 500;
	border-radius: 50%;
	cursor: pointer;
	border: 1px solid transparent;
	color: var(--c-text);
	background: var(--c-accent-soft);
	pointer-events: auto;
}
.caw-cal-cell:hover:not(.is-disabled):not(.is-empty) {
	background: #e3e1dc;
}
.caw-cal-cell.is-empty { background: transparent; cursor: default; pointer-events: none; }
.caw-cal-cell.is-disabled {
	color: #c5c5c5; cursor: not-allowed; background: transparent; font-weight: 400;
	pointer-events: none;
}
.caw-cal-cell.is-selected {
	background: var(--c-accent); color: #fff; font-weight: 600;
}
.caw-cal-cell.is-today:not(.is-selected)::after {
	content: '';
	position: absolute;
	bottom: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--c-accent);
}

/* Timezone selector inline at bottom of calendar */
.caw-tz-line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 10px 12px;
	background: var(--c-bg-soft);
	border: 1px solid var(--c-border);
	border-radius: 6px;
}
.caw-tz-icon { color: var(--c-muted); flex-shrink: 0; }
.caw-tz-select {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	font-size: 13px;
	color: var(--c-text);
	cursor: pointer;
	padding: 0;
}

/* Slot list column */
.caw-picker-slots {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
}
.caw-slots-head {
	font-size: 14px;
	color: var(--c-text);
	padding: 4px 0 12px;
	border-bottom: 1px solid var(--c-border);
	margin-bottom: 12px;
}
.caw-slots-head strong { font-weight: 600; }
.caw-slots-head-prompt { color: var(--c-muted); font-weight: 400; }
.caw-time-grid {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow-y: auto;
	padding-right: 4px;
	min-height: 0;
	scrollbar-width: thin;
	scrollbar-color: #c8c6c1 transparent;
}
.caw-time-grid::-webkit-scrollbar { width: 6px; }
.caw-time-grid::-webkit-scrollbar-thumb { background: #c8c6c1; border-radius: 3px; }
.caw-time-grid::-webkit-scrollbar-track { background: transparent; }
.caw-time-slot {
	padding: 13px 0;
	width: 100%;
	text-align: center;
	border: 1.5px solid var(--c-border-strong);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--c-text);
	transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.caw-time-slot:hover { background: var(--c-accent-soft); border-color: var(--c-accent); }
.caw-time-slot.is-selected { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.caw-time-empty {
	text-align: center;
	padding: 32px 16px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.caw-time-empty[hidden] { display: none; }
.caw-time-empty-icon { color: var(--c-muted); opacity: 0.6; }
.caw-time-empty-title { font-size: 14px; color: var(--c-text); margin: 4px 0 0; font-weight: 500; }
.caw-time-empty-hint { font-size: 13px; color: var(--c-muted); margin: 0; }
.caw-loading { text-align: center; padding: 24px 0; color: var(--c-muted); font-size: 13px; }

/* ===== Details form ===== */
.caw-summary-card {
	background: var(--c-bg-soft); border: 1px solid var(--c-border);
	border-radius: 6px; padding: 12px 16px; margin-bottom: 16px;
}
.caw-summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 4px; }
.caw-summary-line:last-child { margin-bottom: 0; }
.caw-summary-line span { color: var(--c-muted); }
.caw-summary-line strong { text-align: right; font-weight: 600; }

.caw-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.caw-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.caw-form-row--tight { gap: 8px; }
.caw-form .caw-field { display: block; margin-bottom: 0; }
.caw-label { display: block; font-size: 12px; font-weight: 500; color: #444; margin-bottom: 5px; letter-spacing: 0.1px; }
.caw-form input[type=text],
.caw-form input[type=email],
.caw-form textarea {
	width: 100%; padding: 9px 12px; font-size: 14px;
	border: 1px solid var(--c-border); border-radius: 6px;
	background: #fff; box-sizing: border-box;
}
.caw-form textarea { resize: vertical; min-height: 44px; }
@media (max-width: 820px) {
	.caw-form-row { grid-template-columns: 1fr; gap: 10px; }
}
.caw-form input:focus, .caw-form textarea:focus, .caw-tz-select:focus {
	outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.caw-field-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--c-muted); }
.caw-field--case input {
	font-weight: 600; letter-spacing: 1px;
}

/* Participants toggle */
.caw-add-participants,
.caw-add-participant-2 {
	background: none;
	border: none;
	color: var(--c-text);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	padding: 6px 0;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.caw-add-participants:hover,
.caw-add-participant-2:hover { color: #000; }
.caw-participants-fields { display: flex; flex-direction: column; gap: 8px; }
.caw-participants-fields[hidden] { display: none !important; }
.caw-participants-fields input[hidden] { display: none !important; }
.caw-participants-fields button[hidden] { display: none !important; }
.caw-participants-fields .caw-label { margin-bottom: 2px; }

/* Safety scroll on details body when content overflows (e.g. case-number + participants expanded) */
.caw-step--details .caw-step-body {
	overflow-y: auto;
	min-height: 0;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: #c8c6c1 transparent;
}
.caw-step--details .caw-step-body::-webkit-scrollbar { width: 6px; }
.caw-step--details .caw-step-body::-webkit-scrollbar-thumb { background: #c8c6c1; border-radius: 3px; }
.caw-step--details .caw-step-body::-webkit-scrollbar-track { background: transparent; }

.caw-form-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.caw-btn {
	display: inline-block; padding: 11px 22px; font-size: 14px; font-weight: 600;
	border-radius: 6px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.caw-btn--primary { background: var(--c-accent); color: #fff; }
.caw-btn--primary:hover { background: #000; }
.caw-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.caw-error {
	background: #fff0ee; border: 1px solid #f7c0b8; color: #8a2010;
	padding: 10px 12px; border-radius: 6px; font-size: 13px;
}

/* ===== Done ===== */
.caw-step--done {
	align-items: center;
	justify-content: center;
}
.caw-done {
	text-align: center;
	max-width: 460px;
	margin: 0 auto;
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
}
.caw-done-check {
	width: 72px; height: 72px; border-radius: 50%;
	background: var(--c-accent-soft); color: var(--c-accent);
	display: inline-flex; align-items: center; justify-content: center;
	margin-bottom: 20px;
}
.caw-done-title { font-size: 26px; font-weight: 600; margin: 0 0 12px; color: var(--c-text); }
.caw-done-summary {
	font-size: 16px;
	color: var(--c-muted);
	margin: 0 0 24px;
	line-height: 1.5;
}
.caw-done-note {
	font-size: 15px;
	color: var(--c-text);
	margin: 0;
	line-height: 1.6;
	background: var(--c-bg-soft);
	border: 1px solid var(--c-border);
	border-radius: 8px;
	padding: 16px 20px;
}

/* ===== Honeypot ===== */
.caw-hp,
.caw-hp * {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	max-width: 1px !important;
	max-height: 1px !important;
	overflow: hidden !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

/* ===== Errors (when host/event missing) ===== */
.caw-error-msg {
	padding: 16px; background: #fff0ee; border: 1px solid #f7c0b8; color: #8a2010;
	border-radius: 6px; max-width: 600px; margin: 32px auto; font-size: 14px;
	font-family: 'Helvetica Now Display' !important;
}

/* ===== Public page wrapper ===== */
body.caw-page-body { background: #ffffff !important; }
.caw-page {
	background: #ffffff;
	padding: 140px 16px 80px;
	min-height: 70vh;
}
.admin-bar .caw-page { padding-top: 172px; }
@media (max-width: 600px) {
	.caw-page { padding: 110px 12px 64px; }
	.admin-bar .caw-page { padding-top: 156px; }
}
.caw-page-inner { max-width: 1240px; margin: 0 auto; position: relative; padding-top: 36px; }
.caw-page .caw-widget { margin: 0; }
.caw-back-link {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	font-size: 13px;
	font-family: 'Helvetica Now Display';
}
.caw-back-link a { color: #555; text-decoration: none; transition: color 0.15s; }
.caw-back-link a:hover { color: #1a1a1a; }

/* ===== Banners (reschedule / cancelled etc.) ===== */
.caw-banner {
	max-width: 1240px;
	margin: 0 auto 16px;
	padding: 14px 20px;
	font-size: 14px;
	line-height: 1.55;
	border-radius: 6px;
	font-family: 'Helvetica Now Display';
}
.caw-banner--info { background: #fff5ec; border: 1px solid #ffd6b3; color: #4a2c10; }
.caw-banner--warn { background: #fff0ee; border: 1px solid #f7c0b8; color: #8a2010; }

/* ===== Reschedule context sidebar (reused inside the widget host panel) ===== */
.caw-context-card {
	background: #ffffff;
	border: 1px solid var(--c-border, #e8e6e1);
	border-radius: 6px;
	padding: 14px 16px;
	margin-top: 16px;
}
.caw-context-label {
	font-size: 11px; color: var(--c-muted, #7a7a7a);
	letter-spacing: 0.5px; text-transform: uppercase; margin-top: 10px;
}
.caw-context-label:first-child { margin-top: 0; }
.caw-context-value { font-size: 14px; font-weight: 600; margin-top: 4px; line-height: 1.3; }
.caw-context-meta { font-size: 12px; color: var(--c-muted, #7a7a7a); margin-top: 2px; }

/* ===== Cancel page ===== */
.caw-cancel-card {
	max-width: 600px;
	margin: 0 auto;
	background: #ffffff;
	border: 1px solid #e8e6e1;
	padding: 36px 32px;
	font-family: 'Helvetica Now Display';
}
.caw-cancel-card * { font-family: 'Helvetica Now Display' !important; }
.caw-cancel-card h2 { font-size: 24px; font-weight: 600; margin: 0 0 18px; }
.caw-cancel-summary { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.caw-cancel-summary td { padding: 8px 0; font-size: 14px; border-bottom: 1px solid #ececec; vertical-align: top; }
.caw-cancel-summary td:first-child { color: #7a7a7a; width: 130px; }
.caw-cancel-reason { display: block; margin-bottom: 20px; }
.caw-cancel-reason textarea {
	width: 100%; padding: 10px 12px; font-size: 14px; box-sizing: border-box;
	border: 1px solid #e8e6e1; border-radius: 6px; min-height: 72px; resize: vertical;
}
.caw-cancel-reason textarea:focus {
	outline: none; border-color: var(--caw-primary, #ff6a00);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--caw-primary, #ff6a00) 12%, white);
}
.caw-cancel-state--done { text-align: center; padding: 16px 0; }
.caw-muted { color: #7a7a7a; font-weight: normal; }
.caw-btn--danger { background: #d9352a; color: #ffffff; border-color: #d9352a; }
.caw-btn--danger:hover { background: #b82e25; border-color: #b82e25; }
.caw-btn--secondary { background: #ffffff; color: #1a1a1a; border: 1px solid #e8e6e1; }
.caw-btn--secondary:hover { border-color: var(--caw-primary, #ff6a00); color: var(--caw-primary, #ff6a00); }
.caw-cancel-state .caw-form-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
@media (max-width: 600px) {
	.caw-cancel-state .caw-form-actions { flex-direction: column; align-items: stretch; }
}

/* ===== Chooser (uses .caw-widget shell + .caw-event-list on the right) ===== */
.caw-widget--types .caw-step-body--scroll {
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: #c8c6c1 transparent;
}
.caw-widget--types .caw-step-body--scroll::-webkit-scrollbar { width: 6px; }
.caw-widget--types .caw-step-body--scroll::-webkit-scrollbar-thumb { background: #c8c6c1; border-radius: 3px; }
.caw-event-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.caw-event-card {
	display: flex; align-items: center; gap: 16px;
	padding: 16px 18px; background: #ffffff;
	border: 1px solid var(--c-border, #e8e6e1); border-radius: 8px;
	text-decoration: none; color: var(--c-text, #1a1a1a);
	transition: border-color 0.15s, transform 0.15s;
	min-width: 0; /* allow children to shrink, no horizontal overflow */
}
.caw-event-card { border-width: 1.5px; }
.caw-event-card:hover { border-color: #1a1a1a; }
.caw-event-card.is-locked:hover { border-color: #1a1a1a; }
.caw-event-card-main { flex: 1; min-width: 0; }
.caw-event-card-name {
	font-size: 15px; font-weight: 600; margin-bottom: 4px;
	display: flex; align-items: center; gap: 6px;
}
.caw-event-card-desc { font-size: 13px; color: #7a7a7a; line-height: 1.5; }
.caw-event-card-side { display: flex; align-items: center; gap: 10px; color: #1a1a1a; flex-shrink: 0; }
.caw-event-card-duration { font-size: 13px; font-weight: 500; color: #555; }
.caw-event-card-arrow { flex-shrink: 0; }

/* ===== Mobile pass ===== */
@media (max-width: 820px) {
	.caw-page { padding: 96px 12px 48px; }
	.admin-bar .caw-page { padding-top: 132px; }
	.caw-widget { border-radius: 4px; }
	.caw-widget-scheduler { padding: 18px 18px 24px; }

	/* On mobile the picker stacks calendar above slots; let both size to content
	   so the slot list actually renders (flex:1 1 0 in a single-row grid would
	   collapse to 0 height) */
	.caw-picker { gap: 18px; }
	.caw-picker-slots { height: auto; min-height: 0; }
	.caw-time-grid {
		flex: 0 0 auto;
		max-height: none;
		overflow-y: visible;
		padding-right: 0;
	}

	.caw-cal-cell { height: 48px; font-size: 13px; }
	.caw-time-slot { padding: 14px 0; font-size: 14px; }

	/* Slim host card on small screens */
	.caw-widget-host { padding: 24px 20px; }

	.caw-form input[type=text],
	.caw-form input[type=email],
	.caw-form textarea { font-size: 16px; }

	/* Edit floating button — leave a bit more breathing room on mobile */
	.caw-floating-edit { top: 10px; right: 12px; }
}
@media (max-width: 480px) {
	.caw-cal-cell { height: 44px; font-size: 12.5px; }
	.caw-page { padding-left: 8px; padding-right: 8px; }
}

/* ============================================================
   Contact page (/contact) — two-mode chooser
   - Hero: question + radio toggle (outside container)
   - Container: same dimensions as .caw-widget; swaps content
     between the email form and the booking widget shortcode
   ============================================================ */
.caw-contact-page { background: #ffffff; padding: 140px 16px 80px; min-height: 70vh; }
body.admin-bar .caw-contact-page { padding-top: 172px; }
@media (max-width: 600px) {
	.caw-contact-page { padding: 110px 12px 64px; }
	body.admin-bar .caw-contact-page { padding-top: 156px; }
}
.caw-contact-page * { font-family: 'Helvetica Now Display' !important; }
.caw-contact-page .caw-page-inner { max-width: 1240px; margin: 0 auto; padding-top: 0; }

.caw-contact-hero {
	margin: 0 0 36px;
	padding-bottom: 32px;
	border-bottom: 1px solid #ececec;
	text-align: center;
}
.caw-contact-hero-inner {
	max-width: 640px;
	margin: 0 auto;
}
.caw-contact-eyebrow {
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #7a7a7a;
	margin: 0 0 12px;
	font-weight: 500;
}
.caw-contact-question {
	font-size: 36px;
	font-weight: 600;
	margin: 0 0 14px;
	color: #1a1a1a;
	letter-spacing: -0.015em;
	line-height: 1.15;
}
.caw-contact-subline {
	font-size: 15px;
	color: #555;
	margin: 0 auto 24px;
	max-width: 540px;
	line-height: 1.6;
}
.caw-contact-modes {
	display: inline-flex;
	gap: 12px;
	flex-wrap: wrap;
	padding: 6px;
	background: #fafaf8;
	border: 1px solid #ececec;
	border-radius: 999px;
	justify-content: center;
}
.caw-contact-mode-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	cursor: pointer;
	font-size: 14px;
	color: #555;
	border-radius: 999px;
	transition: background 0.15s, color 0.15s;
}
.caw-contact-mode-option input[type="radio"] {
	accent-color: #1a1a1a;
	width: 15px;
	height: 15px;
	margin: 0;
}
.caw-contact-mode-option:hover { color: #1a1a1a; }
.caw-contact-mode-option:has(input:checked) {
	background: #1a1a1a;
	color: #ffffff;
}
.caw-contact-mode-option:has(input:checked) input[type="radio"] { accent-color: #ffffff; }
.caw-contact-mode-option input:checked + span { color: inherit; font-weight: 500; }

.caw-contact-stage { position: relative; }
.caw-contact-stage [data-mode-pane][hidden] { display: none !important; }

/* When in email mode the .caw-widget--contact mirrors the booking widget */
.caw-widget--contact { /* inherits .caw-widget styles for grid, height, border */ }
.caw-widget-host--standalone {
	/* same as .caw-widget-host inside the widget */
	padding: 36px 28px;
	background: #fafaf8;
	border-right: 1px solid #e8e6e1;
	display: flex;
	flex-direction: column;
}
@media (max-width: 820px) {
	.caw-widget-host--standalone {
		border-right: none;
		border-bottom: 1px solid #e8e6e1;
		padding: 24px 20px;
	}
}

.caw-contact-form-side {
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}
.caw-contact-form-side .caw-step-body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.caw-contact-form-side .caw-form { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.caw-contact-form-side .caw-form textarea { min-height: 100px; }

/* Captcha + submit pinned at the bottom of the form, horizontally split */
.caw-contact-form-foot {
	margin-top: auto;
	padding-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.caw-contact-foot-bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.caw-contact-foot-bottom .arm-recaptcha { transform-origin: left bottom; }
.caw-contact-foot-bottom .caw-btn { min-width: 160px; padding: 13px 22px; }
.caw-contact-form-foot .form-status {
	margin: 0;
	font-size: 13px;
	color: #555;
	text-align: right;
}

/* "Choose a different consultation type" link (consultation mode only) */
.caw-contact-altline {
	max-width: 1240px;
	margin: 14px auto 0;
	text-align: center;
	font-size: 13px;
}
.caw-contact-alt {
	color: #555;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s;
}
.caw-contact-alt:hover { color: #1a1a1a; }
.caw-contact-alt[hidden] { display: none !important; }

/* "Other ways to reach us" section */
.caw-contact-reach {
	max-width: 1240px;
	margin: 56px auto 0;
	padding-top: 32px;
	border-top: 1px solid #ececec;
}
.caw-contact-reach-head h2 {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 18px;
	color: #1a1a1a;
	letter-spacing: -0.005em;
}
.caw-contact-reach-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.caw-contact-reach-list li {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.caw-contact-reach-label {
	font-size: 12px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #7a7a7a;
	font-weight: 500;
}
.caw-contact-reach-list a {
	font-size: 14px;
	color: #1a1a1a;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s;
	width: fit-content;
}
.caw-contact-reach-list a:hover { border-bottom-color: #1a1a1a; }

/* Trust strip — moved to the very bottom as a quiet finishing line */
.caw-contact-trust {
	max-width: 1240px;
	margin: 36px auto 0;
	padding: 18px 0 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	border-top: 1px solid #ececec;
}
.caw-contact-trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #7a7a7a;
}
.caw-contact-trust svg { color: #555; flex-shrink: 0; }

/* Contact page — mobile pass */
@media (max-width: 820px) {
	.caw-contact-page { padding: 96px 12px 64px; }
	body.admin-bar .caw-contact-page { padding-top: 132px; }

	.caw-contact-hero { margin-bottom: 28px; padding-bottom: 24px; }
	.caw-contact-question { font-size: 28px; }
	.caw-contact-subline { font-size: 14px; margin-bottom: 18px; }

	.caw-contact-modes {
		display: flex; flex-wrap: nowrap;
		max-width: 100%;
		padding: 4px;
	}
	.caw-contact-mode-option { padding: 8px 14px; font-size: 13px; }

	.caw-contact-form-side { padding: 20px 18px; }
	.caw-contact-form-foot {
		align-items: stretch;
	}
	.caw-contact-foot-bottom {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 14px;
	}
	.caw-contact-foot-bottom .arm-recaptcha {
		display: flex;
		justify-content: center;
		transform-origin: top center;
	}
	.caw-contact-foot-bottom .caw-btn { width: 100%; min-width: 0; }

	.caw-contact-reach { margin-top: 40px; padding-top: 24px; }
	.caw-contact-reach-list { grid-template-columns: 1fr; gap: 18px; }

	.caw-contact-trust { gap: 12px 24px; }
}
@media (max-width: 480px) {
	.caw-contact-question { font-size: 24px; }
	.caw-contact-eyebrow { font-size: 11px; }
	.caw-contact-modes { padding: 4px; }
	.caw-contact-mode-option { padding: 8px 12px; font-size: 12.5px; }
}
