/* Contact page (/contact/). Loaded after style.css, theme.css and pages.css. */

/* ------------------------------------------------ Hero (same start position as the other inner pages) */
.page .panel.cthero {
  padding-top: calc(var(--hdr-h) + var(--hdr-inset) + clamp(28px, 3.4vw, 48px));
  padding-bottom: clamp(28px, 3.4vw, 52px);
  background:
    radial-gradient(45% 60% at 85% 30%, color-mix(in srgb, #c4b3f0 50%, transparent) 0%, transparent 70%),
    radial-gradient(40% 50% at 10% 100%, color-mix(in srgb, #e1daf6 70%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f8f7fb 60%, #f0ecfa 100%);
}
.cthero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.cthero__copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.cthero__pill { min-height: 31px; background: rgb(255 255 255 / .8); }
.cthero__pill .i { color: var(--accent); }
.cthero__title { font-family: var(--f-head); font-size: clamp(2.5rem, 1rem + 3.3vw, 4.75rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; color: var(--ink); max-width: 14ch; }
.cthero__soft { color: color-mix(in srgb, var(--ink) 45%, #8d81af); }
.cthero__body { display: grid; gap: 22px; width: 100%; padding-top: 24px; border-top: 1px solid rgb(22 18 31 / .1); }
.cthero__intro { max-width: 58ch; font: 400 1.05rem/1.7 "Raleway", var(--f-body); color: var(--ink-2); }
.cthero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cthero__mail { padding: 0 24px; gap: 10px; }
.ctjump { display: flex; flex-wrap: wrap; gap: 8px; }
.ctjump a { padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .7); border: 1px solid rgb(22 18 31 / .08); font: 600 .84rem/1.2 var(--f-body); color: var(--ink); text-decoration: none; transition: background-color .2s, border-color .2s; }
.ctjump a:hover { background: #fff; border-color: var(--ink); }

/* contact card */
.ctcard { justify-self: end; width: min(100%, 520px); display: grid; border-radius: 32px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgb(40 30 80 / .55); overflow: hidden; }
.ctcard__h { padding: 26px 26px 8px; font-size: clamp(1.4rem, 1.15rem + .8vw, 1.8rem); letter-spacing: -.03em; }
.ctcard__list { display: grid; gap: 10px; padding: 12px 18px 18px; font-style: normal; }
.ctcard__row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: #f7f7f7; border: 1px solid #f7f7f7; color: var(--ink); text-decoration: none; transition: background-color .25s, border-color .25s; }
.ctcard__row:hover { background: #fff; border-color: var(--ink); }
.ctcard__row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ctcard__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; }
.ctcard__ico .i { width: 19px; height: 19px; }
.ctcard__row > span:nth-child(2) { flex: 1; display: grid; gap: 3px; min-width: 0; }
.ctcard__row small { font: 700 .66rem/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ctcard__row strong { font: 600 1.05rem/1.35 var(--f-head); overflow-wrap: anywhere; }
.ctcard__go { flex: none; width: 18px; height: 18px; color: var(--muted); }
.ctcard__foot { display: flex; align-items: center; gap: 10px; padding: 14px 26px; background: var(--surface); font-size: .84rem; color: var(--ink-2); }
.ctcard__foot img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* ------------------------------------------------ Opening hours + info */
.page .panel.cthours { background: #fff; }
.cthours__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.cthours__card { display: grid; gap: 18px; justify-items: start; align-content: start; padding: clamp(26px, 3vw, 40px); border-radius: 28px; background: #f7f7f7; }
.cthours__list { display: grid; width: 100%; margin: 0; }
.cthours__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; border-bottom: 1px solid var(--line-2); }
.cthours__list > div:last-child { border-bottom: 0; }
.cthours__list dt { font-weight: 600; color: var(--ink); }
.cthours__list dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cthours__list > div.is-today { background: #fff; border-bottom-color: transparent; box-shadow: inset 3px 0 0 var(--accent); }
.cthours__list > div.is-today dt::after { content: "Today"; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 700 .66rem/1.6 var(--f-body); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.cthours__note { font-size: .88rem; line-height: 1.6; color: var(--ink-2); }
.cthours__side { display: grid; gap: 14px; }
.ctinfo { display: grid; gap: 14px; padding: 28px; border-radius: 24px; background: color-mix(in srgb, var(--accent-soft) 60%, #ffffff); }
.ctinfo h3 { font-size: 1.2rem; }
.ctinfo__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--accent); }
.ctinfo__ico .i { width: 20px; height: 20px; }
.ctinfo .ticks li::before { background: #fff; }
.ctinfo__privacy { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid rgb(109 80 192 / .18); font-size: .86rem; line-height: 1.5; color: var(--ink-2); }
.ctinfo__privacy .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.ctinfo--urgent { background: #fbeef1; }
.ctinfo--urgent .ctinfo__ico { color: #b2435b; }
.ctinfo--urgent p { font-size: .95rem; line-height: 1.6; color: #5c2230; }
.ctinfo--urgent a { color: #5c2230; font-weight: 700; text-underline-offset: 3px; }

/* ------------------------------------------------ Directions */
.page .panel.ctdir { background: #f7f7f7; }
.ctdir__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 14px; align-items: stretch; }
.ctdir__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ctdir__list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-content: start; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.ctdir__ico { grid-row: 1 / 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.ctdir__ico .i { width: 21px; height: 21px; }
.ctdir__list h3 { font-size: 1.12rem; }
.ctdir__list p { font-size: .94rem; line-height: 1.6; color: var(--ink-2); }
.ctdir__list strong { color: var(--ink); }
.ctdir__src { margin-top: 18px; font-size: .84rem; color: var(--muted); }
.ctdir__src a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ------------------------------------------------ Access + areas */
.page .panel.ctaccess { background: #fff; }
.ctaccess__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ctaccess__card { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: 24px; background: #f7f7f7; }
.ctaccess__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--accent); }
.ctaccess__ico .i { width: 21px; height: 21px; }
.ctaccess__h { font-size: 1.45rem; letter-spacing: -.025em; }
.ctaccess__card p { font: 400 .97rem/1.65 "Raleway", var(--f-body); color: var(--ink-2); }
.ctareas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ctareas li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 .88rem/1.2 var(--f-body); color: var(--ink); }

/* ------------------------------------------------ Responsive (stacked hero matches the other inner pages) */
@media (max-width: 1080px) {
  .cthero__grid { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
  .cthero__copy { display: contents; }
  .cthero__grid .crumbs { order: 1; }
  .cthero__pill { order: 2; }
  .cthero__title { order: 3; max-width: 18ch; }
  .ctcard { order: 4; align-self: center; margin: 6px 0; }
  .ctform__ph--hero { order: 4; align-self: center; margin: 6px 0; }
  .ctform .ctcard { justify-self: start; }
  .cthero__body { order: 5; }
  .cthours__grid, .ctdir__grid, .ctaccess__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cthero__title { font-size: clamp(2.3rem, 1.2rem + 5vw, 3rem); line-height: 1.02; }
  .cthero__cta .btn { width: 100%; justify-content: center; }
  .ctcard__h { padding: 22px 20px 6px; }
  .ctcard__list { padding: 10px 12px 12px; }
  .ctcard__foot { padding: 12px 20px; }
  .ctdir__list li { grid-template-columns: minmax(0, 1fr); }
  .ctdir__ico { grid-row: auto; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ctjump a, .ctcard__row { transition: none; }
}

/* ------------------------------------------------ Enquiry form */
.page .panel.ctform { background: #fff; }
.ctform__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.ctform__intro { display: grid; gap: 18px; justify-items: start; position: sticky; top: calc(var(--hdr-h) + 28px); }
.ctform__intro > p:not(.pill):not(.ctform__privacy) { font: 400 1.04rem/1.7 "Raleway", var(--f-body); color: var(--ink-2); }
.ctform__next { display: grid; gap: 0; width: 100%; margin: 4px 0 0; padding: 0; list-style: none; }
.ctform__next li { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ctform__next li:last-child { border-bottom: 0; }
.ctform__next span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font: 700 .78rem/1 var(--f-body); }
.ctform__next strong { font: 600 1rem/1.3 var(--f-head); color: var(--ink); }
.ctform__next small { font-size: .86rem; color: var(--muted); }
.ctform__privacy { display: flex; gap: 10px; font-size: .86rem; line-height: 1.5; color: var(--ink-2); }
.ctform__privacy .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }

/* placeholder until the real form is added after launch */
.ctform__ph { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 420px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; border: 2px dashed var(--line-2); background: repeating-linear-gradient(135deg, #fafafb 0 14px, #f4f4f6 14px 28px); text-align: center; }
.ctform__ph-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 18px; background: #fff; color: var(--accent); box-shadow: 0 10px 24px -16px rgb(20 16 40 / .4); }
.ctform__ph-ico .i { width: 24px; height: 24px; }
.ctform__ph-k { font: 700 .72rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ctform__ph-h { font: 600 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1.1 var(--f-head); letter-spacing: -.03em; color: var(--ink); }
.ctform__ph-p { max-width: 36ch; font-size: .95rem; line-height: 1.6; color: var(--ink-2); }
.ctform__ph-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.ctform__ph-btns .btn--ghost { padding: 0 22px; gap: 10px; }
/* hero version: sits where the practice card used to be */
.ctform__ph--hero { justify-self: end; width: min(100%, 520px); min-height: 0; padding: clamp(30px, 3.4vw, 44px) clamp(22px, 3vw, 36px); border-radius: 32px; border-color: #d9d2ec; background: #fff; box-shadow: 0 40px 80px -50px rgb(40 30 80 / .55); }
.ctform__ph--hero .ctform__ph-ico { background: var(--accent-soft); box-shadow: none; }
.ctform__ph-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .84rem; color: var(--muted); }
.ctform__ph-note .i { width: 15px; height: 15px; color: var(--accent); }
.ctform .ctcard { align-self: start; }
@media (max-width: 1080px) { .ctform__grid { grid-template-columns: minmax(0, 1fr); } .ctform__intro { position: static; } }
@media (max-width: 560px) { .ctform__ph { min-height: 0; } .ctform__ph-btns .btn { width: 100%; justify-content: center; } }

/* ------------------------------------------------ Enquiry form (hero card) */
.ctenq { justify-items: stretch; align-content: start; gap: 14px; text-align: left; border-style: solid; border-color: var(--line); }
.ctenq__head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.ctenq__head .ctform__ph-ico { margin: 0; flex: none; }
.ctenq__h { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.8rem); letter-spacing: -.03em; }
.ctenq__sub { margin-top: 2px; font-size: .92rem; color: var(--muted); }
.ctenq__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ctenq__f { display: grid; gap: 6px; min-width: 0; }
.ctenq__f label { font: 600 .86rem/1.3 var(--f-body); color: var(--ink); }
.ctenq__f label span { font-weight: 500; color: var(--muted); }
.ctenq input:not([type="hidden"]), .ctenq select, .ctenq textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px;
  background: #fbfbfd; color: var(--ink); font: 400 1rem/1.4 var(--f-body);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.ctenq textarea { min-height: 112px; resize: vertical; }
.ctenq select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f596d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.ctenq input:hover, .ctenq select:hover, .ctenq textarea:hover { border-color: #c9c4d8; }
.ctenq input:focus-visible, .ctenq select:focus-visible, .ctenq textarea:focus-visible { outline: none; border-color: var(--accent); background-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.ctenq__hint { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.ctenq__send { justify-self: start; margin-top: 4px; }
.ctenq__send[disabled] { opacity: .65; cursor: progress; }
.ctenq .ctform__ph-note { align-items: flex-start; margin-top: 0; line-height: 1.5; }
.ctenq .ctform__ph-note .i { margin-top: 2px; flex: none; }
.ctenq .ctform__ph-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.ctenq__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ctenq__status { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.ctenq__status .i { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.ctenq__status--ok { background: #ecf8f1; color: #14532d; }
.ctenq__status--err { background: #fdf0f0; color: #7f1d1d; }
.ctenq__status a { color: inherit; font-weight: 600; }
@media (max-width: 560px) { .ctenq__row { grid-template-columns: 1fr; } .ctenq__send { width: 100%; justify-content: center; } }
.ctform__privacy a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* "Getting to Bilton Road": a dark section, matching the dark sections on the other pages */
.page .panel.ctdir { color: #d1ced9; --line: #35343c; --ink-2: #d1ced9; --muted: #a6a3b0;
  background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, #7356c4 24%, #1e1d23) 0%, transparent 60%), radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, #7356c4 12%, #1e1d23) 0%, transparent 70%), #1e1d23; }
.ctdir .pill { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); color: #c4b3f0; }
.ctdir .sec-head__sub { color: #d1ced9; }
.ctdir__list li { background: #29282f; border-color: #35343c; }
.ctdir__ico { background: #352f48; color: #c4b3f0; }
.ctdir__list h3, .ctdir__list strong { color: #fff; }
.ctdir__src { color: #a6a3b0; }
.ctdir__src a, .ctdir__list a { color: #fff; }
/* the map card stays light, so it keeps the light-section text colours */
.ctdir .ctmap { --muted: #605f69; --ink-2: #3d3c44; --line: #e8e7ec; color: var(--ink); }

/* Enquiry form: dark card in the same style as the dark sections, light text and fields */
.ctform__ph--hero.ctenq {
  --ink: #f5f4f8; --ink-2: #d1ced9; --muted: #a6a3b0; --line: #35343c; --line-2: #46444e;
  --accent: #c4b3f0; --brand: #7a5fd0; --brand-ink: #8a70dc;
  color: #d1ced9; border-color: #35343c;
  background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, #7356c4 24%, #1e1d23) 0%, transparent 60%), radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, #7356c4 12%, #1e1d23) 0%, transparent 70%), #1e1d23;
  box-shadow: 0 40px 80px -46px rgb(20 16 40 / .7);
}
.ctform__ph--hero.ctenq .ctform__ph-ico { background: #352f48; color: #c4b3f0; }
.ctform__ph--hero.ctenq input:not([type="hidden"]), .ctform__ph--hero.ctenq select, .ctform__ph--hero.ctenq textarea { background-color: #29282f; border-color: #6a6775; color: #f5f4f8; }  /* field edges 3.3:1 against the card */
.ctform__ph--hero.ctenq input:hover, .ctform__ph--hero.ctenq select:hover, .ctform__ph--hero.ctenq textarea:hover { border-color: #8f8b9c; }
.ctform__ph--hero.ctenq input:focus-visible, .ctform__ph--hero.ctenq select:focus-visible, .ctform__ph--hero.ctenq textarea:focus-visible { background-color: #2d2c34; border-color: #c4b3f0; box-shadow: 0 0 0 3px rgb(196 179 240 / .25); }
.ctform__ph--hero.ctenq select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c4b3f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.ctform__ph--hero.ctenq select option { background: #1e1d23; color: #f5f4f8; }
.ctform__ph--hero.ctenq .btn--brand { background: #7a5fd0; color: #fff; box-shadow: 0 10px 24px -12px rgb(122 95 208 / .8); }
.ctform__ph--hero.ctenq .btn--brand:hover { background: #8a70dc; }
.ctform__ph--hero.ctenq .ctform__ph-note a { color: #fff; }
