/* =========================================
   Inovvatur — Identidade Visual
   ========================================= */
:root {
  --brand-blue:    #0147FF;
  --brand-blue-dk: #0033C2;
  --brand-blue-lt: #2E63FF;
  --bg:            #F6F8FF;
  --surface:       #FFFFFF;
  --ink:           #04070F;
  --ink-soft:      #3A4051;
  --ink-muted:     #6B7280;
  --border:        #E2E6F2;
  --border-strong: #C7CEE3;
  --danger:        #DC2626;
  --success:       #059669;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(4, 7, 15, 0.04);
  --shadow:    0 4px 16px rgba(4, 7, 15, 0.06);
  --shadow-lg: 0 12px 40px rgba(1, 71, 255, 0.10);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 64px 24px 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(1, 71, 255, 0.55), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(1, 71, 255, 0.25), transparent 60%);
  z-index: -1;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin-bottom: 32px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.logo {
  width: 64px;
  height: 64px;
  pointer-events: none;
  filter: brightness(0) invert(1);
}
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue-lt);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto;
  max-width: 580px;
}

/* =========================================
   Container & Cards
   ========================================= */
.container {
  max-width: 760px;
  margin: -56px auto 64px;
  padding: 0 24px;
  position: relative;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
}
.card-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.card-head p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* =========================================
   Form fields
   ========================================= */
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; gap: 16px; }
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.req { color: var(--brand-blue); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2304070F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(1, 71, 255, 0.12);
}

input.invalid,
textarea.invalid,
select.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

input::placeholder,
textarea::placeholder { color: var(--ink-muted); }

/* =========================================
   File upload
   ========================================= */
.file-drop {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-drop:hover {
  border-color: var(--brand-blue);
  background: rgba(1, 71, 255, 0.04);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-placeholder {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.file-drop.has-file {
  border-style: solid;
  border-color: var(--brand-blue);
  background: rgba(1, 71, 255, 0.04);
}
.file-drop.has-file .file-placeholder {
  color: var(--brand-blue);
  font-weight: 600;
}

/* =========================================
   Radio cards
   ========================================= */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 0.9375rem;
  font-weight: 500;
}
.radio-card:hover {
  border-color: var(--border-strong);
  background: var(--bg);
}
.radio-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s ease;
}
.radio-card input[type="radio"]:checked {
  border-color: var(--brand-blue);
}
.radio-card input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--brand-blue);
  border-radius: 50%;
}
.radio-card:has(input:checked) {
  border-color: var(--brand-blue);
  background: rgba(1, 71, 255, 0.04);
}

/* =========================================
   Submit
   ========================================= */
.actions {
  margin-top: 32px;
  text-align: center;
}
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-blue);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(1, 71, 255, 0.25);
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand-blue-dk);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(1, 71, 255, 0.32);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-loader {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn-primary.loading .btn-loader { display: inline-block; }
.btn-primary.loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.legal {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   Success / Error states
   ========================================= */
.success {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(5, 150, 105, 0.12);
  color: var(--success);
  border-radius: 50%;
  margin-bottom: 24px;
}
.success h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.success p {
  color: var(--ink-muted);
  max-width: 440px;
  margin: 0 auto;
}

.error-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.20);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 20px;
  color: var(--danger);
  font-size: 0.9375rem;
}
.error-msg strong { color: var(--danger); }
.error-msg a { color: var(--danger); text-decoration: underline; }

/* Garante que [hidden] sobrescreve o display flex/block dos blocos abaixo */
[hidden] { display: none !important; }

/* =========================================
   Footer
   ========================================= */
.footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer p { margin: 0; max-width: 600px; margin: 0 auto; }

/* =========================================
   Mobile
   ========================================= */
@media (max-width: 600px) {
  .hero { padding: 48px 20px 80px; }
  .container { padding: 0 16px; margin-top: -48px; }
  .card { padding: 24px 20px; }
  .card-head { gap: 12px; }
  .step { width: 36px; height: 36px; font-size: 0.8125rem; }
  .card-head h2 { font-size: 1.125rem; }
  .btn-primary { width: 100%; }
}
