/* Egg & Bunz Careers — shared styles
   Tokens mirrored from eggandbunz.com (colors.css / typography.css / spacing.css / effects.css) */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,600&display=swap');

:root {
  --eb-egg-yellow: #FFBE37;
  --eb-cheddar-orange: #F29E2E;
  --eb-warm-white: #FFF8E7;
  --eb-charcoal: #1B1B1B;
  --eb-bun-beige: #E2D2B6;
  --eb-light-gray: #EFEFEF;

  --eb-yellow-100: #FFF1CE;
  --eb-yellow-500: #F5A81F;
  --eb-orange-600: #DB8320;
  --eb-charcoal-700: #333333;
  --eb-charcoal-500: #5C5C5C;
  --eb-charcoal-400: #8A8A8A;
  --eb-beige-300: #D2BE99;
  --eb-white: #FFFFFF;

  --surface-page: var(--eb-warm-white);
  --surface-card: var(--eb-white);
  --surface-sunken: var(--eb-light-gray);
  --surface-invert: var(--eb-charcoal);

  --text-strong: var(--eb-charcoal);
  --text-body: var(--eb-charcoal-700);
  --text-muted: var(--eb-charcoal-400);
  --text-on-dark: var(--eb-warm-white);

  --action-primary: var(--eb-cheddar-orange);
  --action-primary-hover: #E8931F;
  --action-accent: var(--eb-egg-yellow);
  --action-accent-hover: var(--eb-yellow-500);

  --status-success: #3FA34D;
  --status-warning: var(--eb-cheddar-orange);
  --status-error: #E4572E;

  --font-display: 'Baloo 2', 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 2.5rem; --sp-8: 3rem; --sp-9: 4rem; --sp-10: 5rem;

  --container-sm: 480px; --container-md: 768px; --container-lg: 900px; --container-xl: 1080px;
  --gutter: var(--sp-5);

  --radius-xs: 6px; --radius-sm: 10px; --radius-md: 16px; --radius-lg: 24px; --radius-xl: 32px; --radius-pill: 999px;
  --control-h-md: 48px; --control-h-lg: 58px;

  --shadow-sm: 0 2px 8px rgba(27,27,27,0.08);
  --shadow-md: 0 8px 24px rgba(27,27,27,0.10);
  --shadow-pop: 4px 4px 0 var(--eb-charcoal);
  --shadow-pop-sm: 3px 3px 0 var(--eb-charcoal);

  --border-outline: 3px solid var(--eb-charcoal);
  --dur-fast: 120ms; --dur-base: 180ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); margin: 0; }

.wrap { max-width: var(--container-lg); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  border: 2px solid var(--eb-charcoal);
  padding: 0 var(--sp-5);
  height: var(--control-h-md);
  box-shadow: var(--shadow-pop-sm);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--eb-charcoal); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--eb-charcoal); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: var(--shadow-pop-sm); }
.btn--primary { background: var(--action-primary); color: var(--eb-charcoal); }
.btn--accent { background: var(--action-accent); color: var(--eb-charcoal); }
.btn--ghost { background: transparent; box-shadow: none; border-color: var(--eb-beige-300); }
.btn--lg { height: var(--control-h-lg); padding: 0 var(--sp-7); font-size: 1.125rem; }
.btn--full { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--sp-4) var(--gutter);
}
.nav__brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.nav__logo { width: 44px; height: auto; }
.nav__name { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; color: var(--text-strong); }
.nav__amp { color: var(--eb-egg-yellow); }
.nav__links { margin-left: auto; }
.nav__links a { font-weight: 600; font-size: 0.95rem; color: var(--text-strong); text-decoration: none; }
.nav__links a:hover { color: var(--action-primary); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { max-width: var(--container-lg); margin: 0 auto; padding: var(--sp-7) var(--gutter) var(--sp-6); text-align: center; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-3);
}
.hero__sub { font-size: 1.25rem; font-weight: 600; color: var(--text-body); margin: 0 0 var(--sp-4); }
.hero__copy { font-size: 1rem; color: var(--text-body); max-width: 620px; margin: 0 auto var(--sp-5); }
.hero__note {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--eb-yellow-100);
  border: 2px solid var(--eb-charcoal);
  border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-5);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-strong);
}

/* ── Role card (Bunz Handler) ────────────────────────────── */
.role { max-width: var(--container-md); margin: 0 auto var(--sp-7); padding: 0 var(--gutter); text-align: center; }
.role-card {
  text-align: left;
  background: var(--surface-card);
  border: var(--border-outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  margin-bottom: var(--sp-5);
}
.role-card__head {
  background-color: var(--eb-grape);
  background-image:
    linear-gradient(rgba(139, 0, 191, 0.82), rgba(139, 0, 191, 0.82)),
    url('images/pattern-purple.png');
  background-size: auto, 340px;
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  text-align: center;
}
.role-card__badge {
  display: inline-block;
  background: var(--eb-egg-yellow);
  color: var(--eb-charcoal);
  border: 2px solid var(--eb-charcoal);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pop-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--sp-1) var(--sp-4);
  margin-bottom: var(--sp-3);
}
.role-card__title {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--eb-egg-yellow);
  margin-bottom: var(--sp-1);
}
.role-card__where { color: var(--eb-warm-white); font-weight: 600; font-size: 0.95rem; margin: 0; }
.role-card__body { padding: var(--sp-6); }
@media (min-width: 640px) { .role-card__body { padding: var(--sp-7); } }
.role-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: var(--eb-yellow-100);
  border: 2px solid var(--eb-charcoal);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-strong);
  padding: var(--sp-1) var(--sp-3);
}
.role-card__intro { font-size: 1rem; color: var(--text-body); max-width: 560px; margin: 0 auto var(--sp-6); text-align: center; }
.role-cols { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 640px) { .role-cols { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
.role-col__title { font-size: 1.1rem; font-weight: 800; margin-bottom: var(--sp-3); }
.role-list { list-style: none; margin: 0; padding: 0; }
.role-list li {
  position: relative;
  padding-left: 1.6em;
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: var(--sp-2);
}
.role-list li::before { content: '🍳'; position: absolute; left: 0; top: 0; font-size: 0.9em; }
.role-col:last-child .role-list li::before { content: '💛'; }
.role-card__cta {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-strong);
  margin: var(--sp-6) 0 0;
}

/* ── Progress bar ────────────────────────────────────────── */
.progress-wrap { max-width: var(--container-md); margin: 0 auto var(--sp-6); padding: 0 var(--gutter); }
.progress-label { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--sp-2); }
.progress-track { height: 10px; background: var(--surface-sunken); border-radius: var(--radius-pill); overflow: hidden; border: 2px solid var(--eb-charcoal); }
.progress-fill { height: 100%; background: var(--eb-egg-yellow); border-radius: var(--radius-pill); transition: width var(--dur-base) var(--ease-out); }

/* ── Form card / steps ───────────────────────────────────── */
.form-card {
  max-width: var(--container-md);
  margin: 0 auto var(--sp-9);
  padding: var(--sp-6);
  background: var(--surface-card);
  border: 2px solid var(--eb-charcoal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) { .form-card { padding: var(--sp-8); } }

.step { display: none; }
.step.is-active { display: block; animation: fadeIn var(--dur-base) var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.step__title { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--sp-1); }
.step__desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: var(--sp-5); }

.field { margin-bottom: var(--sp-5); }
.field label, .field legend {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-strong);
  margin-bottom: var(--sp-2);
  padding: 0;
}
.field .hint { font-weight: 500; color: var(--text-muted); font-size: 0.85rem; margin-top: var(--sp-1); }
.field .req { color: var(--action-primary); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-strong);
  background: var(--eb-white);
  border: 2px solid var(--eb-beige-300);
  border-radius: var(--radius-sm);
  padding: 0 var(--sp-4);
  height: var(--control-h-md);
  transition: border-color var(--dur-fast);
}
textarea { height: auto; min-height: 110px; padding: var(--sp-3) var(--sp-4); resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--action-primary);
}
input:disabled { background: var(--surface-sunken); color: var(--text-muted); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231B1B1B' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--sp-4) center; padding-right: var(--sp-8); }

.row2 { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* Choice cards (radio/checkbox as tappable pills) */
.choices { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.choices.stacked { flex-direction: column; }
.choice {
  position: relative;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  min-height: 48px;
  padding: var(--sp-2) var(--sp-5);
  border: 2px solid var(--eb-beige-300);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-strong);
  cursor: pointer;
  transition: all var(--dur-fast);
  background: var(--eb-white);
}
.choice input:checked + label {
  background: var(--eb-egg-yellow);
  border-color: var(--eb-charcoal);
  box-shadow: var(--shadow-pop-sm);
}
.choice input:focus-visible + label { outline: 2px solid var(--action-primary); outline-offset: 2px; }

.checkbox-line { display: flex; align-items: flex-start; gap: var(--sp-3); }
.checkbox-line input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--eb-cheddar-orange); flex-shrink: 0; }
.checkbox-line label { font-weight: 600; font-size: 0.92rem; color: var(--text-body); margin: 0; }

.callout {
  background: var(--eb-yellow-100);
  border: 2px solid var(--eb-charcoal);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-strong);
  margin-bottom: var(--sp-5);
}
.callout--warn { background: #FDE9E1; }

.error-text { color: var(--status-error); font-weight: 700; font-size: 0.85rem; margin-top: var(--sp-2); display: none; }
.error-text.is-visible { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--status-error); }

/* ── Upload dropzones ────────────────────────────────────── */
.dropzone {
  border: 3px dashed var(--eb-beige-300);
  border-radius: var(--radius-md);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast);
  background: var(--surface-sunken);
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--action-primary); background: var(--eb-yellow-100); }
.dropzone.has-file { border-style: solid; border-color: var(--status-success); background: #EAF7EC; }
.dropzone__icon { font-size: 2rem; margin-bottom: var(--sp-2); }
.dropzone__title { font-weight: 700; color: var(--text-strong); }
.dropzone__hint { font-size: 0.8rem; color: var(--text-muted); margin-top: var(--sp-1); }
.dropzone__file { display: none; align-items: center; justify-content: center; gap: var(--sp-2); font-weight: 700; color: var(--status-success); }
.dropzone.has-file .dropzone__file { display: flex; }
.dropzone.has-file .dropzone__prompt { display: none; }
.dropzone input[type="file"] { display: none; }

/* ── Step nav ────────────────────────────────────────────── */
.step-nav { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); }
.step-nav .spacer { flex: 1; }

/* ── Review screen ───────────────────────────────────────── */
.review-section { border-bottom: 1px solid var(--surface-sunken); padding: var(--sp-4) 0; }
.review-section:last-of-type { border-bottom: none; }
.review-section__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-3); }
.review-section__head h3 { font-size: 1.05rem; }
.review-edit { font-weight: 700; font-size: 0.85rem; color: var(--action-primary); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.review-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-2) var(--sp-5); font-size: 0.92rem; }
@media (min-width: 560px) { .review-grid { grid-template-columns: 1fr 1fr; } }
.review-grid dt { font-weight: 700; color: var(--text-muted); }
.review-grid dd { margin: 0 0 var(--sp-3); color: var(--text-strong); }

/* ── Confirmation ────────────────────────────────────────── */
.confirm { text-align: center; padding: var(--sp-8) var(--sp-4); }
.confirm__emoji { font-size: 3.5rem; margin-bottom: var(--sp-4); }
.confirm__title { font-size: 1.75rem; margin-bottom: var(--sp-3); }
.confirm__copy { max-width: 480px; margin: 0 auto; color: var(--text-body); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--surface-invert); color: var(--text-on-dark); padding: var(--sp-8) 0 var(--sp-5); margin-top: var(--sp-9); }
.footer__inner { max-width: var(--container-xl); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: var(--sp-6); justify-content: space-between; }
.footer__logo { width: 40px; margin-bottom: var(--sp-3); }
.footer__tag { color: var(--eb-bun-beige); font-size: 0.9rem; }
.footer__privacy { max-width: 420px; font-size: 0.82rem; color: var(--eb-bun-beige); line-height: 1.6; }
.footer__legal { text-align: center; font-size: 0.8rem; color: var(--eb-beige-300); margin-top: var(--sp-6); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.toast {
  position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%);
  background: var(--eb-charcoal); color: var(--eb-warm-white);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-md);
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity var(--dur-base);
}
.toast.is-visible { opacity: 1; }
.toast.is-error { background: var(--status-error); }
