/* =========================================
   SolMaisCred – Styles v3.1 (Final)
   Mobile-First · Premium Segmented UI
   Optimized for Solar Integrators Event
========================================= */

:root {
  --yellow:      #F4B942;
  --yellow-dark: #D9A230;
  --yellow-light:#FFF8EC;
  --text-main:   #1A1A1A;
  --text-sub:    #666666;
  --bg:          #F8F9FA;
  --white:       #FFFFFF;
  --border:      #E0E0E0;
  --success:     #22c55e;
  --error:       #ef4444;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 4px 12px rgba(0,0,0,0.06);
  --transition:  0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Resets ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

[v-cloak] { display: none; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* ── Layout ── */
.page-wrapper {
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.page-header-banner {
  line-height: 0;
}

.header-logo-img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  margin: -20px 16px 0;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0,0,0,0.03);
}

/* ── Campos e Inputs ── */
.field-group {
  margin-bottom: 20px;
}

.field-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.required { color: var(--yellow-dark); }

.field-input {
  width: 100%;
  height: 54px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 16px; /* Importante: Evita zoom automático no iOS */
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: all var(--transition);
  background: #FAFAFA;
}

.field-input:focus {
  outline: none;
  border-color: var(--yellow);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(244, 185, 66, 0.15);
}

/* ── Segmented Radio (Sem os Círculos) ── */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.radio-group.radio-3, 
.radio-group.radio-4 {
  grid-template-columns: 1fr 1fr; /* Quebra em 2x2 para mobile */
}

.radio-option {
  position: relative;
  height: 52px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-sub);
  transition: all var(--transition);
  background: var(--white);
  cursor: pointer;
}

/* Esconde o "Bullet" nativo */
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option.active {
  border-color: var(--yellow);
  background: var(--yellow-light);
  color: #1A1200;
  box-shadow: 0 4px 10px rgba(244, 185, 66, 0.12);
}

.radio-option:active { transform: scale(0.97); }

/* ── Divisor ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 15px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #BBB;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Botão Submit ── */
.btn-submit {
  width: 100%;
  height: 64px;
  background: var(--yellow);
  color: #1a1a1a;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 15px;
  box-shadow: 0 8px 20px rgba(244, 185, 66, 0.3);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:active:not(:disabled) {
  transform: scale(0.96);
  background: var(--yellow-dark);
}

.btn-submit:disabled { opacity: 0.7; }

/* ── Alertas e Hints ── */
.alert-duplicate {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-error-msg {
  color: var(--error);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Success Page ── */
.sp-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-wrap {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.sp-badge {
  width: 60px;
  height: 60px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 8px var(--yellow-light);
}

.sp-title { font-family: 'Sora', sans-serif; font-weight: 800; margin-bottom: 10px; }
.sp-desc { color: var(--text-sub); font-size: 0.95rem; margin-bottom: 25px; }

.sp-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.sp-btn {
  width: 100%;
  height: 58px;
  background: var(--yellow);
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(244,185,66,0.3);
}

/* ── Spinner ── */
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsivo (Telas Pequenas) ── */
@media (max-width: 350px) {
  .radio-group { grid-template-columns: 1fr; }
  .form-card { padding: 18px 15px; }
}