/* =====================================================
   WooSee Refer — refer.woosee.pro
   Generic partner referral form
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Sans+TC:wght@300;400;500&family=Noto+Serif+TC:wght@400;600&display=swap');

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

:root {
  --navy:    #0d2244;
  --navy2:   #1a3a6e;
  --gold:    #E8C86A;
  --gold2:   #D4B55A;
  --cream:   #FAF7F2;
  --charcoal:#1A1A1A;
  --white:   #ffffff;
  --text-mid:#4a4a4a;
  --text-sub:#595959;
  --font-heading: 'Cormorant Garamond', 'Noto Serif TC', serif;
  --font-body:    'Noto Sans TC', sans-serif;
  --section-pad:  80px 0;
  --container:    1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  padding: 14px 0; background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.10);
  transition: box-shadow .3s, padding .3s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.12); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo {
  font-family: var(--font-heading); font-size: 24px; font-weight: 700;
  color: var(--charcoal); letter-spacing: .02em; white-space: nowrap;
}
.nav-logo span { color: var(--navy); }
.nav-right { display: flex; align-items: center; flex-shrink: 0; }
.nav-cta {
  background: var(--gold); color: var(--charcoal);
  font-size: 16px; font-weight: 700;
  padding: 10px 22px; border-radius: 4px;
  white-space: nowrap; transition: background .2s, transform .2s;
  min-height: 44px; display: flex; align-items: center;
}
.nav-cta:hover { background: var(--gold2); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 80px 0 72px;
}
.hero-inner {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 0;
  max-width: 760px;
}
.partner-logo {
  height: 64px; width: auto; max-width: 220px;
  object-fit: contain; margin-bottom: 32px;
  border-radius: 6px;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.18); color: #ffffff;
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 2px; margin-bottom: 20px;
}
.hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700; color: #ffffff; line-height: 1.15; margin-bottom: 16px;
}
.hero-h1 .gold { color: var(--gold); }
.hero-sub {
  color: #e8e8e8;
  font-size: 20px; margin-bottom: 14px; line-height: 1.5;
}
.hero-body {
  color: #f0f0f0;
  font-size: 19px; line-height: 1.8; margin-bottom: 28px;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.hero-pills:empty { display: none; }
.pill {
  background: rgba(255,255,255,.15); color: #ffffff;
  font-size: 15px; padding: 7px 16px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.35); white-space: nowrap;
}
.btn-gold {
  display: inline-flex; align-items: center;
  background: var(--gold); color: var(--charcoal);
  font-weight: 700; font-size: 18px; padding: 16px 36px; border-radius: 4px;
  letter-spacing: .04em; transition: background .2s, transform .2s;
  width: fit-content; min-height: 52px;
}
.btn-gold:hover { background: var(--gold2); transform: translateY(-2px); }

/* ── ENQUIRY FORM ── */
.enquiry { background: var(--white); padding: var(--section-pad); }
.enquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.enquiry-copy-h2 {
  font-family: var(--font-heading); font-size: 40px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 20px; line-height: 1.2;
}
.enquiry-copy-body {
  font-size: 19px; line-height: 1.85; color: var(--text-mid); margin-bottom: 28px;
}
.enquiry-note {
  border-left: 4px solid var(--gold); padding: 18px 20px;
  background: rgba(201,168,76,.08); border-radius: 0 6px 6px 0;
  font-size: 18px; line-height: 1.75; color: var(--text-mid);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 18px; font-weight: 500; color: var(--charcoal);
}
.form-group input:not([type=checkbox]),
.form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid #ccc; border-radius: 4px;
  font-size: 18px; font-family: var(--font-body); color: var(--charcoal);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  min-height: 52px;
}
.form-group input:not([type=checkbox]):focus,
.form-group textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,34,68,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #888; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-gdpr {
  font-size: 17px; color: var(--text-mid); line-height: 1.75;
  margin-top: 4px; margin-bottom: 16px; cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px;
}
.form-gdpr input[type=checkbox] {
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: 3px; accent-color: var(--navy); cursor: pointer;
}
.form-gdpr a { color: var(--navy); text-decoration: underline; }
.form-gdpr a:hover { color: var(--navy2); }
.form-referral-note { font-size: 13px; color: #999; line-height: 1.6; margin-bottom: 16px; }
.cf-turnstile { margin: 16px 0; }
.btn-submit {
  width: 100%; background: var(--navy); color: var(--white);
  font-size: 20px; font-weight: 700; padding: 18px;
  border: none; border-radius: 4px; cursor: pointer;
  letter-spacing: .04em; transition: background .2s, transform .2s;
  font-family: var(--font-body); margin-top: 4px;
  min-height: 56px;
}
.btn-submit:hover { background: var(--navy2); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-promise {
  text-align: center; font-size: 16px; color: var(--text-sub); margin-top: 12px;
}
.form-success {
  display: none; background: rgba(13,34,68,.06); border: 1.5px solid var(--navy);
  border-radius: 6px; padding: 28px; text-align: center;
}
.form-success h3 {
  font-family: var(--font-heading); font-size: 28px;
  color: var(--navy); margin-bottom: 10px;
}
.form-success p { color: var(--text-mid); font-size: 19px; }

/* ── FOOTER ── */
.footer { background: var(--charcoal); padding: 48px 0; border-top: 2px solid var(--gold); }
.footer-company {
  font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 16px; line-height: 1.6;
}
.footer-disclaimer {
  font-size: 15px; line-height: 1.9;
  color: rgba(255,255,255,.55); max-width: 860px;
}
.footer-legal { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.55); }
.footer-legal a { color: rgba(255,255,255,.75); }
.footer-legal a:hover { text-decoration: underline; }

/* ── STICKY CTA ── */
.sticky-cta {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  background: var(--gold); color: var(--charcoal);
  font-weight: 700; font-size: 15px; padding: 14px 24px;
  border-radius: 50px; box-shadow: 0 6px 30px rgba(201,168,76,.5);
  letter-spacing: .03em; transition: background .2s, transform .2s;
  white-space: nowrap; min-height: 52px; display: flex; align-items: center;
}
.sticky-cta:hover { background: var(--gold2); transform: translateY(-2px); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
  background: var(--charcoal); border-top: 2px solid var(--gold);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
.cookie-banner.hidden { display: none; }
.cookie-text { color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.6; flex: 1; min-width: 240px; }
.cookie-text a { color: var(--gold); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--gold); color: var(--charcoal);
  border: none; padding: 10px 24px; border-radius: 4px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); min-height: 44px; transition: background .2s;
}
.cookie-accept:hover { background: var(--gold2); }
.cookie-decline {
  background: none; color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.3); padding: 10px 24px; border-radius: 4px;
  font-size: 16px; cursor: pointer; font-family: var(--font-body); min-height: 44px;
  transition: border-color .2s, color .2s;
}
.cookie-decline:hover { border-color: rgba(255,255,255,.7); color: rgba(255,255,255,.95); }

/* ── DIRECTORY ── */
.dir-hero { padding: 64px 0 56px; }
.dir-hero .hero-body { max-width: 600px; margin-bottom: 0; }

.partners { background: var(--cream); padding: var(--section-pad); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.partner-card {
  background: var(--white); border-radius: 8px;
  border-top: 3px solid var(--gold);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .3s, transform .3s;
  text-decoration: none; color: inherit;
}
.partner-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.partner-card-logo {
  height: 44px; width: auto; max-width: 160px;
  object-fit: contain; margin-bottom: 4px;
}
.partner-card-name {
  font-family: var(--font-heading); font-size: 22px; font-weight: 600;
  color: var(--charcoal); line-height: 1.2;
}
.partner-card-desc {
  font-size: 16px; line-height: 1.75; color: var(--text-mid);
  flex: 1;
}
.partner-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin-top: 4px;
}
.partner-card:hover .partner-card-cta { color: var(--navy2); }

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 960px) {
  .enquiry-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 56px; }
}

@media (max-width: 600px) {
  :root { --section-pad: 60px 0; }
  .hero { padding: 48px 0 44px; }
  .hero-h1 { font-size: 40px; }
  .hero-sub { font-size: 18px; }
  .hero-body { font-size: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .enquiry-copy-h2 { font-size: 34px; }
  .sticky-cta { bottom: 16px; right: 16px; font-size: 14px; padding: 12px 18px; }
  .enquiry { padding-left: 0; padding-right: 0; }
  .enquiry .container { padding: 0 16px; }
  .cf-turnstile { max-width: 100%; overflow: hidden; }
  .cf-turnstile iframe { max-width: 100% !important; width: 100% !important; }
}

@media (max-width: 380px) {
  .hero-h1 { font-size: 34px; }
  .pill { font-size: 13px; padding: 6px 12px; }
  .btn-gold { font-size: 16px; padding: 14px 28px; }
}
