/* ===========================
   ARAL – Calculadora Abono v1.3.5
   Layout premium, compacto e elegante (ajustado)
   =========================== */

:root {
  --aral-bg:        #f4f6fa;
  --aral-ink:       #0c1b2a;
  --aral-muted:     #6a7685;
  --aral-brand:     #123a5d;   /* azul principal */
  --aral-brand-soft:#1a496f;
  --aral-accent:    #f5b14c;   /* dourado */
  --aral-border:    #dde3ee;
  --aral-soft:      #f8fafc;
}

/* Seção geral da calculadora */
.aral-calc-wrap {
  max-width: 880px;
  margin: 32px auto 48px;
  padding: 0 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--aral-ink);
}

/* Chips do topo (período, percentual, fator) */
.aral-calc-period {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  justify-content: center;
}

.aral-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 58, 93, 0.04);
  border: 1px solid rgba(18, 58, 93, 0.06);
  font-size: 11px;
  color: var(--aral-muted);
}

.aral-chip small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 10px;
}

.aral-chip b {
  font-weight: 600;
  color: var(--aral-brand);
  font-size: 12px;
}

/* Cartão principal da calculadora */
.aral-card {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--aral-border);
  box-shadow: 0 22px 45px rgba(10, 26, 52, 0.16);
  padding: 26px 24px 22px;
  overflow: hidden;
}

/* círculo decorativo suave no canto direito */
.aral-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(245,177,76,0.16), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

/* Grid de nome + e-mail */
.aral-grid-two {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 14px;
  margin-bottom: 14px;
}

/* Grid dos campos numéricos */
.aral-calc-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) repeat(2, minmax(0,0.8fr));
  gap: 14px;
  margin-bottom: 10px;
}

/* Campo individual */
.aral-field {
  display: flex;
  flex-direction: column;
}

/* Label – MENOR */
.aral-label {
  font-size: 10px;               /* antes 11px */
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aral-muted);
  margin-bottom: 4px;
}

/* Inputs – TEXTO MENOR */
.aral-field input[type="text"],
.aral-field input[type="email"],
.aral-field input[type="number"] {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--aral-border);
  background: var(--aral-soft);
  font-size: 13px;               /* antes 14px */
  color: var(--aral-ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.08s ease;
}

.aral-field input::placeholder {
  color: #a0a7b4;
}

.aral-field input:focus {
  border-color: var(--aral-brand);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(18,58,93,0.08);
  transform: translateY(-0.5px);
}

/* Linha de ações (botões) */
.aral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Botões base */
.aral-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

/* Botão principal – Calcular
   Azul sólido padrão da Aral */
.aral-btn-primary {
  background: var(--aral-brand);
  border: 1px solid var(--aral-brand);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(12, 27, 42, 0.40);
}

.aral-btn-primary:hover {
  background: var(--aral-brand-soft);
  border-color: var(--aral-brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(12, 27, 42, 0.48);
}

/* Botão secundário – WhatsApp */
.aral-btn-ghost {
  background: #ffffff;
  border: 1px solid var(--aral-border);
  color: var(--aral-brand-soft);
}

.aral-btn-ghost:hover {
  border-color: var(--aral-brand-soft);
  background: rgba(18,58,93,0.04);
}

/* Estado desabilitado do botão WhatsApp */
.aral-btn-ghost[disabled],
.aral-btn-ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Bloco de resultados */
.aral-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--aral-border);
}

.aral-stat {
  font-size: 12px;
  color: var(--aral-muted);
}

.aral-stat small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 10px;
  margin-bottom: 2px;
}

.aral-stat b {
  font-size: 13px;
  color: var(--aral-brand);
}

/* Destaque do total */
.aral-total {
  padding-left: 10px;
  border-left: 1px solid rgba(221,227,238,0.7);
}

.aral-total b {
  font-size: 15px;
  font-weight: 700;
}

/* Nota explicativa */
.aral-note {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--aral-muted);
}

.aral-note b {
  color: var(--aral-ink);
}

/* Responsivo */
@media (max-width: 768px) {
  .aral-card {
    padding: 22px 18px 20px;
  }

  .aral-grid-two,
  .aral-calc-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .aral-stats {
    grid-template-columns: minmax(0,1fr);
  }

  .aral-total {
    border-left: 0;
    padding-left: 0;
  }

  .aral-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .aral-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .aral-calc-wrap {
    margin: 24px auto 32px;
    padding: 0 10px;
  }
}
