/* ===================================================================
   BALOIAN FARMS — Seasonal Employment Application 2026
   styles.css
   =================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --green-900: #080f1e;
  --green-800: #0d1a33;
  --green-700: #112249;
  --green-600: #162d5e;
  --green-500: #1b3a7a;
  --green-400: #2a52a8;
  --green-300: #5b80cc;
  --green-200: #a3b9e8;
  --green-100: #d9e4f5;
  --green-50:  #eef3fc;

  --gold-500:  #c49a10;
  --gold-400:  #e2b825;
  --gold-300:  #f0cc55;
  --gold-100:  #fdf6d8;

  --neutral-900: #0e1118;
  --neutral-700: #2a3042;
  --neutral-500: #5a6275;
  --neutral-400: #7a8499;
  --neutral-300: #b0b8cc;
  --neutral-200: #d4d9e8;
  --neutral-100: #eceff7;
  --neutral-50:  #f5f7fc;
  --white:       #ffffff;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm:  0 1px 3px rgba(8,15,30,0.08), 0 1px 2px rgba(8,15,30,0.06);
  --shadow-md:  0 4px 12px rgba(8,15,30,0.12), 0 2px 4px rgba(8,15,30,0.06);
  --shadow-lg:  0 12px 32px rgba(8,15,30,0.15), 0 4px 8px rgba(8,15,30,0.08);

  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--neutral-900);
  background: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--green-900);
  border-bottom: 1px solid var(--green-800);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 36px; height: 36px;
  color: var(--gold-400);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--white);
  line-height: 1.1;
}
.brand-sub {
  font-size: 10px;
  color: var(--gold-400);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.header-badge {
  background: var(--gold-400);
  border: 1px solid var(--gold-300);
  color: var(--green-900);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  background: var(--green-900);
  position: relative;
  overflow: hidden;
  padding: 72px 24px 80px;
}
.hero-content {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-400);
}
.hero-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--green-200);
  max-width: 620px;
  opacity: 0.85;
}

/* Decorative geometry */
.hero-graphic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.geo {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--green-700) 0%, transparent 70%);
}
.geo-1 { width: 500px; height: 500px; right: -100px; top: -200px; opacity: 0.4; }
.geo-2 { width: 300px; height: 300px; right: 200px; bottom: -100px; opacity: 0.25; }
.geo-3 { width: 150px; height: 150px; right: 80px; top: 40px; opacity: 0.2;
  background: radial-gradient(circle, var(--green-400) 0%, transparent 70%); }

/* ── Progress Track ──────────────────────────────────────────────── */
.progress-track {
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  padding: 20px 24px;
  position: sticky;
  top: 64px;
  z-index: 90;
}
.progress-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--neutral-200);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.step-dot span {
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-400);
  transition: var(--transition);
}
.step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--neutral-400);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: var(--transition);
}
.progress-step.active .step-dot {
  background: var(--gold-400);
  border-color: var(--gold-400);
}
.progress-step.active .step-dot span { color: var(--green-900); }
.progress-step.active .step-label { color: var(--gold-500); font-weight: 600; }
.progress-step.completed .step-dot {
  background: var(--green-100);
  border-color: var(--green-400);
}
.progress-step.completed .step-dot span { color: var(--green-600); }
.progress-step.completed .step-label { color: var(--green-500); }
.progress-connector {
  flex: 1;
  height: 2px;
  background: var(--neutral-200);
  margin-bottom: 22px;
  transition: var(--transition);
}
.progress-connector.filled { background: var(--green-300); }

/* ── Form Wrapper ────────────────────────────────────────────────── */
.form-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Form Pages ──────────────────────────────────────────────────── */
.form-page { display: none; }
.form-page.active { display: block; animation: fadeUp 0.3s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Form Sections ───────────────────────────────────────────────── */
.form-section {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--neutral-100);
}
.section-number {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  color: var(--green-100);
  font-style: italic;
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: -4px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--green-900);
  line-height: 1.2;
  margin-bottom: 4px;
}
.section-sub {
  font-size: 13px;
  color: var(--neutral-500);
  line-height: 1.5;
}
.subsection-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--green-100);
}

/* ── Fields Grid ─────────────────────────────────────────────────── */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}
.fields-grid--full { grid-template-columns: 1fr; }
.fields-grid--three { grid-template-columns: 2fr 1fr 1fr; }

/* ── Field Group ─────────────────────────────────────────────────── */
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--neutral-700);
  text-transform: uppercase;
}
.required { color: var(--green-500); }
.field-hint {
  font-size: 12px;
  color: var(--neutral-400);
  line-height: 1.4;
  margin-top: -2px;
}

/* ── Inputs ──────────────────────────────────────────────────────── */
.field-input {
  width: 100%;
  background: var(--neutral-50);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--neutral-900);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}
.field-input::placeholder { color: var(--neutral-300); }
.field-input:hover { border-color: var(--neutral-300); }
.field-input:focus {
  background: var(--white);
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(45,122,68,0.12);
}
.field-input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #e05050;
  background: #fef5f5;
}

/* Textarea */
.field-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

/* Select */
.select-wrap { position: relative; }
.field-select { padding-right: 36px; cursor: pointer; }
.select-arrow {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 8px;
  color: var(--neutral-400);
  pointer-events: none;
}

/* Signature field */
.field-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--green-800);
  border-bottom: 2px solid var(--green-400);
  border-top: none; border-left: none; border-right: none;
  border-radius: 0;
  background: transparent;
  padding: 8px 2px 4px;
}
.field-signature:focus {
  border-color: var(--green-600);
  box-shadow: none;
  background: transparent;
}

/* ── Radio ───────────────────────────────────────────────────────── */
.radio-question { margin: 24px 0; }
.radio-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-700);
  line-height: 1.5;
  margin-bottom: 12px;
}
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-option {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  padding: 10px 20px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--neutral-700);
  transition: var(--transition);
  user-select: none;
  min-width: 100px;
}
.radio-option:hover {
  border-color: var(--green-400);
  background: var(--green-50);
}
.radio-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-custom {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid var(--neutral-300);
  border-radius: 50%;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.radio-option input:checked ~ .radio-custom {
  border-color: var(--green-500);
  background: var(--green-500);
  box-shadow: inset 0 0 0 3px var(--white);
}
.radio-option:has(input:checked) {
  border-color: var(--green-400);
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 500;
}

/* ── Checkbox ─────────────────────────────────────────────────────── */
.checkbox-row { margin: 28px 0 24px; }
.checkbox-option {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer;
  padding: 20px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  background: var(--neutral-50);
  transition: var(--transition);
}
.checkbox-option:hover { border-color: var(--green-400); background: var(--green-50); }
.checkbox-option input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-custom {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid var(--neutral-300);
  border-radius: 4px;
  margin-top: 2px;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.checkbox-option input:checked ~ .checkbox-custom {
  background: var(--green-600);
  border-color: var(--green-600);
}
.checkbox-option input:checked ~ .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) translate(-1px, -1px);
}
.checkbox-option:has(input:checked) {
  border-color: var(--green-400);
  background: var(--green-50);
}
.checkbox-text {
  font-size: 14px;
  color: var(--neutral-700);
  line-height: 1.5;
}

/* ── Conditional Fields ──────────────────────────────────────────── */
.conditional-field {
  display: none;
  padding: 20px;
  background: var(--gold-100);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-md);
  margin: 4px 0 20px;
  animation: fadeIn 0.2s ease;
}
.conditional-field.visible { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Reference Cards ─────────────────────────────────────────────── */
.reference-cards { display: flex; flex-direction: column; gap: 24px; }
.reference-card {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  background: var(--neutral-50);
}
.reference-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--green-100);
}

/* ── Legal Scroll ────────────────────────────────────────────────── */
.legal-scroll {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 24px;
  scroll-behavior: smooth;
}
.legal-scroll::-webkit-scrollbar { width: 6px; }
.legal-scroll::-webkit-scrollbar-track { background: var(--neutral-100); border-radius: 3px; }
.legal-scroll::-webkit-scrollbar-thumb { background: var(--green-300); border-radius: 3px; }
.legal-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-list li {
  font-size: 13px;
  line-height: 1.65;
  color: var(--neutral-700);
}

/* ── Page Navigation ─────────────────────────────────────────────── */
.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 0;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary svg, .btn-secondary svg, .btn-submit svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--green-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--neutral-700);
  border: 1.5px solid var(--neutral-200);
}
.btn-secondary:hover { border-color: var(--neutral-300); background: var(--neutral-50); }

.btn-submit {
  background: var(--gold-400);
  color: var(--green-900);
  padding: 16px 36px;
  font-size: 15px;
  border: 2px solid var(--gold-300);
  font-weight: 700;
}
.btn-submit:hover { background: var(--gold-500); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Success Screen ──────────────────────────────────────────────── */
.success-screen {
  background: var(--white);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.4s ease;
}
.success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 28px;
  color: var(--green-500);
}
.success-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--green-900);
  margin-bottom: 16px;
}
.success-body {
  font-size: 15px;
  color: var(--neutral-500);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 28px;
}
.success-ref {
  display: inline-block;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--green-700);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-900);
  padding: 28px 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-inner p {
  font-size: 12px;
  color: var(--gold-400);
  opacity: 0.7;
}

/* ── Field Error States ───────────────────────────────────────────── */
.field-error-msg {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #c0392b;
  margin-top: 5px;
  padding-left: 2px;
  animation: fadeIn 0.15s ease;
}

.field-input.error {
  border-color: #e05050 !important;
  background: #fef5f5 !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10) !important;
}

.radio-question.radio-error .radio-label {
  color: #c0392b;
}
.radio-question.radio-error .radio-group .radio-option {
  border-color: #f0a8a8;
  background: #fef5f5;
}

.checkbox-option.checkbox-error {
  border-color: #e05050 !important;
  background: #fef5f5 !important;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .form-section { padding: 24px 20px; }
  .fields-grid { grid-template-columns: 1fr; }
  .fields-grid--three { grid-template-columns: 1fr; }
  .hero { padding: 48px 20px 60px; }
  .hero-graphic { display: none; }
  .section-number { font-size: 32px; }
  .section-title { font-size: 20px; }
  .progress-track { overflow-x: auto; }
  .step-label { display: none; }
  .footer-inner { flex-direction: column; gap: 4px; text-align: center; }
  .success-screen { padding: 48px 24px; }
  .page-nav { flex-direction: column-reverse; gap: 12px; }
  .btn-primary, .btn-secondary, .btn-submit { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .reference-card { padding: 20px 16px; }
  .header-badge { display: none; }
}

/* ── Logo override ───────────────────────────────────────────────── */
.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════════════════ */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease;
}
#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  padding: 0 32px;
}
.loader-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: loaderTitleIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes loaderTitleIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.loader-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  opacity: 0.9;
}
.loader-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  color: var(--white);
  font-weight: 400;
}
.loader-year {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--green-300);
  opacity: 0.6;
}
.loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--gold-400);
  border-radius: 2px;
  animation: loaderFill 2.2s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes loaderFill {
  0%   { width: 0%; }
  55%  { width: 70%; }
  80%  { width: 88%; }
  100% { width: 100%; }
}
.loader-label {
  font-size: 11px;
  color: var(--green-200);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-top: -20px;
}

/* ═══════════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════════════════════════════ */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switcher {
  display: flex;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}
.lang-btn:hover { color: rgba(255,255,255,0.85); }
.lang-btn.active {
  background: var(--gold-400);
  color: var(--green-900);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   THANK YOU SPLASH
   ═══════════════════════════════════════════════════════════════════ */
#thankyou-splash {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#thankyou-splash.hidden { display: none; }
#thankyou-splash.visible { opacity: 1; }

.ty-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--green-900) 0%, #0a1a10 60%, #061208 100%);
  overflow: hidden;
}

/* Peppers in the backdrop */
.ty-peppers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ty-pepper {
  position: absolute;
  opacity: 0;
  animation: pepperReveal 0.7s ease forwards;
}
.ty-pepper--1 {
  width: 55px; height: 100px;
  left: 4%; bottom: -8px;
  animation-delay: 0.3s;
  transform: rotate(-8deg);
}
.ty-pepper--2 {
  width: 45px; height: 82px;
  left: 10%; bottom: -4px;
  animation-delay: 0.45s;
  transform: rotate(4deg);
}
.ty-pepper--3 {
  width: 38px; height: 70px;
  left: 16%; bottom: -2px;
  animation-delay: 0.6s;
  transform: rotate(-3deg);
}
.ty-pepper--4 {
  width: 60px; height: 108px;
  right: 6%; bottom: -10px;
  animation-delay: 0.35s;
  transform: rotate(10deg);
}
.ty-pepper--5 {
  width: 42px; height: 76px;
  right: 14%; bottom: -4px;
  animation-delay: 0.5s;
  transform: rotate(-6deg);
}
@keyframes pepperReveal {
  from { opacity: 0; transform: translateY(30px) rotate(var(--r, 0deg)); }
  to   { opacity: 0.75; transform: translateY(0) rotate(var(--r, 0deg)); }
}

/* Card */
.ty-card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl);
  padding: 56px 48px 48px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  animation: cardRise 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ty-check {
  width: 72px; height: 72px;
  color: #4caf72;
  margin: 0 auto 24px;
  animation: checkPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.5s both;
}
@keyframes checkPop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.ty-title {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.ty-ref-badge {
  display: inline-block;
  background: rgba(226,184,37,0.15);
  border: 1px solid rgba(226,184,37,0.35);
  color: var(--gold-400);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.ty-headline {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.5;
}

.ty-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-left: 3px solid var(--gold-400);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  text-align: left;
}
.ty-notice-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gold-400);
}
.ty-notice p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
}
.ty-notice p strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.ty-closing {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .ty-card { padding: 40px 24px 36px; }
  .ty-title { font-size: 26px; }
  .lang-btn { padding: 5px 8px; font-size: 10px; }
  .header-badge { display: none; }
  .ty-pepper--3, .ty-pepper--5 { display: none; }
}

/* ── Translating Banner ───────────────────────────────────────────── */
#translating-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--green-800);
  border: 1px solid var(--green-600);
  border-radius: 100px;
  padding: 10px 20px;
  z-index: 8000;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
#translating-banner.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.t-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}
.t-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold-400);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
