/* EASE Approach: contact page (form opener, what happens next, planner nudge) */

/* ---------- Opener: the form on the first screen ---------- */
.co { padding-block: clamp(22px, 2.6vw, 36px) clamp(56px, 6vw, 96px); }
.bg-shell .drift { color: rgba(35, 48, 168, .1); height: 55%; }
.co__grid { display: grid; grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr); gap: clamp(28px, 4.2vw, 64px); align-items: stretch; }
.co h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); margin-bottom: .12em; }
.co .calm--h { height: 20px; margin: 0 0 14px; }
.co__card { position: relative; background: #fff; border-radius: var(--r); padding: clamp(20px, 2.2vw, 32px); box-shadow: 0 30px 70px -40px rgba(5, 3, 102, .45), 0 0 0 1px rgba(5, 3, 102, .06); }
.co__card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: var(--r) 0 0 var(--r); background: linear-gradient(180deg, var(--orange), var(--royal)); }
.co__form { gap: 14px; scroll-margin-top: calc(var(--head-h) + 20px); }
.co__form .form__row { gap: 14px 18px; }
.co__row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, .62fr); }
.co__form .field { gap: 6px; position: relative; }
.co__form .field label { font-size: .98rem; transition: color .3s; }
.co__form .field label span { color: var(--orange-d); }
.co__form .field input, .co__form .field select, .co__form .field textarea { font-size: 1rem; min-height: 50px; background-color: #FCFCFF; }
.co__form .field textarea { min-height: 96px; height: 96px; }
.co__form .field:focus-within label { color: var(--royal); }
/* focus: a calm underline draws across the field */
.co__form .field::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 0; height: 3px; border-radius: 0 0 var(--r) var(--r); background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease-out); pointer-events: none; }
.co__form .field:focus-within::after { transform: scaleX(1); }
.co__form .field input:focus, .co__form .field select:focus, .co__form .field textarea:focus { background-color: #fff; }
.co__planned { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: var(--rb); background: var(--shell); color: var(--orange-d) !important; font-weight: 600 !important; font-size: .875rem; }
.co__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 2px; }
.co__send .form__small { flex: 1 1 260px; }
.co__form .form__status { scroll-margin-top: calc(var(--head-h) + 20px); }

/* the photo and its panel */
.co__side { position: relative; margin-top: 8px; display: flex; flex-direction: column; max-height: min(76vh, 760px); }
.co__photo { flex: 1 1 auto; height: auto; min-height: 520px; max-height: min(76vh, 760px); background: var(--navy); }
.co__ph { position: absolute; inset: 0; visibility: hidden; }
.co__ph.is-on { visibility: visible; }
.co__ph .br { position: absolute; inset: -3%; }
.co__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.co__photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(180deg, rgba(5, 3, 102, .42) 0%, rgba(5, 3, 102, 0) 24%, rgba(5, 3, 102, 0) 52%, rgba(5, 3, 102, .5) 100%); }
.co__tag { position: absolute; z-index: 3; top: 16px; left: 16px; right: 16px; margin: 0; }
.co__tag span { display: inline-block; background: rgba(255, 255, 255, .94); color: var(--navy); font: 600 .92rem/1.2 var(--sans); padding: 9px 13px; border-radius: var(--rb); }
.co__panel { position: absolute; z-index: 4; left: clamp(-36px, -2.4vw, -18px); right: 22px; bottom: 22px; background: var(--navy); color: #E8E8F8; border-radius: var(--r); padding: 20px 22px 18px; box-shadow: 0 30px 60px -30px rgba(5, 3, 70, .7); --line: rgba(252, 103, 3, .45); }
.co__panel-h { font: italic 600 1.3rem/1.2 var(--serif); color: #fff; margin: 0 0 4px; }
.co__panel .calm { height: 22px; margin: 0 0 10px; }
.co__expect { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.co__expect li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 12px; font-size: .95rem; line-height: 1.45; }
.co__expect li::before { content: ''; grid-row: 1 / 3; width: 12px; height: 12px; margin-top: 5px; border-radius: 2px; background: var(--orange); }
.co__expect strong { color: #fff; font-weight: 600; font-size: 1rem; }
.co__expect span { color: rgba(232, 232, 248, .8); }

@media (max-width: 1100px) {
  .co__row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .co__row3 .field:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 980px) {
  .co .drift { inset: 0 0 auto 0; height: 420px; color: rgba(35, 48, 168, .17); }
  .co__grid { grid-template-columns: 1fr; }
  .co__side { margin-top: 10px; display: block; max-height: none; }
  .co__photo { height: min(70vh, 620px); }
  .co__panel { left: 18px; right: 18px; }
}
@media (max-width: 600px) {
  .co__row3 { grid-template-columns: 1fr; }
  .co__row3 .field:nth-child(2) { grid-row: auto; }
  .co__photo { height: 560px; min-height: 0; max-height: 82vh; }
  .co__panel { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .co__send .btn { width: 100%; justify-content: center; }
}

/* ---------- What happens after you enquire ---------- */
.nx__head h2 { margin: 0 0 .3em; }
.nx__track { position: relative; }
.nx__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); position: relative; z-index: 2; }
.nx__step { display: grid; align-content: start; grid-template-areas: "img" "mk" "t" "p"; }
.nx__img { grid-area: img; aspect-ratio: 3 / 2; max-height: min(40vh, 340px); width: 100%; }
.nx__mk { grid-area: mk; position: relative; width: 54px; height: 54px; display: grid; place-items: center; margin: 26px 0 18px; border-radius: var(--r); background: #fff; border: 2px solid rgba(35, 48, 168, .35); font: italic 600 1.45rem/1 var(--serif); color: var(--royal); transition: background-color .5s, border-color .5s, color .5s, transform .6s var(--ease-out); }
.nx__mk.is-on { background: var(--orange); border-color: var(--orange); color: var(--navy); transform: scale(1.06); }
.nx__step h3 { grid-area: t; margin: 0 0 .4em; }
.nx__step p { grid-area: p; margin: 0; color: var(--muted); }
.nx__line { position: absolute; z-index: 1; left: 27px; top: 0; width: 0; height: 2px; background: rgba(35, 48, 168, .16); pointer-events: none; }
.nx__line i, .nx__line b { position: absolute; inset: 0; }
.nx__line i { background: var(--orange); transform-origin: 0 50%; transform: scaleX(1); }
.nx__line b { inset: auto; left: -7px; top: -6px; width: 14px; height: 14px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 0 5px rgba(252, 103, 3, .2), 0 0 18px rgba(252, 103, 3, .8); opacity: 0; }
.nx__line.is-v i { transform-origin: 50% 0; }
.nx__line.is-v b { left: -6px; top: -7px; }
.no-js .nx__line { display: none; }
@media (max-width: 900px) {
  .nx__steps { grid-template-columns: 1fr; gap: 34px; }
  .nx__step { grid-template-columns: 54px minmax(0, 1fr); grid-template-areas: "mk t" "mk p" ". img"; column-gap: 18px; }
  .nx__mk { margin: 0; align-self: start; }
  .nx__step h3 { align-self: center; min-height: 54px; display: flex; align-items: center; margin: 0; }
  .nx__step p { margin: 6px 0 16px; }
  .nx__img { max-height: 260px; }
}

/* ---------- Planner nudge ---------- */
.nudge__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.nudge__text .lede { margin-bottom: 30px; }
.nudge__stage { position: relative; padding-bottom: 40px; }
.nudge__fw { width: min(80%, calc(min(66vh, 560px) * .8)); }
.nudge .frame-wrap::before { border-color: rgba(5, 3, 70, .4); }
.nudge__photo { width: 100%; aspect-ratio: 4 / 5; max-height: min(66vh, 560px); }
.mini { position: absolute; right: 0; bottom: 0; z-index: 3; width: min(340px, 74%); background: var(--navy); color: #fff; border-radius: var(--r); padding: 18px 18px 14px; box-shadow: 0 36px 60px -26px rgba(5, 3, 70, .75); }
.mini__h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font-size: .9rem; color: rgba(232, 232, 248, .75); }
.mini__h b { font: 600 1.35rem/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.mini__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 100px; }
.mini__col { position: relative; display: flex; flex-direction: column-reverse; gap: 3px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.mini__col::after { content: attr(data-m); position: absolute; bottom: 3px; left: -2px; right: -2px; text-align: center; font-size: .875rem; line-height: 1.2; color: rgba(232, 232, 248, .65); }
.mini__col i { display: block; height: 20px; border-radius: 2px; background: var(--orange); flex: none; }
.mini__col i.r { background: #8C95F0; }
.mini__key { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .875rem; color: rgba(232, 232, 248, .75); }
.mini__key i { width: 10px; height: 10px; border-radius: 2px; background: var(--orange); }
.mini__key i.k-r { background: #8C95F0; margin-left: 10px; }
@media (max-width: 900px) {
  .nudge__grid { grid-template-columns: 1fr; }
  .nudge__fw { width: min(76%, 400px); }
}
@media (max-width: 520px) {
  .mini { width: 86%; padding: 14px 14px 10px; }
  .mini__cols { height: 92px; }
}

/* the [hidden] attribute must win over the form's display rule */
form#enquiry-form.co__form[hidden] { display: none; }

/* short laptop screens (1366x768): the whole form stays on the first screen */
@media (max-height: 820px) and (min-width: 901px) {
  .co { padding-top: 12px; }
  .co h1 { font-size: clamp(2.4rem, 3.6vw, 3.3rem); margin-bottom: .04em; }
  .co .calm--h { height: 14px; margin-bottom: 10px; }
  .co__card { padding: 18px 24px; }
  .co__form { gap: 9px; }
  .co__form .form__row { gap: 9px 16px; }
  .co__form .field { gap: 3px; }
  .co__form .field input, .co__form .field select, .co__form .field textarea { min-height: 46px; padding-top: 11px; padding-bottom: 11px; }
  .co__form .field textarea { min-height: 84px; height: 84px; }
  .co__send .btn { min-height: 48px; padding-top: 13px; padding-bottom: 13px; }
}
.co__form .field label small { font-size: .875rem; }
