/* Send an enquiry.
   A split hero on linen, the form on a paper panel with the brochure's thin double rule, a yew aside that
   stays beside it, and a closing band for funeral directors. One 32px top-left corner, square buttons. */

/* ---------------- hero ---------------- */
.ct-hero { position: relative; padding-block: clamp(36px, 4.5vw, 72px) clamp(56px, 6vw, 96px); background: var(--linen); overflow: clip; }
.ct-hero__feathers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ct-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.ct-crumbs { color: var(--umber-soft); text-shadow: none; }
.ct-crumbs a { color: var(--bronze-deep); }
.ct-hero h1 { font-size: clamp(2.6rem, 5vw, 5.2rem); line-height: 1.06; margin-bottom: 22px; }
.ct-hero h1 em { color: var(--bronze-deep); }
.ct-hero .lede { margin-bottom: 30px; }
.ct-hero__pic { justify-self: end; aspect-ratio: 3 / 2; width: min(100% - 14px, calc(var(--media-cap) * 1.5)); }
.ct-down { transform: rotate(90deg); }
.btn:hover .ct-down { transform: rotate(90deg) translateX(4px); }

/* ---------------- the form band ---------------- */
.ct-form { scroll-margin-top: var(--head-h); }
.ct-form__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

/* the paper panel: a thin bronze rule with a second rule just inside it, as on her brochure */
.ct-panel { position: relative; padding: clamp(26px, 4vw, 60px); background: var(--linen); border: 1px solid var(--bronze); border-radius: var(--r); box-shadow: 0 50px 90px -60px rgba(58, 50, 42, .55); }
.ct-panel::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--rule); border-radius: 25px 0 0 0; pointer-events: none; }
.ct-panel__h { margin-bottom: 10px; }
.ct-panel__intro { color: var(--umber-soft); margin-bottom: 28px; }

.ct-f { position: relative; display: grid; gap: 24px; }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ct-f .field > label { transition: color .35s var(--ease); }
.ct-f .field:focus-within > label { color: var(--bronze-deep); }
.ct-opt { font-weight: 400; color: var(--umber-soft); }
.ct-f .input, .ct-f .select, .ct-f .textarea { scroll-margin-top: calc(var(--head-h) + 70px); }
.ct-f .input::placeholder, .ct-f .textarea::placeholder { color: #8A7D6D; opacity: 1; }

/* who is getting in touch: three radio cards */
.ct-who { border: 0; margin: 0; padding: 0; min-width: 0; }
.ct-who legend { padding: 0; margin-bottom: 10px; }
.ct-who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct-who__card { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding: 16px 16px 16px 14px; background: #FBF8F2; border: 1.5px solid #CDBFA8; border-radius: var(--r-sm); cursor: pointer; line-height: 1.45; font-size: 1rem; transition: border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease); }
.ct-who__card:hover { border-color: var(--bronze); }
.ct-who__card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ct-who__dot { position: relative; flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--bronze); border-radius: 50%; background: var(--linen); }
.ct-who__dot::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--yew); transform: scale(0); transition: transform .45s var(--ease); }
.ct-who__card input:checked + .ct-who__dot { border-color: var(--yew); }
.ct-who__card input:checked + .ct-who__dot::after { transform: scale(1); }
.ct-who__card:has(input:checked) { border-color: var(--yew); background: #fff; box-shadow: 0 0 0 1px var(--yew); }
.ct-who__card:has(input:focus-visible) { outline: 2px solid var(--umber); outline-offset: 3px; }

/* the planner's draft running order */
.ct-plan { position: relative; padding: 24px clamp(18px, 2.4vw, 30px); background: #FBF8F2; border: 1px solid var(--bronze); border-radius: var(--r-sm); }
.ct-plan::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--rule); border-radius: 27px 0 0 0; pointer-events: none; }
.ct-plan__h { font-size: clamp(1.25rem, 1.5vw, 1.5rem); margin-bottom: 4px; }
.ct-plan__note { font-size: .95rem; color: var(--umber-soft); margin-bottom: 14px; }
.ct-plan__body { max-height: 340px; overflow: auto; padding: 14px 0; border-block: 1px solid var(--rule); font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; }
.ct-plan .tlink { padding-top: 10px; }

/* notes, the error summary and the sending row */
.ct-note { margin-bottom: 26px; padding: 18px 22px; background: #FBF8F2; border: 1px solid var(--rule); border-left: 3px solid var(--bronze); border-radius: var(--r-sm); }
.ct-note--err { border-left-color: #A3412A; }
.ct-note h3, .ct-errs h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.ct-note p { margin: 0; }
.ct-note .tel, .ct-thanks .tel { min-height: 0; color: var(--bronze-deep); }
.ct-errs { margin-bottom: 26px; padding: 18px 22px; background: #F8EAE3; border: 1.5px solid #A3412A; border-radius: var(--r-sm); }
.ct-errs[hidden] { display: none; }
.ct-errs ul { margin: 0; padding-left: 20px; }
.ct-errs a { color: #93391F; font-weight: 500; }
.ct-errs:focus, .ct-note:focus, .ct-thanks:focus { outline: none; }
.ct-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 6px; }
.ct-send__note { margin: 0; font-size: .95rem; color: var(--umber-soft); }
.ct-send__note a { color: var(--bronze-deep); }
.ct-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* sent */
.ct-thanks { position: relative; }
.ct-thanks__mark { width: 64px; height: 64px; margin-bottom: 22px; fill: none; stroke: var(--bronze); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-thanks .h2 { margin-bottom: 16px; }
.ct-thanks .btns { margin-top: 26px; }

/* ---------------- the aside: stays beside the form on wide screens ---------------- */
.ct-aside { position: sticky; top: calc(var(--head-h) + 24px); }
.ct-aside__in { position: relative; padding: clamp(26px, 2.6vw, 40px); background: var(--yew); color: var(--linen); border-radius: var(--r); }
.ct-aside__in::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(163, 174, 144, .35); border-radius: 25px 0 0 0; pointer-events: none; }
.ct-aside__blk + .ct-aside__blk { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(205, 212, 192, .22); }
.ct-aside h3 { font-size: clamp(1.25rem, 1.5vw, 1.45rem); line-height: 1.25; margin-bottom: 8px; color: var(--linen); }
.ct-aside p { margin: 0 0 8px; font-size: 1rem; line-height: 1.6; color: #E6E0D4; }
.ct-aside :focus-visible { outline-color: var(--linen); }
.ct-aside__tel { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-family: var(--serif); font-size: clamp(1.45rem, 1.9vw, 1.9rem); color: var(--linen); text-decoration: none; }
.ct-aside__tel .i-phone { width: 22px; height: 22px; color: var(--sage); }
.ct-aside__tel:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ct-next { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: nx; }
.ct-next li { position: relative; padding-left: 40px; counter-increment: nx; font-size: 1rem; line-height: 1.55; color: #E6E0D4; }
.ct-next li::before { content: counter(nx); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--sage); border-radius: 50%; font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--sage-light); }
.ct-aside__marks { display: flex; align-items: center; gap: 16px; }
.ct-aside__marks img { width: 84px; height: 84px; flex: none; }
.ct-aside__marks p { margin: 0; font-size: .95rem; color: var(--sage-light); }

/* ---------------- funeral directors ---------------- */
.ct-fd { overflow: clip; isolation: isolate; }
.ct-fd__feathers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ct-fd__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.ct-fd__pic { aspect-ratio: 3 / 2; width: min(100% - 14px, calc(var(--media-cap) * 1.5)); }
.ct-fd .h2 { margin-bottom: 18px; }
.ct-fd .lede { margin-bottom: 12px; color: var(--linen); }
.ct-fd .btns { margin-top: 26px; }

/* ---------------- smaller screens ---------------- */
@media (max-width: 1100px) {
  .ct-form__grid { grid-template-columns: 1fr; }
  .ct-aside { position: static; }
  .ct-aside__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
  .ct-aside__blk + .ct-aside__blk { margin-top: 0; }
  .ct-aside__blk { padding-block: 20px; }
  .ct-aside__blk:nth-child(-n+2) { padding-top: 0; border-top: 0; }
}
@media (max-width: 900px) {
  .ct-hero__grid, .ct-fd__grid { grid-template-columns: 1fr; }
  .ct-hero__pic { justify-self: start; }
  .ct-who__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-aside__in { grid-template-columns: 1fr; }
  .ct-aside__blk:nth-child(2) { padding-top: 20px; border-top: 1px solid rgba(205, 212, 192, .22); }
  .ct-send .btn { width: 100%; }
}

/* QA round 1: bronze feathers drift behind the form */
.ct-form { position: relative; overflow: clip; isolation: isolate; }
.ct-form__feathers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
