:root {
  --green: #1C549C;
  --green-600: #1C549C;
  --purple: #1C549C;
  --indigo: #1C549C;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --row: #f4f5f8;
  --row-alt: #eef2ff;
  --radius: 12px;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px
}

@media (max-width: 768px) {
  .container {
    padding: 16px 12px;
  }
}

.h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 10px 0;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #1C549C;
}

@media (max-width: 768px) {
  .h1 {
    font-size: 28px;
  }
}

.lead {
  color: var(--muted-2);
  margin: 0 0 24px 0
}

.card {
  background: var(--bg-card);
  padding: 24px;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.card .table {
  text-align: left;
}

.card .table th,
.card .table td {
  text-align: left;
}

/* Forçar alinhamento à esquerda nas tabelas com !important */
.card .table th,
.card .table td,
.table th,
.table td {
  text-align: left !important;
}

.acc-body .table th,
.acc-body .table td {
  text-align: left !important;
}

.card-floating:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, .15);
}

.card+.card {
  margin-top: 16px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: .2s all ease
}

@media (max-width: 768px) {
  .btn {
    padding: 14px 20px;
    font-size: 16px;
    min-height: 48px;
  }
}

.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .btn-sm {
    padding: 12px 16px;
    font-size: 15px;
    min-height: 44px;
  }
}

.btn:focus {
  outline: 3px solid rgba(79, 70, 229, .25);
  outline-offset: 2px
}

.btn-primary {
  background: var(--purple);
  color: #fff
}

.btn-outline-green {
  background: #fff;
  border: 2px solid var(--green-600);
  color: var(--green-600)
}

.btn-outline-green:hover {
  background: rgba(13, 138, 75, .06)
}

.btn-outline-indigo {
  background: #fff;
  border: 2px solid var(--indigo);
  color: var(--indigo)
}

.btn-outline-indigo:hover {
  background: rgba(63, 55, 201, .06)
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--green-600);
  margin-right: 8px
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px
}

@media(min-width:860px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr
  }
}

.choice {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}

.choice:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, .15);
  border-color: var(--indigo);
}

.choice:active {
  transform: translateY(-2px);
}

.choice .btn {
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.choice .choice-icon {
  font-size: 120px;
  line-height: 1;
  color: var(--indigo);
  margin-bottom: 20px;
}

.choice .choice-icon img {
  width: 120px !important;
  height: 120px !important;
  filter: brightness(0) saturate(100%) invert(13%) sepia(79%) saturate(2425%) hue-rotate(207deg) brightness(95%) contrast(102%);
}

.choice .title {
  font-weight: 800;
  margin: 12px 0 8px 0;
  color: #1C549C;
}

.choice .desc {
  color: var(--muted-2);
  margin-bottom: 14px
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
  align-items: flex-end;
}

.form-row .buttons-right {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .form-row > div {
    width: 100%;
  }
  
  .form-row .buttons-right {
    margin-left: 0 !important;
    margin-top: 12px;
    justify-content: center;
  }
}

.select,
.input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  min-width: 220px
}

@media (max-width: 768px) {
  .select,
  .input {
    min-width: 100%;
    width: 100%;
  }
}

.label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #111827;
  text-align: left;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  background: #eef2ff;
  color: #3730a3;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px
}

@media (max-width: 768px) {
  .table {
    font-size: 12px;
  }
  
  .table th,
  .table td {
    padding: 8px 6px;
    word-break: break-word;
  }
  
  .table th {
    font-size: 11px;
    text-transform: uppercase;
  }
}

.table th {
  background: #eef2ff;
  padding: 10px;
  border: 1px solid var(--border);
  text-align: left
}

.table td {
  padding: 10px;
  border: 1px solid var(--border);
  text-align: left;
}

.accordion {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff
}

.acc-head {
  display: grid;
  grid-template-columns: 3fr 1.2fr .8fr 1fr 40px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: #f3f4f6;
  border-bottom: 1px solid var(--border);
  cursor: pointer
}

@media (max-width: 768px) {
  .acc-head {
    grid-template-columns: 1fr 40px;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .acc-head > div:nth-child(2),
  .acc-head > div:nth-child(3),
  .acc-head > div:nth-child(4) {
    display: none;
  }
  
  .acc-head[role="button"] {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 16px;
  }
  
  .acc-head[role="button"] > div {
    display: block !important;
    margin-bottom: 4px;
  }
  
  .acc-head[role="button"] .arrow {
    display: none;
  }
}

.acc-head:hover {
  background: #eef2ff
}

.acc-head .arrow {
  justify-self: end;
  transition: transform .15s ease;
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(28, 84, 156, 0.1);
  color: var(--indigo);
  font-weight: bold;
}

.acc-head .arrow::before {
  content: '+';
  font-size: 16px;
  line-height: 1;
}

.acc-head.open .arrow {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.acc-head:hover .arrow {
  background: rgba(28, 84, 156, 0.2);
  transform: scale(1.1);
}

.acc-head.open:hover .arrow {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(45deg) scale(1.1);
}

.acc-head.open {
  background: var(--indigo);
  color: #fff
}

.acc-body {
  display: none;
  padding: 18px 18px 20px;
  background: #fff;
  text-align: left;
}

.acc-body.open {
  display: block
}

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
  color: var(--muted-2)
}

.small {
  font-size: 12px;
  color: var(--muted-2)
}

.footer-note {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 13px
}

.text-center {
  text-align: center
}

/* Responsividade para flex containers */
@media (max-width: 768px) {
  div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  
  div[style*="margin-left:auto"] {
    margin-left: 0 !important;
    margin-top: 16px !important;
  }
  
  div[style*="display:flex"][style*="margin-left:auto"] {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 8px !important;
  }
}

/* Melhorias específicas para cards */
@media (max-width: 768px) {
  .card {
    padding: 16px;
    margin: 0 -4px;
  }
  
  .choice {
    padding: 20px 16px;
  }
  
  .choice .choice-icon {
    font-size: 80px;
    margin-bottom: 16px;
  }
  
  .choice .choice-icon img {
    width: 80px !important;
    height: 80px !important;
  }
  
  .choice .title {
    font-size: 18px;
    margin: 8px 0 6px 0;
  }
  
  .choice .desc {
    font-size: 14px;
    margin-bottom: 16px;
  }
}

/* Ajustes para textos longos em mobile */
@media (max-width: 768px) {
  .lead {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .acc-body p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .footer-note {
    font-size: 12px;
  }
}
