/* ============================================================
   EVOKE - shared stylesheet for the form pages
   (Contact, Register Interest).
   Linked via: <link rel="stylesheet" href="/assets/css/form-page.css">
   ============================================================ */

:root {
  --dark: #0d0a0f;
  --dark-2: #16111c;
  --card-bg: #1a1424;
  --purple: #8224e3;
  --purple-deep: #4a157c;
  --purple-light: #b07ee8;
  --gold: #f0c040;
  --red: #cc2222;
  --white: #f5f1eb;
  --cream: #e8e4dc;
  --grey: rgba(232,228,220,0.7);
  --grey-soft: rgba(232,228,220,0.55);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Mulish', sans-serif;
  background: var(--dark);
  color: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.section-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--gold); }
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: 'Mulish', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--purple-deep); color: var(--white); }
.btn-primary:hover { background: var(--purple); color: var(--white); transform: translateY(-2px); }

/* ── HERO ── */
.hero {
  padding: 160px 0 70px;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(130,36,227,0.15) 0%, transparent 50%),
    var(--dark);
  text-align: center;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p {
  font-size: 18px;
  color: var(--cream);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── CONTACT GRID ── */
.contact-section { padding: 70px 0 80px; background: var(--dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-sidebar h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}
.contact-sidebar h2 em { font-style: italic; color: var(--gold); }
.contact-sidebar p { font-size: 16px; color: var(--cream); line-height: 1.75; margin-bottom: 28px; }

.contact-info-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-info-list li { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.contact-icon svg { width: 18px; height: 18px; fill: currentColor; }
.contact-info-text strong {
  display: block;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-info-text a, .contact-info-text span { color: var(--cream); font-size: 15px; line-height: 1.5; }
.contact-info-text a:hover { color: var(--gold); }
.contact-info-text small { display: block; color: var(--grey-soft); font-size: 13px; margin-top: 2px; font-style: italic; }

/* Form panel */
.form-panel {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.04);
}
@media (max-width: 600px) { .form-panel { padding: 28px 22px; } }
.form-panel-header { margin-bottom: 28px; }
.form-panel-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}
.form-panel-header h3 em { font-style: italic; color: var(--gold); }
.form-panel-header p { font-size: 14px; color: var(--grey); line-height: 1.6; }

.tally-embed { min-height: 600px; background: transparent; }
.tally-placeholder {
  padding: 60px 20px;
  text-align: center;
  border: 2px dashed rgba(176,126,232,0.3);
  border-radius: 6px;
  color: var(--grey-soft);
  font-style: italic;
  font-size: 14px;
}

/* ── NATIVE FORM (self-hosted, replaces Tally) ── */
.evoke-form { display: flex; flex-direction: column; gap: 28px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field[hidden] { display: none; }
.form-field label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--grey); }
.form-field label .req { color: var(--gold); }
.form-field label .opt { opacity: 0.5; font-weight: 500; text-transform: none; letter-spacing: 0; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-family: 'Mulish', sans-serif;
  font-size: 15px;
  color: var(--white);
  background: rgba(0,0,0,0.25);
  border: 1.5px solid rgba(130,36,227,0.45);
  border-radius: 5px;
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(232,228,220,0.35); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold);
  outline: 1.5px solid var(--purple);
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(130,36,227,0.20);
  background: rgba(0,0,0,0.35);
}
.form-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23f0c040' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
}
.form-field select option { background: #1a1424; color: var(--white); }
.evoke-form .btn-primary { margin-top: 6px; align-self: flex-start; border: none; cursor: pointer; }
.form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; line-height: 1.6; margin: 0; }
.form-status:empty { display: none; }
.form-status-ok {
  color: var(--cream);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(240,192,64,0.10) 0%, transparent 60%),
    linear-gradient(135deg, #4a157c 0%, #2a1245 100%);
  border: 1px solid rgba(176,126,232,0.35);
  border-radius: 8px;
  padding: 28px 26px;
  line-height: 1.7;
}
.form-status-ok a { color: var(--gold); text-decoration: underline; }
.form-status-err { color: #ffb0b0; background: rgba(204,34,34,0.12); border: 1px solid rgba(204,34,34,0.4); border-radius: 6px; padding: 14px 16px; }
.form-status-title { display: block; font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; color: var(--white); margin-bottom: 10px; }

/* phone prefix (+61) */
.input-prefix {
  display: flex; align-items: stretch;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid rgba(130,36,227,0.45);
  border-radius: 5px;
  overflow: hidden;
}
.input-prefix:focus-within { border-color: var(--gold); outline: 1.5px solid var(--purple); outline-offset: 0; box-shadow: 0 0 0 3px rgba(130,36,227,0.20); background: rgba(0,0,0,0.35); }
.input-prefix .prefix-tag {
  display: flex; align-items: center;
  padding: 0 15px;
  font-size: 15px; color: var(--cream);
  background: rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.12);
}
.input-prefix input { flex: 1 1 auto; width: auto; min-width: 0; border: none !important; outline: none !important; background: transparent !important; border-radius: 0 !important; }

/* consent checkbox */
.form-checkbox { display: flex; align-items: flex-start; gap: 12px; }
.form-checkbox input[type="checkbox"] {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--purple); cursor: pointer;
}
.form-checkbox label { font-size: 14px; color: var(--cream); line-height: 1.5; cursor: pointer; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* multiselect checkbox list (e.g. "Interested in") */
.field-legend { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--grey); }
.checkbox-group { display: flex; flex-direction: column; gap: 13px; }
.checkbox-option { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--cream); line-height: 1.4; cursor: pointer; }
.checkbox-option input[type="checkbox"] { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; accent-color: var(--purple); cursor: pointer; }

/* keep autofilled fields dark (browsers force white/yellow otherwise) */
.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus,
.form-field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px #1c1526 inset;
  caret-color: var(--white);
  transition: background-color 9999s ease-out 0s;
}
@media (max-width: 600px) { .evoke-form .btn-primary { width: 100%; text-align: center; } }

/* ── FAQ MINI ── */
.quick-faq { padding: 80px 0; background: var(--dark-2); }
.quick-faq-header { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.quick-faq-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.quick-faq-header h2 em { font-style: italic; color: var(--gold); }
.quick-faq-header p { color: var(--grey); font-size: 16px; }
.quick-faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card-bg); border-radius: 6px; overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Mulish', sans-serif;
  color: var(--gold);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--gold); }
.faq-item:hover summary { color: var(--gold); }
.faq-item-content { padding: 0 26px 22px; color: var(--cream); font-size: 15px; line-height: 1.7; }
.faq-item-content a { color: var(--purple-light); text-decoration: underline; }
.faq-item-content a:hover { color: var(--gold); }

/* ── COMMON MOBILE ── */
@media (max-width: 767px) {
  .container, .container-narrow { padding: 0 18px; }
  .section-label { font-size: 10px; letter-spacing: 2px; }
  .btn { padding: 14px 24px; font-size: 11px; }
}

/* ── CONTACT / REGISTER MOBILE ── */
@media (max-width: 767px) {
  .hero { padding: 120px 0 50px; }
  .hero h1 { font-size: 36px; }
  .contact-section { padding: 50px 0; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 30px; }
  .form-panel { padding: 24px 18px; }
  .contact-info-list { margin-top: 20px; }
  .quick-faq { padding: 50px 0; }
  .faq-item summary { font-size: 17px; padding: 16px 18px; }
}

/* ── NUCLEAR MOBILE FIX ── */
@media (max-width: 767px) {
  html, body { overflow-x: clip !important; }
  section, footer, header, nav, div { max-width: 100vw; }
  section { overflow-x: hidden !important; }
  main img, section img, footer img { max-width: 100% !important; width: 100% !important; height: auto !important; }
  .container, .container-narrow {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    overflow: hidden;
  }
  [class*="-grid"] { grid-template-columns: minmax(0, 1fr) !important; width: 100% !important; }
  [class*="-card"] { width: 100% !important; max-width: 100% !important; }
  .faq-item, details { width: 100% !important; max-width: 100% !important; }
  .faq-item summary, details summary { white-space: normal !important; word-break: break-word !important; }
  iframe { max-width: 100% !important; width: 100% !important; }
  input, textarea, select { max-width: 100% !important; width: 100% !important; box-sizing: border-box !important; }
  h1, h2, h3, h4, h5, h6, p, span, a, li {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  .contact-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .form-panel { padding: 24px 18px !important; }
}

/* ── ENTRANCE ANIMATIONS ── */
@media (prefers-reduced-motion: reduce) {
  .anim-word, .anim-fade, .anim-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
.anim-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  animation: wordRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes wordRise { to { opacity: 1; transform: translateY(0); } }
.anim-fade {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeRise { to { opacity: 1; transform: translateY(0); } }
.anim-item {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-item.is-visible { opacity: 1; transform: translateY(0); }

/* SEO keyword subtitle - visually hidden, readable by Google */
.hero-keyword-sub {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
