/* ═══════════════════════════════════════════════════════════
   Cadastro de Palestrantes — Feira do Empreendedor 2026
   Arquivo: frontend/css/styles.css
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
  --brand:       #5C13C7;
  --brand-dark:  #5C13C7;
  --brand-light: #e8f0ff;
  --accent:      #FF6B00;
  --accent-soft: #fff3e8;
  --success:     #00875A;
  --danger:      #DE350B;
  --bg:          #F4F5F7;
  --surface:     #FFFFFF;
  --border:      #DFE1E6;
  --text:        #172B4D;
  --text-muted:  #6B778C;
  --radius:      12px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ─── HERO ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, #1a6fff 100%);
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,107,0,.25) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255,255,255,.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero h1 em { color: #ffc26b; font-style: italic; }
.hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: .9;
  max-width: 620px;
  margin-bottom: 12px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-chip svg { width: 15px; height: 15px; opacity: .8; }

/* ─── AVISO ────────────────────────────────────── */
.notice {
  background: #FFF8E1;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 20px;
  font-size: .88rem;
  color: #5A3E00;
  max-width: 860px;
  margin: 24px auto 0;
}
.notice strong { color: var(--accent); }

/* ─── LAYOUT ───────────────────────────────────── */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

/* ─── STEPPER ──────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  transition: background .4s;
}
.step.done:not(:last-child)::after { background: var(--brand); }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  transition: background .3s, color .3s;
}
.step.active .step-num { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-light); }
.step.done .step-num   { background: var(--success); color: #fff; }
.step-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .3s;
}
.step.active .step-label { color: var(--brand); }
.step.done  .step-label  { color: var(--success); }

/* ─── CARD ─────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  animation: fadeUp .4s ease both;
}
@media (max-width: 600px) { .card { padding: 24px 18px; } }

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-dark);
}
.card-sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ─── FORM ELEMENTS ────────────────────────────── */
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
label .req { color: var(--accent); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .93rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
input.error, textarea.error { border-color: var(--danger); }
.field-error {
  display: block;
  font-size: .78rem;
  color: var(--danger);
  margin-top: 5px;
}
textarea { resize: vertical; min-height: 90px; }

.field-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.5;
}

/* row splits */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

/* ─── RADIO / CHECKBOX GROUPS ──────────────────── */
.radio-group, .check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.radio-group.inline { flex-direction: row; flex-wrap: wrap; gap: 12px; }

.radio-opt, .check-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.radio-opt input[type="radio"],
.check-opt input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}
.radio-opt span, .check-opt span {
  font-size: .88rem;
  line-height: 1.4;
  padding-top: 1px;
}

/* ─── FILE UPLOAD ──────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--brand);
  background: var(--brand-light);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-zone p { font-size: .88rem; color: var(--text-muted); }
.upload-zone strong { color: var(--brand); }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .83rem;
}
.file-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .file-size { color: var(--text-muted); flex-shrink: 0; }
.file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--danger);
  font-size: 1rem;
  padding: 0 4px;
  line-height: 1;
}
.upload-limit { font-size: .78rem; color: var(--danger); font-weight: 600; }

/* ─── BUTTONS ──────────────────────────────────── */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,82,204,.3);
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); }
.btn svg { width: 18px; height: 18px; }

/* ─── FORM STEPS ────────────────────────────────── */
.form-step { display: none; }
.form-step.active { display: block; }

/* ─── SUCCESS ──────────────────────────────────── */
#successMessage {
  display: none;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid #B3F5D8;
  padding: 56px 40px;
  text-align: center;
}
.success-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: pop .5s ease;
}
#successMessage h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; color: var(--success); margin-bottom: 12px; }
#successMessage p  { color: var(--text-muted); max-width: 440px; margin: 0 auto; line-height: 1.6; }

/* ─── ERROR BANNER ─────────────────────────────── */
.error-banner {
  display: none;
  background: #FFF5F5;
  border: 1.5px solid #FFBCBC;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--danger);
  margin-bottom: 20px;
}

/* ─── LOADER ───────────────────────────────────── */
.btn-primary .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: none;
}
.btn-primary.loading .spinner { display: block; }
.btn-primary.loading .btn-text { display: none; }

/* ─── FOOTER ───────────────────────────────────── */
footer {
  text-align: center;
  padding: 24px;
  font-size: .8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ─── RESPONSIVE ───────────────────────────────── */
@media (max-width: 480px) {
  .stepper { gap: 4px; }
  .step-label { display: none; }
}

/* ─── ANIMATIONS ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  0%  { transform: scale(.5); opacity: 0; }
  80% { transform: scale(1.1); }
  100%{ transform: scale(1);   opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }
