/*
 * TruRender Contact page - matches the site and the portal:
 * Poppins, charcoal #383838, gold #FFC840.
 *
 * Buttons use !important on colors because the Elementor kit restyles every
 * <button> on hover/focus (same fix as the Get a Quote wizard).
 */
.trq-contact {
	--c-ink: #383838;
	--c-muted: #6b6b6b;
	--c-gold: #FFC840;
	--c-gold-dark: #f0b423;
	--c-gold-soft: #fff8e6;
	--c-line: #e2e2e2;
	--c-card: #ffffff;
	--c-ok: #2e7d32;
	--c-err: #b32d2e;
	max-width: 880px;
	margin: 0 auto;
	color: var(--c-ink);
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
}
.trq-contact *,
.trq-contact *::before,
.trq-contact *::after { box-sizing: border-box; }
.trq-contact,
.trq-contact h2, .trq-contact h3, .trq-contact h4,
.trq-contact p, .trq-contact a, .trq-contact label, .trq-contact legend,
.trq-contact input, .trq-contact select, .trq-contact textarea,
.trq-contact button, .trq-contact dt, .trq-contact dd, .trq-contact li, .trq-contact span {
	font-family: "Poppins", sans-serif !important;
}
.trq-contact h2::before, .trq-contact h3::before, .trq-contact h4::before { display: none !important; content: none !important; }
.trq-contact [hidden] { display: none !important; }

/* Heading */
.trq-c-head { text-align: center; margin-bottom: 26px; }
.trq-c-head h2 { margin: 0 0 6px; font-size: 30px; line-height: 1.25; font-weight: 600; color: var(--c-ink); }
.trq-c-head p { margin: 0; color: var(--c-muted); font-size: 16px; }

/* Three choices */
.trq-c-choices {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.trq-contact .trq-c-choice,
.trq-contact .trq-c-choice:hover,
.trq-contact .trq-c-choice:focus {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 22px 20px 20px !important;
	background: var(--c-card) !important;
	color: var(--c-ink) !important;
	border: 1.5px solid var(--c-line) !important;
	border-radius: 14px !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
	text-align: left;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-weight: 400;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.trq-contact .trq-c-choice:hover {
	border-color: var(--c-gold) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(56, 56, 56, 0.08) !important;
}
.trq-contact .trq-c-choice:focus-visible { outline: 3px solid rgba(255, 200, 64, 0.6); outline-offset: 2px; }
.trq-contact .trq-c-choice.is-active {
	border-color: var(--c-gold) !important;
	background: var(--c-gold-soft) !important;
}
.trq-contact .trq-c-choice.is-muted .trq-c-choice-sub { color: var(--c-err); }
.trq-c-choice-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--c-gold-soft);
	color: var(--c-ink);
}
.trq-c-choice.is-active .trq-c-choice-icon { background: var(--c-gold); }
.trq-c-choice-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.trq-c-choice-sub { font-size: 13.5px; color: var(--c-muted); line-height: 1.4; }

/* Panels */
.trq-c-panel {
	margin-top: 18px;
	padding: 30px;
	background: var(--c-card);
	border: 1px solid var(--c-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	animation: trq-c-in 0.2s ease;
}
@keyframes trq-c-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}
.trq-contact h3 { margin: 0 0 14px; font-size: 19px; font-weight: 600; color: var(--c-ink); }
.trq-contact h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--c-ink); }
.trq-c-step h3 + .trq-c-cards + .trq-c-error + h3,
.trq-c-step .trq-c-error + h3 { margin-top: 24px; }
.trq-c-hint, .trq-c-muted { color: var(--c-muted); font-size: 13.5px; }
.trq-c-hint { margin: -6px 0 16px; display: block; }
.trq-c-error { min-height: 0; margin: 8px 0 0; color: var(--c-err); font-size: 14px; }
.trq-c-error:empty { margin: 0; }
.trq-c-submit-error { margin: 14px 0 0; color: var(--c-err); font-size: 14px; }
.trq-c-submit-error:empty { margin: 0; }
.trq-c-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #e8f5e9;
	color: var(--c-ok);
	font-weight: 500;
}
.trq-c-note {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--c-gold-soft);
}
.trq-c-loading { color: var(--c-muted); }
.trq-c-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Progress */
.trq-c-progress {
	height: 5px;
	margin: -6px 0 24px;
	border-radius: 3px;
	background: #ececec;
	overflow: hidden;
}
.trq-c-progress span {
	display: block;
	height: 100%;
	width: 20%;
	background: var(--c-gold);
	transition: width 0.25s ease;
}

/* Option cards */
.trq-c-cards { display: grid; gap: 12px; }
.trq-c-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trq-c-card {
	position: relative;
	display: block;
	margin: 0;
	padding: 16px 18px;
	border: 2px solid var(--c-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.trq-c-card:hover { border-color: #d4d4d4; }
.trq-c-card input { position: absolute; opacity: 0; pointer-events: none; }
.trq-c-card:has(input:checked) { border-color: var(--c-gold); background: var(--c-gold-soft); }
.trq-c-card:has(input:focus-visible) { outline: 3px solid rgba(255, 200, 64, 0.6); outline-offset: 2px; }
.trq-c-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.trq-c-card-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; }
.trq-c-card-title .trq-c-icon { width: 20px; height: 20px; }
.trq-c-card-desc { display: block; color: var(--c-muted); font-size: 13.5px; line-height: 1.45; font-weight: 400; }
.trq-c-pill {
	flex: none;
	padding: 2px 10px;
	border-radius: 100px;
	background: #f1f1f1;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}
.trq-c-card:has(input:checked) .trq-c-pill { background: var(--c-gold); }

/* Fields */
.trq-c-field { display: block; margin: 0 0 16px; font-weight: 600; font-size: 14px; border: 0; padding: 0; min-width: 0; }
.trq-c-field legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.trq-c-label { display: block; margin-bottom: 6px; }
.trq-c-req-note { font-weight: 400; color: var(--c-muted); }
.trq-contact input[type="text"],
.trq-contact input[type="email"],
.trq-contact input[type="tel"],
.trq-contact select,
.trq-contact textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 11px 13px;
	border: 1px solid #cfcfcf !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: var(--c-ink) !important;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	box-shadow: none;
}
.trq-contact input:focus, .trq-contact select:focus, .trq-contact textarea:focus {
	outline: none;
	border-color: var(--c-gold-dark) !important;
	box-shadow: 0 0 0 3px rgba(255, 200, 64, 0.35) !important;
}
.trq-c-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.trq-c-signed { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: #f6f6f6; font-size: 14px; }

.trq-c-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.trq-c-pill-opt { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.trq-c-pill-opt input { position: absolute; opacity: 0; pointer-events: none; }
.trq-c-pill-opt span {
	display: inline-block;
	padding: 8px 16px;
	border: 1.5px solid var(--c-line);
	border-radius: 100px;
	font-size: 14px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.trq-c-pill-opt input:checked + span { border-color: var(--c-gold); background: var(--c-gold-soft); font-weight: 600; }
.trq-c-pill-opt input:focus-visible + span { outline: 3px solid rgba(255, 200, 64, 0.6); outline-offset: 2px; }

/* Files */
.trq-c-drop {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border: 1.5px dashed #c9c9c9;
	border-radius: 10px;
	background: #fafafa;
	color: var(--c-muted);
	font-weight: 500;
	cursor: pointer;
	margin: 0;
}
.trq-c-drop:hover { border-color: var(--c-gold-dark); background: var(--c-gold-soft); }
.trq-c-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.trq-c-filelist { list-style: none; margin: 8px 0 4px; padding: 0; font-weight: 400; }
.trq-c-filelist li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}
.trq-c-filelist li span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trq-c-filelist li.is-error { color: var(--c-err); border: 0; }
.trq-contact .trq-c-filelist button,
.trq-contact .trq-c-filelist button:hover {
	padding: 0 6px !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--c-muted) !important;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

/* Time picker */
.trq-c-tz { margin: -6px 0 16px; font-size: 13.5px; color: var(--c-muted); }
.trq-contact .trq-c-tz select {
	display: inline-block;
	width: auto;
	margin: 0 0 0 4px;
	padding: 4px 28px 4px 10px;
	font-size: 13.5px;
	font-weight: 600;
}
.trq-c-picker {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.trq-c-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.trq-c-cal-month { font-weight: 600; }
.trq-contact .trq-c-cal-nav,
.trq-contact .trq-c-cal-nav:hover,
.trq-contact .trq-c-cal-nav:focus {
	width: 34px;
	height: 34px;
	padding: 0 !important;
	border: 1px solid var(--c-line) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--c-ink) !important;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.trq-contact .trq-c-cal-nav:disabled { opacity: 0.35; cursor: default; }
.trq-c-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.trq-c-cal-dow { font-size: 12px; color: var(--c-muted); padding: 4px 0; font-weight: 600; }
.trq-contact .trq-c-day,
.trq-contact .trq-c-day:hover,
.trq-contact .trq-c-day:focus {
	aspect-ratio: 1;
	width: 100%;
	max-width: 40px;
	margin: 0 auto;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: #c2c2c2 !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	cursor: default;
}
.trq-contact .trq-c-day.is-open,
.trq-contact .trq-c-day.is-open:focus {
	background: var(--c-gold-soft) !important;
	color: var(--c-ink) !important;
	font-weight: 600;
	cursor: pointer;
}
.trq-contact .trq-c-day.is-open:hover { background: #ffeab3 !important; }
.trq-contact .trq-c-day.is-selected,
.trq-contact .trq-c-day.is-selected:hover,
.trq-contact .trq-c-day.is-selected:focus { background: var(--c-gold) !important; color: var(--c-ink) !important; }
.trq-c-times-day { margin: 2px 0 12px; font-weight: 600; }
.trq-c-times-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.trq-contact .trq-c-time,
.trq-contact .trq-c-time:hover,
.trq-contact .trq-c-time:focus {
	padding: 10px 6px !important;
	border: 1.5px solid var(--c-line) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--c-ink) !important;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	text-transform: none !important;
}
.trq-contact .trq-c-time:hover { border-color: var(--c-gold) !important; }
.trq-contact .trq-c-time.is-selected,
.trq-contact .trq-c-time.is-selected:hover { border-color: var(--c-gold) !important; background: var(--c-gold) !important; }
.trq-contact .trq-c-day:focus-visible,
.trq-contact .trq-c-time:focus-visible { outline: 3px solid rgba(255, 200, 64, 0.6); outline-offset: 2px; }
.trq-c-empty { padding: 18px; border-radius: 12px; background: #f7f7f7; text-align: center; }
.trq-c-empty p { margin: 0 0 12px; }

/* Summary */
.trq-c-summary {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0;
	margin: 0 0 18px;
	border-top: 1px solid #eee;
}
.trq-c-summary dt, .trq-c-summary dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #eee; }
.trq-c-summary dt { padding-right: 22px; color: var(--c-muted); font-size: 14px; }
.trq-c-summary dd { font-weight: 500; }
.trq-c-turnstile { margin: 0 0 12px; }

/* Buttons */
.trq-c-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.trq-c-nav-end { justify-content: flex-end; }
.trq-c-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.trq-contact .trq-c-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px !important;
	border-radius: 100px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.15s ease, transform 0.1s ease;
}
.trq-contact .trq-c-btn-primary,
.trq-contact .trq-c-btn-primary:hover,
.trq-contact .trq-c-btn-primary:focus,
.trq-contact .trq-c-btn-primary:active {
	background: var(--c-gold) !important;
	color: var(--c-ink) !important;
	border: 0 !important;
}
.trq-contact .trq-c-btn-primary:hover { background: var(--c-gold-dark) !important; }
.trq-contact .trq-c-btn-secondary,
.trq-contact .trq-c-btn-secondary:hover,
.trq-contact .trq-c-btn-secondary:focus,
.trq-contact .trq-c-btn-secondary:active {
	background: #fff !important;
	color: var(--c-ink) !important;
	border: 1.5px solid var(--c-ink) !important;
}
.trq-contact .trq-c-btn-secondary:hover { background: #f4f4f4 !important; }
.trq-contact .trq-c-btn-danger,
.trq-contact .trq-c-btn-danger:hover,
.trq-contact .trq-c-btn-danger:focus {
	background: var(--c-err) !important;
	color: #fff !important;
	border: 0 !important;
}
.trq-contact .trq-c-btn:disabled { opacity: 0.55; cursor: default; }
.trq-contact .trq-c-btn:focus-visible { outline: 3px solid rgba(255, 200, 64, 0.6); outline-offset: 2px; }

/* Success + nudge */
.trq-c-success { text-align: center; padding: 6px 0 4px; }
.trq-c-success .trq-c-actions { justify-content: center; }
.trq-c-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: #e8f5e9;
	color: var(--c-ok);
}
.trq-c-success h3 { font-size: 22px; margin-bottom: 8px; }
.trq-c-when { margin: 0 0 8px; font-size: 17px; line-height: 1.5; }
.trq-c-when strong { font-size: 22px; }
.trq-c-success p { margin: 0 0 6px; }
.trq-c-nudge {
	margin-top: 26px;
	padding: 22px 24px;
	border-radius: 14px;
	background: var(--c-gold-soft);
	border: 1.5px solid #ffe3a1;
	text-align: center;
}
.trq-c-nudge p { margin: 0 0 14px; color: var(--c-ink); }

/* Manage */
.trq-c-booking {
	margin: 0 0 6px;
	padding: 18px 20px;
	border-radius: 12px;
	border: 1.5px solid var(--c-line);
	background: #fafafa;
}
.trq-c-booking p { margin: 4px 0 0; }
.trq-c-booking .trq-c-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); font-weight: 600; }
.trq-c-resched, .trq-c-cancel { margin-top: 22px; padding-top: 20px; border-top: 1px solid #eee; }

/* Footer line */
.trq-c-login { margin: 22px 0 0; text-align: center; color: var(--c-muted); font-size: 14px; }
.trq-c-login a { color: var(--c-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 3px; }

.trq-c-busy { text-align: center; }
.trq-c-busy p { color: var(--c-muted); margin: 0 0 16px; }

/* v0.7.1: two cards for guests (Get a Quote lives in the menu) */
.trq-c-choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; margin: 0 auto; }
.trq-c-choices-1 { grid-template-columns: minmax(0, 340px); justify-content: center; }
.trq-c-alt { margin: 20px 0 0; text-align: center; font-size: 15px; color: var(--c-ink); }
.trq-c-alt a, .trq-c-login a { color: var(--c-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 3px; }
.trq-c-alt + .trq-c-login { margin-top: 8px; }
.trq-contact.is-client .trq-c-panel { margin-top: 0; }

/* Some themes fill every SVG - keep the icons as outlines. */
.trq-contact svg.trq-c-icon,
.trq-contact svg.trq-c-icon * { fill: none !important; stroke: currentColor !important; }

/* v0.8.0: "manage my booking" view - the page heading isn't about this call, so hide it. */
.trq-contact.is-manage .trq-c-head { display: none; }

/* Tablet */
@media (max-width: 820px) {
	.trq-c-picker { grid-template-columns: 1fr; gap: 18px; }
	.trq-c-cal { max-width: 360px; }
}
/* Phone */
@media (max-width: 640px) {
	.trq-c-head h2 { font-size: 24px; }
	.trq-c-choices { grid-template-columns: 1fr; gap: 10px; }
	.trq-contact .trq-c-choice,
	.trq-contact .trq-c-choice:hover,
	.trq-contact .trq-c-choice:focus {
		display: grid !important;
		grid-template-columns: 44px 1fr;
		grid-template-rows: auto auto;
		column-gap: 14px;
		row-gap: 0;
		padding: 16px !important;
		transform: none;
	}
	.trq-c-choice-icon { grid-row: 1 / span 2; margin: 0; width: 44px; height: 44px; align-self: center; }
	.trq-c-panel { padding: 20px 16px; border-radius: 14px; }
	.trq-c-cards-2, .trq-c-row { grid-template-columns: 1fr; }
	.trq-c-cal { max-width: none; }
	.trq-c-times-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.trq-c-summary { grid-template-columns: 1fr; }
	.trq-c-summary dt { border-bottom: 0; padding-bottom: 0; }
	.trq-c-nav .trq-c-btn { flex: 1; }
	.trq-c-actions .trq-c-btn { flex: 1 1 100%; }
}
