/* ============================================================
   ASA Segurança – Calculadora (pixel-fiel à Verisure)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* ── Reset isolado ── */
#asa-calc-wrapper,
#asa-calc-wrapper * {
  box-sizing: border-box !important;
  font-family: 'Open Sans', sans-serif !important;
}

#asa-calc-wrapper {
  max-width: 760px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
  padding: 0 !important;
}

/* ── Layout: sidebar + conteúdo ── */
#asa-calc-wrapper .asa-layout {
  display: flex !important;
  flex-direction: row !important;
  min-height: 340px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

/* ── Sidebar ── */
#asa-calc-wrapper .asa-sidebar {
  width: 180px !important;
  min-width: 180px !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  position: relative !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Linha vermelha da sidebar */
#asa-calc-wrapper .asa-sidebar::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 3px !important;
  height: 100% !important;
  background: #CC0022 !important;
}
#asa-calc-wrapper .asa-sidebar-items {
  padding: 32px 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
#asa-calc-wrapper .asa-sidebar-item {
  display: block !important;
  padding: 10px 20px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.5px !important;
  text-transform: lowercase !important;
  color: #aaaaaa !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  position: relative !important;
  transition: color 0.2s !important;
}
#asa-calc-wrapper .asa-sidebar-item.active {
  color: #444444 !important;
  font-weight: 600 !important;
}
/* Checkmark verde nas etapas concluídas */
#asa-calc-wrapper .asa-sidebar-item.done {
  color: #444444 !important;
}
#asa-calc-wrapper .asa-sidebar-item.done::before {
  content: '✓' !important;
  display: inline-block !important;
  margin-right: 6px !important;
  color: #CC0022 !important;
  font-weight: 700 !important;
}

/* ── Área de conteúdo ── */
#asa-calc-wrapper .asa-content {
  flex: 1 !important;
  min-width: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
}

/* ── Bloco de pergunta ── */
#asa-calc-wrapper .asa-block {
  display: block !important;
  padding: 28px 32px 24px !important;
  background: #ffffff !important;
  margin: 0 !important;
  width: 100% !important;
  border-bottom: 1px solid #eeeeee !important;
  animation: asaBlockIn 0.22s ease !important;
}
#asa-calc-wrapper .asa-block:last-child {
  border-bottom: none !important;
}
#asa-calc-wrapper .asa-block.answered {
  background: #f9f9f9 !important;
  padding-top: 18px !important;
  padding-bottom: 14px !important;
}

/* ── Pergunta ── */
#asa-calc-wrapper .asa-block-question {
  display: block !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}
#asa-calc-wrapper .asa-block.answered .asa-block-question {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #888888 !important;
  margin-bottom: 3px !important;
}

/* ── Nota contextual ── */
#asa-calc-wrapper .asa-note {
  display: block !important;
  font-size: 13px !important;
  color: #666666 !important;
  line-height: 1.5 !important;
  background: #f5f5f5 !important;
  border-left: 3px solid #CC0022 !important;
  padding: 9px 12px !important;
  margin: 0 0 16px 0 !important;
}
#asa-calc-wrapper .asa-block.answered .asa-note {
  display: none !important;
}

/* ── Lista de opções ── */
#asa-calc-wrapper .asa-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
#asa-calc-wrapper .asa-block.answered .asa-options {
  gap: 0 !important;
}

/* ── Opção ── */
#asa-calc-wrapper .asa-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 15px 18px !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  background: #ffffff !important;
  margin: 0 !important;
  user-select: none !important;
  transition: border-color 0.15s, background 0.15s !important;
  width: 100% !important;
}
#asa-calc-wrapper .asa-option:hover {
  border-color: #CC0022 !important;
  background: #fff8f8 !important;
}
#asa-calc-wrapper .asa-option.selected {
  border-color: #CC0022 !important;
  background: #fff8f8 !important;
}
/* Respondido: esconde não selecionadas */
#asa-calc-wrapper .asa-block.answered .asa-option:not(.selected) {
  display: none !important;
}
#asa-calc-wrapper .asa-block.answered .asa-option.selected {
  border: none !important;
  background: transparent !important;
  padding: 2px 0 !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* ── Label da opção ── */
#asa-calc-wrapper .asa-option-label {
  flex: 1 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  display: block !important;
}
#asa-calc-wrapper .asa-block.answered .asa-option-label {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
}

/* ── Radio (à direita como Verisure) ── */
#asa-calc-wrapper .asa-radio {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 50% !important;
  border: 2px solid #cccccc !important;
  position: relative !important;
  flex-shrink: 0 !important;
  margin-left: 14px !important;
  background: #fff !important;
  display: block !important;
  transition: border-color 0.15s !important;
}
#asa-calc-wrapper .asa-option:hover .asa-radio,
#asa-calc-wrapper .asa-option.selected .asa-radio {
  border-color: #CC0022 !important;
}
#asa-calc-wrapper .asa-option.selected .asa-radio::after {
  content: '' !important;
  position: absolute !important;
  top: 4px !important; left: 4px !important;
  right: 4px !important; bottom: 4px !important;
  border-radius: 50% !important;
  background: #CC0022 !important;
  display: block !important;
}
#asa-calc-wrapper .asa-block.answered .asa-radio {
  display: none !important;
}

/* ── Bloco final ── */
#asa-calc-wrapper .asa-final-block {
  display: block !important;
  padding: 28px 32px 40px !important;
  margin: 0 !important;
}
#asa-calc-wrapper .asa-final-title {
  display: block !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 5px 0 !important;
  padding: 0 !important;
}
#asa-calc-wrapper .asa-final-sub {
  display: block !important;
  font-size: 13px !important;
  color: #666 !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}
#asa-calc-wrapper .asa-fields-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 !important;
}
/* phone-row agora é só um wrapper flex coluna */
#asa-calc-wrapper .asa-phone-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 !important;
}
#asa-calc-wrapper .asa-name-input,
#asa-calc-wrapper .asa-phone-input {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1.5px solid #dddddd !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  color: #1a1a1a !important;
  background: #fff !important;
  outline: none !important;
  margin: 0 !important;
  font-family: 'Open Sans', sans-serif !important;
  transition: border-color 0.2s !important;
  display: block !important;
}
#asa-calc-wrapper .asa-name-input:focus,
#asa-calc-wrapper .asa-phone-input:focus {
  border-color: #CC0022 !important;
}
#asa-calc-wrapper .asa-btn-submit {
  background: #CC0022 !important;
  border: none !important;
  color: #fff !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 20px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  margin: 0 !important;
  transition: background 0.2s !important;
  width: 100% !important;
  display: block !important;
}
#asa-calc-wrapper .asa-btn-submit:hover {
  background: #aa0019 !important;
}
#asa-calc-wrapper .asa-error-msg {
  display: none !important;
  font-size: 13px !important;
  color: #CC0022 !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
}
#asa-calc-wrapper .asa-privacy {
  display: block !important;
  font-size: 11px !important;
  color: #aaaaaa !important;
  margin: 12px 0 0 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}
#asa-calc-wrapper .asa-privacy a {
  color: #aaaaaa !important;
  text-decoration: underline !important;
}

/* ── Sucesso ── */
#asa-calc-wrapper .asa-success {
  display: none !important;
  padding: 56px 32px !important;
  text-align: center !important;
}
#asa-calc-wrapper .asa-success.show {
  display: block !important;
}
#asa-calc-wrapper .asa-success-icon {
  width: 60px !important;
  height: 60px !important;
  background: #CC0022 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px !important;
}
#asa-calc-wrapper .asa-success-icon svg {
  width: 30px !important;
  height: 30px !important;
}
#asa-calc-wrapper .asa-success-icon svg path { fill: #fff !important; }
#asa-calc-wrapper .asa-success h2 {
  font-size: 21px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 8px 0 !important;
}
#asa-calc-wrapper .asa-success p {
  font-size: 14px !important;
  color: #666 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ── Sucesso inline (substitui o formulário no mesmo lugar) ── */
#asa-calc-wrapper .asa-success-inline {
  padding: 48px 32px !important;
  text-align: center !important;
  animation: asaBlockIn 0.3s ease !important;
}
#asa-calc-wrapper .asa-success-inline .asa-success-icon {
  width: 64px !important;
  height: 64px !important;
  background: #CC0022 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 20px !important;
  font-size: 28px !important;
  color: #fff !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
#asa-calc-wrapper .asa-success-inline .asa-success-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 12px 0 !important;
}
#asa-calc-wrapper .asa-success-inline .asa-success-sub {
  font-size: 15px !important;
  color: #666 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  max-width: 340px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ── Animação ── */
@keyframes asaBlockIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 560px) {
  #asa-calc-wrapper .asa-sidebar { display: none !important; }
  #asa-calc-wrapper .asa-block { padding: 20px 16px !important; }
  #asa-calc-wrapper .asa-final-block { padding: 20px 16px 36px !important; }
  #asa-calc-wrapper .asa-layout { border-radius: 0 !important; }
}

/* ============================================================
   ASA Segurança – Formulário Rápido [asa_formulario]
   ============================================================ */
.asa-quick-form {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 28px 24px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.13);
  max-width: 400px;
  font-family: 'Open Sans', sans-serif;
}
.aqf-sub {
  font-size: 12px;
  font-weight: 700;
  color: #CC0022;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 6px;
  padding: 0;
}
.aqf-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 20px;
  padding: 0;
}
.aqf-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.aqf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.aqf-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin: 0;
  padding: 0;
}
.aqf-input {
  padding: 11px 14px;
  border: 1.5px solid #dddddd;
  border-radius: 6px;
  font-size: 14px;
  color: #1a1a1a;
  font-family: 'Open Sans', sans-serif;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.aqf-input:focus { border-color: #CC0022; }
.aqf-select-wrap { position: relative; }
.aqf-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: #888; pointer-events: none;
  font-size: 14px;
}
.aqf-select { cursor: pointer; padding-right: 32px; }
.aqf-error {
  font-size: 12px;
  color: #CC0022;
  margin: 0 0 8px;
  padding: 0;
}
.aqf-btn-submit {
  width: 100%;
  background: #CC0022;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 8px;
}
.aqf-btn-submit:hover { background: #aa0019; }
.aqf-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.aqf-hint {
  font-size: 11px;
  color: #aaaaaa;
  text-align: center;
  margin: 0 0 14px;
  padding: 0;
  line-height: 1.5;
}
.aqf-btn-wpp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #25D366;
  color: #ffffff;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 20px;
  text-decoration: none;
  transition: background 0.2s;
}
.aqf-btn-wpp svg path { fill: #ffffff; }
.aqf-btn-wpp:hover { background: #1da851; color: #fff; }
.aqf-success {
  text-align: center;
  padding: 16px 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #1a8a3f;
}
