/* ─── Maru Jobs — Maru Brand Palette ───────────── */
:root {
  --maru-red: #9f0000;
  --maru-red-dark: #500101;
  --maru-dark: #010101;
  --maru-gold: #ffc107;
  --maru-gold-dark: #ff9800;
  --maru-light: #ffffff;
  --bg: #f9f9fb;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-light: #555555;
  --muted: #888888;
  --success: #2e7d32;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Hero / Landing ──────────────────────── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #ffffff 0%, #f5f0eb 40%, #f0ebe5 100%);
  color: var(--text);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(159,0,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,193,7,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 880px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  height: 72px;
  width: auto;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--maru-red-dark);
}

.accent { color: var(--maru-red); }

.tagline {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #f0ece8;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(159,0,0,0.1);
}

.feature .icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.feature h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--maru-red); font-weight: 700; }
.feature p { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; }

/* ─── Buttons ──────────────────────────── */
.cta-button, .btn-secondary, .btn-ghost {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.cta-button {
  background: linear-gradient(135deg, var(--maru-red) 0%, var(--maru-red-dark) 100%);
  color: white;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(159,0,0,0.3);
}

.btn-secondary {
  background: rgba(159,0,0,0.06);
  color: var(--maru-red);
  border: 1px solid rgba(159,0,0,0.15);
}

.btn-secondary:hover {
  background: rgba(159,0,0,0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--maru-red);
  border: 2px solid var(--maru-red);
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
}

.btn-ghost:hover {
  background: var(--maru-red);
  color: white;
}

.button-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ─── Choice Cards (upload vs template) ─── */
.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.choice-card {
  background: var(--card);
  border: 2px solid #e8e4e0;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.choice-card:hover {
  border-color: var(--maru-red);
  box-shadow: 0 4px 12px rgba(159,0,0,0.1);
}

.choice-card.selected {
  border-color: var(--maru-red);
  background: #fef5f5;
}

.choice-card .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.choice-card h3 { font-size: 1rem; color: var(--maru-red-dark); margin-bottom: 0.3rem; }
.choice-card p { font-size: 0.85rem; color: var(--muted); }

/* ─── Container (inner pages) ────────────── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.header-bar .brand-logo {
  height: 36px;
  width: auto;
}

.header-bar a {
  color: var(--maru-red);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.container h1 {
  color: var(--maru-red-dark);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  font-weight: 800;
}

.info-text {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ─── Progress Bar ────────────────────────── */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 0.5rem;
}

.step {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  transition: all 0.2s;
}

.step.active {
  background: var(--maru-red);
  color: white;
  box-shadow: 0 0 0 3px rgba(159,0,0,0.2);
}

.step.completed {
  background: var(--success);
  color: white;
}

.step-line {
  width: 60px;
  height: 3px;
  background: #e0e0e0;
}

.step-line.filled {
  background: var(--success);
}

.step-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.step-labels .active { color: var(--maru-red); font-weight: 700; }

/* ─── Upload Sections ──────────────────── */
.upload-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid #f0ece8;
}

.upload-section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--maru-red-dark);
}

.hint { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }

.file-drop {
  border: 2px dashed #d4d0cc;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.file-drop:hover {
  border-color: var(--maru-red);
  background: #fef5f5;
}

.file-drop.has-file {
  border-color: var(--success);
  background: #f1f8e9;
  border-style: solid;
}

.file-drop.loading { opacity: 0.6; pointer-events: none; }

.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.result-box {
  background: #f1f8e9;
  border: 1px solid #c8e6c9;
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.result-box.hidden { display: none; }

/* ─── Details Form ─────────────────────── */
.details-form { max-width: 600px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e4e0dc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--maru-red);
  box-shadow: 0 0 0 3px rgba(159,0,0,0.08);
}

.form-group textarea { resize: vertical; }

/* ─── Review Page ──────────────────────── */
.review-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border: 1px solid #f0ece8;
}

.review-card h2 {
  color: var(--maru-red-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--maru-red);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.review-details p { margin-bottom: 0.5rem; }

.review-details strong { color: var(--maru-red-dark); }

.review-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.review-section h3 {
  font-size: 0.95rem;
  color: var(--maru-red);
  margin-bottom: 0.3rem;
}

.review-section ul { padding-left: 1.5rem; }
.review-section li { margin-bottom: 0.3rem; }

.success-box {
  background: #e8f5e9;
  border: 2px solid #a5d6a7;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.hidden { display: none; }

/* ─── Status Messages ─────────────────── */
.status-msg {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.95rem;
  display: none;
}

.status-msg.visible { display: block; }
.status-msg.success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.status-msg.error { background: #fbe9e7; color: #bf360c; border: 1px solid #ffab91; }
.status-msg.info { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; }

/* ─── Footer ────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ─── Mobile ───────────────────────────── */
@media (max-width: 600px) {
  .hero { min-height: auto; padding: 3rem 1.25rem; }
  .hero h1 { font-size: 2.2rem; }
  .tagline { font-size: 1rem; }
  .features { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .hero-logo { height: 56px; }
  .form-row { grid-template-columns: 1fr; }
  .container { padding: 1.5rem 1rem; }
  .choice-cards { grid-template-columns: 1fr; }
  .step-line { width: 30px; }
}
