/* =====================================================
   Vânătoarea de Comori — shared styles
   ===================================================== */
:root {
  --jungle-deep: #1F4D3A;
  --jungle:      #2D6B4A;
  --leaf:        #3E8B5C;
  --leaf-light:  #7BB992;
  --sand:        #F4E4C1;
  --sand-light:  #FBF5E7;
  --cream:       #FFF9EC;
  --gold:        #E8A838;
  --gold-deep:   #C88A1E;
  --ocean:       #2E8B99;
  --ocean-light: #5BB3BF;
  --coral:       #E56B4E;
  --coral-deep:  #C84E30;
  --ink:         #1A2E28;
  --ink-soft:    #3A4F48;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-xl: 42px;

  --shadow-sm: 0 2px 8px rgba(31, 77, 58, 0.08);
  --shadow:    0 8px 24px rgba(31, 77, 58, 0.12);
  --shadow-lg: 0 20px 50px rgba(31, 77, 58, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--jungle-deep);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 0 var(--coral-deep), 0 10px 24px rgba(229,107,78,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--coral-deep), 0 14px 28px rgba(229,107,78,.4); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--coral-deep), 0 6px 12px rgba(229,107,78,.3); }

.btn-secondary {
  background: var(--gold);
  color: var(--jungle-deep);
  box-shadow: 0 6px 0 var(--gold-deep), 0 10px 24px rgba(232,168,56,.3);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--gold-deep), 0 14px 28px rgba(232,168,56,.4); }
.btn-secondary:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--gold-deep), 0 6px 12px rgba(232,168,56,.3); }

.btn-ghost {
  background: transparent;
  color: var(--jungle-deep);
  border: 2px solid var(--jungle-deep);
  box-shadow: none;
  padding: 14px 26px;
}
.btn-ghost:hover { background: var(--jungle-deep); color: var(--cream); }

.btn-ocean {
  background: var(--ocean);
  color: #fff;
  box-shadow: 0 6px 0 #1E6B77, 0 10px 24px rgba(46,139,153,.3);
}
.btn-ocean:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #1E6B77, 0 14px 28px rgba(46,139,153,.4); }

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,77,58,.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--jungle-deep);
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--jungle-deep);
  display: grid; place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
}
.nav-links a { color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--coral); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }

.nav-hamburger {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  color: var(--jungle-deep);
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 2px solid var(--jungle-deep);
    box-shadow: var(--shadow);
  }
  .nav-hamburger { display: grid; place-items: center; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---- Section common ---- */
section {
  padding: 80px 24px;
  position: relative;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

h2.section-title {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 20px;
  max-width: 20ch;
}
.section-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 40px;
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Floating decor ---- */
.float-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-16px) rotate(var(--r, 0deg)); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .3; transform: scale(1.4); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---- Footer ---- */
.footer {
  background: var(--jungle-deep);
  color: var(--sand);
  padding: 70px 24px 30px;
  margin-top: 80px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'><path d='M0,40 Q60,0 120,20 T240,20 T360,20 T480,20 T600,20 T720,20 T840,20 T960,20 T1080,20 T1200,20 L1200,40 Z' fill='black'/></svg>") no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'><path d='M0,40 Q60,0 120,20 T240,20 T360,20 T480,20 T600,20 T720,20 T840,20 T960,20 T1080,20 T1200,20 L1200,40 Z' fill='black'/></svg>") no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}
.footer h4 {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.footer p, .footer a { color: var(--sand); font-size: 15px; line-height: 1.8; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(244,228,193,.15);
  font-size: 13px;
  color: rgba(244,228,193,.6);
  text-align: center;
}

/* ---- Toast / inline alert ---- */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert-error { background: #FDE8E3; color: var(--coral-deep); border: 2px solid var(--coral); }
.alert-ok    { background: #E7F4EC; color: var(--jungle-deep); border: 2px solid var(--jungle); }
.alert-info  { background: #E3F1F3; color: #164C55; border: 2px solid var(--ocean); }

/* ---- Form primitives (shared by registration pages) ---- */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--jungle-deep); font-weight: 700;
  margin-bottom: 20px;
  font-size: 14px;
}
.back-link:hover { color: var(--coral); }

.form-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #FBF5E7 0%, transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, #F6EBD0 100%);
  padding: 50px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.form-hero .eyebrow { justify-content: center; }
.form-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 24ch;
  margin: 0 auto 12px;
}
.form-hero p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 55ch;
  margin: 0 auto;
}

.form-wrap {
  max-width: 760px;
  margin: -30px auto 80px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.form-card {
  background: #fff;
  border: 3px solid var(--jungle-deep);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 8px 8px 0 var(--jungle-deep);
}
.form-card + .form-card { margin-top: 24px; }

.form-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--jungle-deep);
  margin-bottom: 20px;
  margin-top: 32px;
}
.form-section-title:first-of-type { margin-top: 0; }
.step-num {
  width: 36px; height: 36px;
  background: var(--gold);
  color: var(--jungle-deep);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-weight: 700;
  font-size: 14px;
  color: var(--jungle-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field label .req { color: var(--coral); font-weight: 900; }
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border: 2px solid var(--sand);
  background: var(--sand-light);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s, background .15s;
  font-family: inherit;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--coral);
  background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--coral); background: #FDE8E3; }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--sand-light);
  border: 2px solid var(--sand);
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
}
.checkbox:hover { border-color: var(--jungle); background: #fff; }
.checkbox input {
  width: 22px; height: 22px;
  flex-shrink: 0;
  accent-color: var(--coral);
  margin-top: 2px;
}
.checkbox-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 500;
}
.checkbox-label strong { color: var(--jungle-deep); font-weight: 800; }

.form-submit {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.form-submit .note {
  font-size: 13px;
  color: var(--ink-soft);
  flex: 1;
}

.hidden { display: none !important; }

/* ---- Success / celebration card ---- */
.success-card { text-align: center; padding: 20px; }
.success-icon {
  width: 100px; height: 100px;
  background: var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 12px rgba(232,168,56,.2);
  animation: pop .4s cubic-bezier(.34,1.56,.64,1);
  color: var(--jungle-deep);
}
@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.success-card h2 { font-size: 36px; margin-bottom: 12px; }
.success-card p { color: var(--ink-soft); font-size: 17px; max-width: 45ch; margin: 0 auto 20px; }
