/*
 * Contact page (/contact/). Loaded only on that page (functions.php).
 * From design/RobertsPT Contact Page.html: form, card, aside. Header, footer and CTA band come from the global templates.
 * Tokens come from style.css (--rpt-*).
 */

/* Page-only token (not in style.css) */
.ct-sec {
	--rpt-error-bg: #fbeeea;
}

/* ---- Base typography for the page (the concept sets these on html/body/h1-h3; in Divi they are scoped here) ---- */
.ct-sec {
	box-sizing: border-box;
	color: var(--rpt-slate-body);
	font-family: var(--rpt-font-body);
	font-size: var(--rpt-fs-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.ct-sec *,
.ct-sec *::before,
.ct-sec *::after {
	box-sizing: border-box;
}

.ct-sec h1,
.ct-sec h2,
.ct-sec h3 {
	margin: 0;
	padding: 0;
	font-family: var(--rpt-font-heading);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-transform: none;
	text-wrap: balance;
	color: var(--rpt-slate);
}

.ct-sec h1 { font-size: var(--rpt-fs-h1); }
.ct-sec h2 { font-size: var(--rpt-fs-h2); }
.ct-sec h3 { font-size: var(--rpt-fs-h3); line-height: 1.2; }

.ct-sec p {
	margin: 0;
	padding-bottom: 0;
	font-family: inherit;
}

.ct-sec label,
.ct-sec legend,
.ct-sec input,
.ct-sec select,
.ct-sec textarea,
.ct-sec button,
.ct-sec dl,
.ct-sec dt,
.ct-sec dd,
.ct-sec table,
.ct-sec address {
	font-family: var(--rpt-font-body);
}

.ct-sec address {
	font-style: normal;
}

.ct-sec img {
	max-width: 100%;
	height: auto;
}

.ct-sec a {
	color: var(--rpt-copper-deep);
	text-underline-offset: 3px;
}

.ct-sec a:hover {
	color: var(--rpt-copper-hover);
}

.ct-sec a:focus-visible,
.ct-sec button:focus-visible {
	outline: 3px solid var(--rpt-slate);
	outline-offset: 2px;
	border-radius: 4px;
}

/* No sticky CTA on Contact: the form is the page's job (the concept's rule). */
body.rpt-page-contact .rpt-sticky-cta {
	display: none !important;
}

body.rpt-page-contact {
	padding-bottom: 0 !important;
}

/* no sticky CTA on Contact: the form is the page's job */
.et_pb_section.ct-sec { padding-top: clamp(24px, 4vw, 48px); padding-bottom: var(--rpt-section-pad); }

.ct-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

.ct-main { min-width: 0; display: grid; gap: 28px; }

.ct-head { display: grid; gap: 14px; max-width: 40em; }

.ct-lead { font-size: var(--rpt-fs-lead); }

.ct-call { font-size: 16px; color: var(--rpt-slate-muted); }

.ct-call a { font-weight: 700; white-space: nowrap; }

.ct-card { background: var(--rpt-white); border: 1px solid var(--rpt-line); border-radius: var(--rpt-radius-card); padding: clamp(22px, 4vw, 44px); box-shadow: 0 2px 10px rgba(60,79,83,.05); }

.ct-form { display: grid; gap: 26px; }

.ct-form[hidden] { display: none; }

.ct-req { font-size: var(--rpt-fs-small); color: var(--rpt-slate-muted); margin-top: -6px; }

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

.ct-field { display: grid; gap: 8px; min-width: 0; }

.ct-fs { border: 0; margin: 0; padding: 0; min-width: 0; }

.ct-fs > legend { padding: 0; margin-bottom: 10px; }

.ct-form label, .ct-fs > legend { font-weight: 700; color: var(--rpt-slate); font-size: 16px; line-height: 1.35; }

.ct-opt { font-weight: 400; color: var(--rpt-slate-muted); }

.ct-hint { font-size: 14.5px; color: var(--rpt-slate-muted); line-height: 1.5; }

.ct-fs > .ct-hint { margin: -4px 0 12px; }

.ct-form input[type=text], .ct-form input[type=tel], .ct-form input[type=email], .ct-form select, .ct-form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 400 17px/1.4 var(--rpt-font-body); color: var(--rpt-slate);
  background: var(--rpt-white); border: 1.5px solid var(--rpt-line-strong); border-radius: var(--rpt-radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}

.ct-form textarea { resize: vertical; min-height: 116px; }

.ct-form input::placeholder, .ct-form textarea::placeholder { color: #8a9a9d; }

.ct-form input:hover, .ct-form select:hover, .ct-form textarea:hover { border-color: #b9ae98; }

.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus { outline: none; border-color: var(--rpt-slate); box-shadow: 0 0 0 3px rgba(60,79,83,.18); }

.ct-form [aria-invalid=true] { border-color: var(--rpt-error) !important; }

.ct-form [aria-invalid=true]:focus { box-shadow: 0 0 0 3px rgba(155,44,31,.18); }

.ct-select { position: relative; }

.ct-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--rpt-slate); border-bottom: 2px solid var(--rpt-slate); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.ct-select select { padding-right: 44px; cursor: pointer; }

.ct-select select:invalid, .ct-select select.is-empty { color: #6b7b7e; }

.ct-err { display: flex; gap: 8px; align-items: flex-start; color: var(--rpt-error); font-size: 14.5px; font-weight: 600; line-height: 1.4; }

.ct-err::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--rpt-error); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

.ct-err[hidden] { display: none; }

/* Contact method: large radio cards */
.ct-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ct-choice { position: relative; cursor: pointer; }

.ct-choice input, .ct-chip input, .ct-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.ct-choice__box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 14px 10px; border: 1.5px solid var(--rpt-line-strong); border-radius: var(--rpt-radius-sm); background: var(--rpt-white); color: var(--rpt-slate); font-weight: 600; font-size: 15.5px; text-align: center; transition: border-color .15s, background .15s, box-shadow .15s; }

.ct-choice__box svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ct-choice:hover .ct-choice__box { border-color: #b9ae98; }

.ct-choice input:checked + .ct-choice__box { border-color: var(--rpt-slate); background: #f1f4f3; box-shadow: inset 0 0 0 1px var(--rpt-slate); }

.ct-choice input:focus-visible + .ct-choice__box { outline: 3px solid var(--rpt-slate); outline-offset: 2px; }

.ct-fs[aria-invalid=true] .ct-choice__box { border-color: var(--rpt-error); }

.ct-fs .ct-err { margin-top: 10px; }

.ct-reveal { display: grid; gap: 16px; margin-top: 18px; padding: 18px; background: var(--rpt-cream); border-radius: var(--rpt-radius-sm); animation: ct-in .2s ease; }

.ct-reveal[hidden], .ct-follow[hidden], .ct-consent[hidden] { display: none; }

.ct-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400 !important; font-size: 14.5px !important; color: var(--rpt-slate-body) !important; line-height: 1.5 !important; position: relative; }

.ct-check span::before { content: ""; float: left; margin: 1px 12px 0 0; width: 22px; height: 22px; border: 1.5px solid var(--rpt-line-strong); border-radius: 6px; background: var(--rpt-white); }

.ct-check input:checked + span::before { background: var(--rpt-slate) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--rpt-slate); }

.ct-check input:focus-visible + span::before { outline: 3px solid var(--rpt-slate); outline-offset: 2px; }

.ct-check input[aria-invalid=true] + span::before { border-color: var(--rpt-error); }

.ct-check span { display: block; overflow: hidden; }

/* Chips: best time / doctor */
.ct-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.ct-chip { cursor: pointer; position: relative; font-weight: 600 !important; font-size: 15px !important; }

.ct-chip span { display: inline-flex; align-items: baseline; gap: 6px; min-height: 46px; align-items: center; padding: 10px 16px; border: 1.5px solid var(--rpt-line-strong); border-radius: 999px; background: var(--rpt-white); color: var(--rpt-slate); transition: border-color .15s, background .15s, color .15s; }

.ct-chip small { font-weight: 400; font-size: 13.5px; color: var(--rpt-slate-muted); }

.ct-chip:hover span { border-color: #b9ae98; }

.ct-chip input:checked + span { background: var(--rpt-slate); border-color: var(--rpt-slate); color: var(--rpt-white); }

.ct-chip input:checked + span small { color: var(--rpt-text-dark); }

.ct-chip input:checked + span::before { content: ""; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); margin-right: 2px; }

.ct-chip input:focus-visible + span { outline: 3px solid var(--rpt-slate); outline-offset: 2px; }

.ct-follow { display: grid; gap: 8px; margin-top: 14px; padding: 16px 18px; background: var(--rpt-cream); border-radius: var(--rpt-radius-sm); animation: ct-in .2s ease; }

.ct-follow > legend { float: left; width: 100%; margin-bottom: 10px; }

.ct-follow .ct-chips { clear: both; }

/* Submit: slate, so copper stays reserved for the site-wide booking CTA */
.ct-submit { width: 100%; min-height: 56px; padding: 14px 24px; border: 0; border-radius: var(--rpt-radius-sm); background: var(--rpt-slate); color: var(--rpt-white); font: 700 17px var(--rpt-font-body); cursor: pointer; transition: background .15s; }

.ct-submit:hover { background: var(--rpt-slate-deep); }

.ct-submit:focus-visible { outline: 3px solid var(--rpt-slate); outline-offset: 3px; }

.ct-submit[disabled] { opacity: .7; cursor: progress; }

.ct-legal { font-size: 13.5px; color: var(--rpt-slate-muted); margin-top: -12px; line-height: 1.5; }

.ct-legal a { color: var(--rpt-slate-muted); }

.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Error summary */
.ct-errsum[hidden] { display: none; }

.ct-errsum { background: var(--rpt-error-bg); border: 1.5px solid var(--rpt-error); border-radius: var(--rpt-radius-sm); padding: 16px 18px; display: grid; gap: 8px; }

.ct-errsum:focus { outline: 3px solid var(--rpt-error); outline-offset: 2px; }

.ct-errsum__h { font-family: var(--rpt-font-body); font-size: 16px; font-weight: 700; color: var(--rpt-error); line-height: 1.3; }

.ct-errsum ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }

.ct-errsum a { color: var(--rpt-error); font-weight: 600; }

/* Success */
.ct-done { display: grid; gap: 14px; justify-items: start; padding-block: 12px; animation: ct-in .25s ease; }

.ct-done[hidden] { display: none; }

.ct-done__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--rpt-slate); display: grid; place-items: center; }

.ct-done__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--rpt-white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.ct-done h2 { font-size: var(--rpt-fs-h3); outline: none; }

.ct-done p { font-size: 17px; max-width: 46ch; }

.ct-done__next { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--rpt-line); width: 100%; font-size: 16px !important; }

.ct-done__next a { font-weight: 700; }

/* Aside */
.ct-aside { display: grid; gap: 16px; position: sticky; top: 24px; min-width: 0; }

.ct-panel { background: var(--rpt-white); border: 1px solid var(--rpt-line); border-radius: var(--rpt-radius-card); padding: 26px; display: grid; gap: 10px; }

.ct-panel h2 { font-size: var(--rpt-fs-h3); }

.ct-panel p { font-size: 16px; }

.ct-panel--book { background: var(--rpt-sand); border-color: var(--rpt-sand); }

.ct-link { font-weight: 700; font-size: 16px; text-decoration: none; margin-top: 4px; }

.ct-link:hover { text-decoration: underline; }

.ct-info { margin: 0; display: grid; gap: 0; }

.ct-info > div { padding: 16px 0; border-top: 1px solid var(--rpt-line); display: grid; gap: 6px; }

.ct-info > div:first-child { border-top: 0; padding-top: 0; }

.ct-info > div:last-child { padding-bottom: 0; }

.ct-info dt { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--rpt-slate-muted); }

.ct-info dd { margin: 0; color: var(--rpt-slate); }

.ct-info address { font-style: normal; line-height: 1.55; }

.ct-big { font-family: var(--rpt-font-heading); font-size: 26px; color: var(--rpt-slate); text-decoration: none; }

.ct-big:hover { color: var(--rpt-copper-deep); }

.ct-dir { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 15.5px; }

.ct-hours { border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }

.ct-hours th { text-align: left; font-weight: 600; padding: 2px 24px 2px 0; color: var(--rpt-slate); }

.ct-hours td { padding: 2px 0; }

.ct-small { font-size: 14px; color: var(--rpt-slate-muted); margin-top: 6px; }

.ct-note { font-size: 14.5px; color: var(--rpt-slate-muted); padding: 0 6px; }

@media (max-width: 960px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-aside { position: static; }
}

@media (max-width: 560px) {
  .ct-row--2 { grid-template-columns: 1fr; }
  .ct-choices { gap: 8px; }
  .ct-choice__box { min-height: 76px; font-size: 14.5px; padding: 12px 6px; }
  .ct-card { padding: 20px 16px; border-radius: var(--rpt-radius-card); }
  .ct-reveal { padding: 14px; }
  .ct-chip span { padding: 9px 14px; }
}

@keyframes ct-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
