/* FoRT event microsite. Mobile-first; RSVPify theme colours (navy #034685,
   block blue #4E76AD, button pink #d16ead) and Josefin Sans. */
:root {
  --navy: #034685;
  --navy-deep: #022f5a;
  --blue: #4E76AD;
  --pink: #d16ead;
  --pink-dark: #b9539a;
  --ink: #12233a;
  --muted: #5b6b80;
  --line: #d9e1ec;
  --bg: #e9eef5;
  --white: #ffffff;
  --err: #b42318;
  --radius: 10px;
  --font: "Josefin Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.previewbar { background: #fff4d6; color: #5a4300; text-align: center; font-size: 14px; padding: 8px 16px; border-bottom: 1px solid #f0d58a; }
.previewbar a { font-weight: 700; }

/* ---------- layout ---------- */
.layout { max-width: 1180px; margin: 0 auto; }
.content { display: flex; flex-direction: column; background: var(--white); }

/* ---------- hero ---------- */
.hero { margin: 0; background: var(--navy-deep); }
.hero img { width: 100%; height: auto; }
.hero--placeholder {
  position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 24px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 30% 70%, #2d7d8f 0%, #0d3f63 45%, #071c33 100%);
}
.hero__logo { width: min(78%, 560px); height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .35)); }
.hero__city { font-size: clamp(28px, 7vw, 54px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1; margin-top: 6px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero__date { font-size: clamp(14px, 3.4vw, 20px); opacity: .9; }

.titleband { background: var(--navy); color: #fff; padding: 22px 20px 20px; text-align: center; }
.titleband h1 { margin: 0; font-size: clamp(24px, 5.6vw, 34px); line-height: 1.15; font-weight: 700; }
.titleband__city { display: block; font-size: .62em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.titleband__when { margin: 8px 0 0; font-size: 18px; }
.jump { margin-top: 14px; }

/* ---------- blocks ---------- */
.block { padding: 28px 20px; }
.block h2 { margin: 0 0 14px; font-size: 1.5rem; line-height: 1.2; font-weight: 700; }
.block p { margin: 0 0 12px; }
.block p:last-child { margin-bottom: 0; }
.block--navy { background: var(--navy); color: #fff; }
.block--blue { background: var(--blue); color: #fff; }
.block--white { background: var(--white); color: var(--navy); }
.block--center { text-align: center; }
.block--navy a, .block--blue a { color: #fff; }

.schedule { list-style: none; margin: 0; padding: 0; }
.schedule__item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.schedule__item:first-child { border-top: 0; padding-top: 4px; }
.schedule__time { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.schedule__name { font-weight: 700; font-size: 1.1rem; }
.schedule__desc { color: var(--muted); }

.venue__photo { width: 100%; border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; background: rgba(255,255,255,.12); }
.venue__photo--placeholder { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); border: 1px dashed rgba(255,255,255,.5); }
.venue__name { margin-top: 12px !important; font-size: 1.1rem; font-weight: 700; }
.venue__name span { font-weight: 400; opacity: .9; }

.maptile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.maptile iframe { display: block; width: 100%; height: 260px; border: 0; }
.maptile__info { padding: 14px 16px; color: var(--ink); }
.maptile__name { font-weight: 700; color: var(--navy); }
.maptile__addr { color: var(--muted); }
.maptile__link { display: inline-block; margin-top: 6px; color: var(--navy); font-weight: 700; }

/* Sponsors: WHITE background, logos at a common optical size. */
.sponsors { background: #fff; padding: 26px 20px 30px; }
.sponsors__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; align-items: center; }
.sponsors__grid li { display: flex; align-items: center; justify-content: center; min-height: 72px; }
.sponsors__grid a { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; }
.sponsors__grid img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.sponsors__grid span { font-weight: 700; color: var(--navy); }

.contact p { font-size: 1.05rem; }

/* ---------- registration panel ---------- */
.panel { background: var(--bg); padding: 22px 16px; }
.panel__head { background: var(--navy); color: #fff; border-radius: var(--radius) var(--radius) 0 0; padding: 18px 20px; }
.panel__head h2 { margin: 0 0 6px; font-size: 1.5rem; }
.panel__when { font-size: 15px; line-height: 1.45; }
.panel__where { font-size: 15px; opacity: .85; margin-top: 4px; }
#regform, .done, .closed { background: #fff; border-radius: 0 0 var(--radius) var(--radius); padding: 18px 20px 22px; box-shadow: 0 6px 24px rgba(3, 70, 133, .08); }
.closed p { margin: 0; color: var(--navy); font-weight: 600; }

.field { margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: 5px; line-height: 1.3; }
.req { color: var(--pink-dark); }
.help { font-size: 13px; color: var(--muted); margin: -2px 0 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ink); background: #fff; border: 1px solid #b9c6d8; border-radius: 7px; padding: 10px 12px; min-height: 44px;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.err { color: var(--err); font-size: 13px; margin-top: 4px; min-height: 0; }
.err:empty { display: none; }
.form-error { background: #fdecea; color: var(--err); border-radius: 7px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.guest { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.guest h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--navy); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block; width: 100%; font: inherit; font-weight: 700; font-size: 17px; letter-spacing: .02em;
  color: #fff; background: var(--pink); border: 0; border-radius: 7px; padding: 13px 18px; min-height: 48px; cursor: pointer; text-align: center; text-decoration: none;
}
.btn:hover { background: var(--pink-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--ghost { width: auto; background: var(--pink); padding: 10px 26px; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.done h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.35rem; }
.done p { margin: 0 0 8px; }

.foot { text-align: center; font-size: 13px; color: var(--muted); padding: 18px 16px 28px; }

/* ---------- index ---------- */
.index { background: radial-gradient(120% 90% at 30% 70%, #2d7d8f 0%, #0d3f63 45%, #071c33 100%); min-height: 100vh; color: #fff; }
.index__wrap { max-width: 640px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.index__logo { width: min(100%, 520px); margin: 0 auto 18px; }
.index__lead { font-size: 18px; opacity: .9; }
.index__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.index__list a { display: flex; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); padding: 16px 18px; border-radius: 10px; text-decoration: none; }
.index__list a:hover { background: rgba(255,255,255,.18); }
.index a { color: #fff; }

/* ---------- tablet ---------- */
@media (min-width: 600px) {
  .block, .sponsors { padding-left: 36px; padding-right: 36px; }
  .sponsors__grid { grid-template-columns: repeat(3, 1fr); }
  .maptile { display: grid; grid-template-columns: 1.6fr 1fr; }
  .maptile iframe { height: 100%; min-height: 280px; }
  .maptile__info { align-self: center; }
}

/* ---------- desktop: left content column, right registration panel ---------- */
@media (min-width: 980px) {
  body { padding: 28px 24px 0; }
  .content { display: grid; grid-template-columns: minmax(0, 1fr) 410px; border-radius: 12px; overflow: clip; box-shadow: 0 10px 40px rgba(3, 70, 133, .12); }
  .content > * { grid-column: 1; }
  /* The panel sits beside every left-hand block (it spans all their rows). */
  /* Darker than the page background so the card's rounded right corners read clearly. */
  .content > .panel { grid-column: 2; grid-row: 1 / span 40; padding: 24px 22px; border-left: 1px solid var(--line); background: #a3b7d1; }
  .jump { display: none; }
  .sponsors__grid { grid-template-columns: repeat(4, 1fr); }
}
