body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: #f4f7fb;
  box-sizing: border-box;
}

.pre-public-main {
  padding: 38px 20px 56px;
}

.pre-public-intro {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.pre-public-intro h1 {
  color: #004aad;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  margin: 0 0 12px;
}

.pre-public-intro p {
  margin: 0;
  color: #334155;
  line-height: 1.7;
  font-size: 17px;
}

.card {
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.card h2 {
  text-align: center;
  color: #004aad;
  margin-bottom: 30px;
}

.msg-ok,
.msg-erro {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  text-align: center;
}

.msg-ok {
  background: #d4edda;
  color: #155724;
}

.msg-erro {
  background: #f8d7da;
  color: #721c24;
}

.pre-form-feedback[hidden] {
  display: none;
}

[data-pre-cadastro-form] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}

[data-pre-cadastro-form] > .msg-ok,
[data-pre-cadastro-form] > .msg-erro {
  grid-column: 1 / -1;
}

[data-pre-cadastro-form] > .grid-2 {
  display: contents;
}

.form-group {
  margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.pre-field-label,
.pre-label {
  display: block;
  color: #0f3057;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pre-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pre-radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f3057;
  font-weight: 800;
  cursor: pointer;
}

.pre-radio-option:has(input:checked) {
  border-color: #00a650;
  background: #effcf5;
  box-shadow: 0 0 0 2px rgba(0, 166, 80, 0.13);
}

.pre-radio-option input {
  width: auto;
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group textarea {
  resize: vertical;
}

button {
  width: 100%;
  background: #00a650;
  color: white;
  font-weight: bold;
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
}

[data-pre-cadastro-form] > button {
  grid-column: 1 / -1;
}

.voltar {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #004aad;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  [data-pre-cadastro-form] {
    display: block;
  }

  [data-pre-cadastro-form] > .grid-2 {
    display: grid;
  }

  .grid-2,
  .pre-radio-group {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }
}
