/* =====================================================================
   Delight RSVP — Virtual Open Day invitation page.
   Built on the theme's tokens (base.css) and components (.container, .btn,
   .field, .input, .select, .alert); everything here is scoped to .od.
   ===================================================================== */

.od {
  --od-sky: #1E9FDE;          /* invitation banner, subject tiles */
  --od-sky-2: #1583C9;
  --od-mid: #1078C0;          /* top of the blue section (theme --blue) */
  --od-deep: #0B4F86;         /* bottom of the blue section */
  --od-ink: #0E5290;          /* poster's dark blue for headings on white */
  --od-accent: #5CC4EF;       /* light blue accent text on dark */
  color: #fff;
  background: var(--od-deep);
}
.od svg { display: block; }

/* ---------- Call-to-action button (white pill, as on the poster) ---------- */
.od .od-btn {
  background: #fff; color: var(--od-ink);
  border-radius: var(--r-pill); padding: 16px 30px;
  font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 16px 30px -14px rgba(2, 16, 40, .75);
}
.od .od-btn svg { width: 18px; height: 18px; transition: transform var(--base) var(--ease); }
.od .od-btn:hover { background: #fff; color: var(--blue); transform: translateY(-2px); box-shadow: 0 22px 36px -14px rgba(2, 16, 40, .8); }
.od .od-btn:hover svg { transform: translateY(3px); }
.od .od-btn-navy { background: var(--navy); color: #fff; }
.od .od-btn-navy:hover { background: var(--navy-800); color: #fff; }
.od .od-btn:focus-visible, .od .od-submit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(16, 120, 192, .55); }

/* ---------- Hero ---------- */
.od-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(110% 95% at 76% 38%, #1D3B63 0%, #10264A 48%, var(--navy) 100%);
}
.od-hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 8px;
  align-items: end; min-height: 560px;
}
.od-hero-copy { z-index: 3; align-self: center; padding: 64px 0 168px; }
.od-badge { position: absolute; top: 34px; right: 24px; z-index: 3; margin: 0; text-align: right; line-height: 1; }
.od-badge b { display: block; font-size: clamp(2.1rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -.01em; color: #fff; }
.od-badge span { display: block; margin-top: 8px; font-size: .84rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--od-accent); }

.od-wordmark { margin: 0; color: #fff; line-height: .92; font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.045em; }
.od-wordmark span { white-space: nowrap; } /* keeps "Open Day" together when the line wraps */
.od-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.od-hero-note { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.od-hero-note strong { color: #fff; font-weight: 600; }

.od-hero-photo { position: relative; z-index: 1; align-self: end; margin-right: -24px; }
.od-hero-photo img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 4%, #000 27%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 18%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 4%, #000 27%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 18%);
  mask-composite: intersect;
}
.od-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; width: 100%; height: 150px; fill: var(--od-mid); pointer-events: none; }

/* ---------- Blue section: invitation banner, details, services ---------- */
.od-body {
  position: relative;
  background: linear-gradient(180deg, var(--od-mid) 0%, #0D62A3 46%, var(--od-deep) 100%);
  padding: 0 0 96px;
}
.od-body::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104' fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Cpath d='M30 0 60 17.3v34.7L30 69.3 0 52V17.3Z'/%3E%3Cpath d='M90 52l30 17.3V104M90 52 60 69.3V104M90 52V17.3'/%3E%3Cpath d='M60 17.3 90 0l30 17.3'/%3E%3C/svg%3E");
  background-size: 120px 104px;
}
.od-body > .container { position: relative; z-index: 4; }

.od-invite {
  max-width: 1010px; margin: -118px auto 0; padding: 30px 48px 36px; text-align: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #25A8E4 0%, #1789CF 100%);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 34px 60px -30px rgba(3, 18, 46, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.od-invite-eyebrow { margin: 0; font-size: clamp(.7rem, 1.35vw, 1rem); font-weight: 700; letter-spacing: .36em; text-transform: uppercase; color: #fff; }
.od-invite h1 { margin: 6px 0 16px; font-size: clamp(2.15rem, 7.2vw, 4.75rem); font-weight: 800; line-height: 1; letter-spacing: -.005em; text-transform: uppercase; color: #fff; }
.od-when {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .55em;
  margin: 0; padding: 9px 30px; border-radius: 999px; background: #fff; color: var(--od-ink);
  font-size: clamp(.84rem, 1.8vw, 1.28rem); font-weight: 800; letter-spacing: -.005em; text-transform: uppercase; line-height: 1.35;
}
.od-when em { font-style: normal; color: var(--od-sky); }
.od-invite-cta { margin: 18px 0 0; }

.od-intro { max-width: 780px; margin: 48px auto 0; text-align: center; font-size: 1.1rem; line-height: 1.75; color: rgba(255, 255, 255, .94); }

.od-facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; }
.od-facts li {
  display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center;
  padding: 18px 20px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
}
.od-fact-ic { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--od-ink); }
.od-fact-ic svg { width: 24px; height: 24px; }
.od-fact-label { align-self: end; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.od-fact-value { align-self: start; font-size: 1.02rem; font-weight: 700; line-height: 1.3; color: #fff; }

.od-services-title { margin: 64px 0 20px; font-size: 1.2rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.od-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.od-services li {
  display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 16px 18px;
  border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, #22A3E0 0%, #1484CB 100%);
  box-shadow: 0 16px 26px -16px rgba(2, 16, 42, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
  font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -.015em; text-transform: uppercase; line-height: 1.15; color: #fff;
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.od-services li:hover { transform: translateY(-4px); box-shadow: 0 24px 32px -18px rgba(2, 16, 42, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.od-services .od-mins { gap: 14px; background: #fff; color: var(--od-ink); }
.od-mins b { font-size: clamp(2.4rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.od-mins span { font-size: clamp(.78rem, 1.3vw, 1rem); font-weight: 800; line-height: 1.25; text-align: left; letter-spacing: 0; }


/* ---------- RSVP section (white, rounded corner as on the poster's footer) ---------- */
.od-rsvp-wrap { background: var(--od-deep); }
.od-rsvp {
  background: #fff; color: var(--ink-2);
  border-radius: 0 clamp(64px, 11vw, 150px) 0 0;
  padding: 88px 0 104px; scroll-margin-top: 68px;
}
.od-rsvp-inner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: start; }
.od-rsvp-aside { position: sticky; top: 104px; }
.od-kicker { margin: 0; font-size: 1.05rem; font-weight: 500; letter-spacing: .01em; text-transform: uppercase; color: var(--grey); }
.od-rsvp-aside h2 { margin: 6px 0 16px; font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--od-ink); }
.od-rsvp-aside p { margin: 0; font-size: 1.02rem; }

.od-summary { margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.od-summary div { display: flex; align-items: center; gap: 12px; }
.od-summary dt { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.od-summary dt svg { width: 20px; height: 20px; }
.od-summary dd { margin: 0; font-weight: 600; color: var(--ink); }

.od-rsvp-aside .od-closing { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .92rem; font-weight: 500; text-transform: uppercase; color: var(--grey); }
.od-closing em { font-style: normal; font-weight: 800; color: var(--od-sky); }
.od-closing strong { display: block; margin-top: 2px; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; text-transform: none; color: var(--od-ink); }

.od-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl); box-shadow: var(--shadow-md); padding: 36px; scroll-margin-top: 84px; }
.od-form-title { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.od-form-sub { margin: 4px 0 22px; font-size: .88rem; color: var(--muted); }
.od-req { color: var(--red); font-weight: 700; }
.od-form-alert { margin-bottom: 18px; }
.od-form-alert[hidden] { display: none; }
.od-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.od-col-2 { grid-column: 1 / -1; }
.od-form .field { margin-bottom: 18px; }
.od-form .field > label { margin-bottom: 7px; font-size: .9rem; }
.od-form .input, .od-form .select { min-height: 52px; padding: 13px 16px; font-family: inherit; font-size: 1rem; background-color: var(--surface-2); border-color: #D5DDE8; }
.od-form .select { padding-right: 42px; }
.od-form .field:not(.has-error) .input:hover, .od-form .field:not(.has-error) .select:hover { border-color: #B7C4D6; }
.od-form .input:focus, .od-form .select:focus { background-color: #fff; }
.od-form .field:not(.has-error) .input:focus, .od-form .field:not(.has-error) .select:focus { border-color: var(--blue); }
.od-form .select:invalid, .od-form .select.is-empty { color: var(--muted); }
.od-form .select option { color: var(--ink); }
.od-form .field.has-error .input, .od-form .field.has-error .select { background-color: #FFFBFA; }
.od-form .field.has-error .select:focus { box-shadow: 0 0 0 4px rgba(214, 69, 61, .14); }
.od-form .field-error { font-size: .84rem; }
.od-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.od-submit { width: 100%; margin-top: 6px; padding: 17px 24px; border-radius: var(--r-pill); font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.od-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -12px rgba(16, 120, 192, .75); }
.od-submit.is-loading:hover { transform: none; }
.od-privacy { margin: 16px 0 0; font-size: .8rem; line-height: 1.55; color: var(--muted); text-align: center; }
.od-privacy a { color: var(--blue); text-decoration: underline; }

.od-success { text-align: center; padding: 12px 4px 4px; outline: none; }
.od-success[hidden] { display: none; }
.od-success-ic { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--green-50); color: var(--green); animation: od-pop .5s var(--ease) both; }
.od-success-ic svg { width: 38px; height: 38px; }
.od-success h3 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.015em; color: var(--od-ink); }
.od-success p { margin: 0 auto; max-width: 46ch; font-size: 1.02rem; }
.od-summary-center { justify-content: center; grid-auto-flow: row; width: fit-content; margin: 24px auto; padding: 18px 26px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); text-align: left; }
.od-success .od-success-note { font-size: .9rem; color: var(--muted); }
.od-success-note a, .od-closed a { color: var(--blue); text-decoration: underline; }
.od-success .btn { margin-top: 22px; }
.od-closed h3 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.od-closed p { margin: 0; }
@keyframes od-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Sticky call-to-action bar: phones only (shown in the Phone block below) ---------- */
.od-sticky { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .od-hero-inner { min-height: 480px; }
  .od-hero-copy { padding: 52px 0 140px; }
  .od-wave { height: 110px; }
  .od-invite { margin-top: -84px; padding: 26px 32px 30px; border-radius: 60px; }
  .od-facts { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .od-services { gap: 18px 20px; }
  .od-rsvp { padding: 72px 0 84px; }
  .od-rsvp-inner { grid-template-columns: 1fr; gap: 36px; }
  .od-rsvp-aside { position: static; }
  .od-summary { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 26px; }
  .od-summary-center { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .od-hero-inner { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .od-hero-copy { padding: 44px 0 0; }
  .od-hero-photo { margin: -6px -24px 0; max-width: 620px; justify-self: center; width: calc(100% + 48px); }
}

/* ---------- Phone ---------- */
@media (max-width: 680px) {
  .od-badge { position: static; display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; text-align: left; }
  .od-badge b { font-size: 1.7rem; }
  .od-badge span { margin: 0; font-size: .72rem; letter-spacing: .2em; }
  .od-hero-copy { padding-top: 32px; }
  .od-wordmark { font-size: clamp(1.9rem, 9.6vw, 2.6rem); }
  .od .od-btn { padding: 15px 26px; }
  .od-wave { height: 80px; }
  .od-invite { margin-top: -64px; padding: 24px 14px 26px; border-radius: 30px; }
  .od-invite-eyebrow { letter-spacing: .16em; line-height: 1.6; }
  .od-invite h1 { margin: 8px 0 16px; font-size: clamp(1.4rem, 7.4vw, 3rem); }
  .od-when { display: flex; padding: 10px 16px; border-radius: 18px; gap: 0 .5em; }
  .od-when-dot { display: none; }
  .od-when span { flex: 1 1 100%; }
  .od-invite-cta { margin-top: 14px; }
  .od-invite-cta .od-btn { width: 100%; padding: 15px 16px; font-size: clamp(.76rem, 3.9vw, .92rem); letter-spacing: .04em; }
  .od-intro { margin-top: 36px; font-size: 1.02rem; }
  .od-facts { margin-top: 30px; gap: 12px; }
  .od-facts li { grid-template-columns: 1fr; row-gap: 4px; padding: 16px; }
  .od-fact-ic { grid-row: auto; width: 40px; height: 40px; margin-bottom: 6px; }
  .od-fact-value { font-size: .95rem; }
  .od-services-title { margin-top: 48px; }
  .od-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .od-services li { min-height: 76px; border-radius: 20px; padding: 14px 10px; }
  .od-body { padding-bottom: 72px; }
  .od-rsvp { padding: 56px 0 72px; }
  .od-summary { grid-template-columns: 1fr; }
  .od-form-card { padding: 24px 20px; border-radius: var(--r-xl); }
  .od-form-grid { grid-template-columns: 1fr; }
  .od-submit { white-space: normal; }
  .od-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 350;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 27, 58, .95); box-shadow: 0 -10px 24px -14px rgba(2, 16, 40, .7);
    transform: translateY(105%); visibility: hidden;
    transition: transform var(--base) var(--ease), visibility 0s linear var(--base);
  }
  .od-sticky.is-visible { transform: none; visibility: visible; transition: transform var(--base) var(--ease); }
  .od-sticky .od-btn { width: 100%; padding: 14px 16px; font-size: clamp(.76rem, 3.9vw, .92rem); letter-spacing: .04em; box-shadow: none; }
  .od-sticky .od-btn:hover { transform: none; box-shadow: none; }
  /* Same lift the theme gives its help button above the portal tab bar. */
  body.od-sticky-on .asst-btn { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .od-facts { grid-template-columns: 1fr; }
  .od-facts li { grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 0; }
  .od-fact-ic { grid-row: span 2; margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .od .od-btn, .od .od-btn svg, .od-services li, .od-submit, .od-sticky, .od-sticky.is-visible { transition: none; }
  .od .od-btn:hover, .od-services li:hover, .od-submit:hover { transform: none; }
  .od-success-ic { animation: none; }
}
