/* ============================================================
   EMEAP 2026 · Panglao, Bohol — Delegate Registration Microsite
   Palette: BSP navy & gold, ivory ground, subtle sea-waves
   ============================================================ */

:root {
  --navy:        #0b2444;
  --navy-2:      #123a6b;
  --navy-3:      #1b4f8f;
  --gold:        #c9a227;
  --gold-soft:   #e5d9a8;
  --ivory:       #f7f5ef;
  --ink:         #1f2430;
  --ink-soft:    #5a6272;
  --line:        #e3ddcc;
  --white:       #ffffff;
  --error:       #a33b32;
  --radius:      10px;
  --shadow:      0 10px 30px rgba(11, 36, 68, 0.10);
  --font-serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-seal { width: 54px; height: 54px; object-fit: contain; }
.brand-seal--emeap { width: 48px; height: 48px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; }
.brand-text--right { text-align: right; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 70% 10%, rgba(27, 79, 143, 0.9) 0%, rgba(11, 36, 68, 0) 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 88px 24px 0;
  overflow: hidden;
}
/* Faint gold contour lines — a quiet nod to Bohol's seas and hills */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(
    circle at 50% 130%,
    transparent 0px,
    transparent 78px,
    rgba(201, 162, 39, 0.07) 79px,
    transparent 80px
  );
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; padding-bottom: 110px; }
.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.2rem);
  letter-spacing: 0.04em;
  line-height: 1;
}
.hero-year { color: var(--gold); font-weight: 500; }
.hero-rule {
  width: 92px;
  height: 2px;
  margin: 26px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-meta {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.92);
}
.hero-tag {
  margin-top: 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.6);
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-waves svg { width: 100%; height: 110px; display: block; }

/* ---------- Page & cards ---------- */
.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 48px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.welcome p { margin-bottom: 12px; color: var(--ink); }
.welcome-notes {
  margin: 16px 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.welcome-notes li { margin-bottom: 4px; }
.req { color: var(--error); }

/* ---------- Form ---------- */
fieldset {
  border: none;
  margin-bottom: 30px;
}
legend {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy-3);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.field { margin-bottom: 18px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
input[type="text"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfc8b4;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(27, 79, 143, 0.12);
}
input.invalid, textarea.invalid { border-color: var(--error); }
textarea { resize: vertical; }
::placeholder { color: #a8a294; }

/* File upload */
.file-drop {
  position: relative;
  border: 2px dashed #cfc8b4;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  background: #fcfbf7;
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--gold);
  background: #fbf7ea;
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop-hint { color: var(--ink-soft); font-size: 0.92rem; }
.file-drop-hint strong { color: var(--navy-2); }
.file-drop-hint span { font-size: 0.8rem; }
.file-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f4f2ea;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.88rem;
}
.file-list .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-size { color: var(--ink-soft); flex-shrink: 0; }
.file-list .file-remove {
  border: none;
  background: none;
  color: var(--error);
  font-size: 1.05rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}

/* Honeypot — off-screen but present in the DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Captcha */
.field--captcha { max-width: 320px; }
.captcha-q {
  font-weight: 600;
  color: var(--navy);
  background: #f4f2ea;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 10px;
  letter-spacing: 0.05em;
}
.captcha-note { margin-top: 6px; font-size: 0.78rem; color: var(--ink-soft); }

/* Errors & actions */
.form-error {
  background: #faf0ef;
  border: 1px solid #e2c2bf;
  color: var(--error);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-actions { text-align: center; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(180deg, #d9b73f, var(--gold));
  border: 1px solid #a8861d;
  border-radius: 6px;
  padding: 15px 46px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}
.btn-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201, 162, 39, 0.45); }
.btn-submit:disabled { opacity: 0.65; cursor: wait; }
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(11, 36, 68, 0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.privacy-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Success panel */
.success-panel { text-align: center; padding: 30px 10px 10px; }
.success-emblem {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.9rem;
  line-height: 64px;
}
.success-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.success-panel p { color: var(--ink-soft); margin-bottom: 8px; }
.success-ref { font-size: 1.05rem; color: var(--ink) !important; }
.success-ref strong { color: var(--navy-2); letter-spacing: 0.06em; }
.success-note { font-size: 0.82rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-seal { width: 58px; height: 58px; object-fit: contain; }
.footer-host { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); }
.footer-sub { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }
.footer-contact { font-size: 0.82rem; margin-top: 6px; }
.footer-contact a { color: var(--gold-soft); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .card { padding: 30px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero { padding-top: 64px; }
  .hero-inner { padding-bottom: 90px; }
  .brand-name { font-size: 0.98rem; }
  .brand-seal { width: 44px; height: 44px; }
}
