/* Diagnóstico inicial — organização visual e responsividade */
.diagnostic-section {
  padding-top: clamp(58px, 7vw, 92px);
  padding-bottom: clamp(68px, 8vw, 108px);
}

.native-diagnostic {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid rgba(241, 210, 129, .28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 162, 58, .10), transparent 34%),
    linear-gradient(145deg, rgba(14, 31, 48, .98), rgba(6, 16, 28, .98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.native-diagnostic-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.native-diagnostic-head h2 {
  margin: .45rem 0 .8rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
}

.native-diagnostic-head p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.native-diagnostic-badge {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(241, 210, 129, .35);
  border-radius: 999px;
  color: var(--gold2);
  background: rgba(215, 162, 58, .09);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.native-diagnostic-progress {
  height: 5px;
  margin: 22px 0 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.native-diagnostic-progress b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transition: width .25s ease;
}

.native-diagnostic-form {
  display: grid;
  gap: 18px;
}

.native-diagnostic-form fieldset {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(4, 14, 25, .48);
}

.native-diagnostic-form legend {
  max-width: 100%;
  padding: 0 10px;
  color: var(--gold2);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.native-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 16px;
  align-items: start;
}

.native-diagnostic-grid > label {
  display: grid;
  grid-column: span 6;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  font-size: .92rem;
}

.native-diagnostic-grid > label.wide {
  grid-column: 1 / -1;
}

.native-diagnostic-grid > label > span:first-child {
  color: #e8edf3;
  font-size: .83rem;
  font-weight: 750;
  line-height: 1.4;
}

.native-diagnostic-grid input:not([type="checkbox"]):not([type="radio"]),
.native-diagnostic-grid select,
.native-diagnostic-grid textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  outline: none;
  background: #081725;
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.native-diagnostic-grid textarea {
  min-height: 112px;
  resize: vertical;
}

.native-diagnostic-grid select {
  cursor: pointer;
}

.native-diagnostic-grid input::placeholder,
.native-diagnostic-grid textarea::placeholder {
  color: #7f8b99;
}

.native-diagnostic-grid input:focus,
.native-diagnostic-grid select:focus,
.native-diagnostic-grid textarea:focus {
  border-color: rgba(241, 210, 129, .72);
  background: #0a1b2c;
  box-shadow: 0 0 0 3px rgba(215, 162, 58, .14);
}

.native-diagnostic-form.was-validated .native-diagnostic-grid input:invalid,
.native-diagnostic-form.was-validated .native-diagnostic-grid select:invalid,
.native-diagnostic-form.was-validated .native-diagnostic-grid textarea:invalid {
  border-color: rgba(242, 143, 132, .64);
}

.native-diagnostic-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 2px;
}

.native-diagnostic-options > label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  color: #cfd7e1;
  background: rgba(255, 255, 255, .035);
  font-size: .84rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.native-diagnostic-options > label:hover,
.native-diagnostic-options > label:has(input:checked) {
  border-color: rgba(241, 210, 129, .62);
  color: var(--text);
  background: rgba(215, 162, 58, .12);
}

.native-diagnostic-options input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.native-diagnostic-consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 11px !important;
  padding: 14px 15px;
  border: 1px solid rgba(241, 210, 129, .18);
  border-radius: 12px;
  background: rgba(215, 162, 58, .06);
}

.native-diagnostic-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.native-diagnostic-consent span {
  color: #dce3eb;
  font-size: .86rem;
  line-height: 1.5;
}

.native-diagnostic-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.native-diagnostic-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 5px;
}

.native-diagnostic-actions .btn {
  min-width: 220px;
}

.native-diagnostic-actions p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

.native-diagnostic-actions p.is-error {
  color: #f2b0a8;
}

.native-diagnostic-actions p.is-success {
  color: var(--ok);
}

.native-diagnostic-success {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(159, 216, 178, .36);
  border-radius: 16px;
  background: rgba(86, 170, 119, .09);
}

.native-diagnostic-success h3 {
  margin: 0 0 6px;
  color: var(--ok);
  font-size: 1.4rem;
}

.native-diagnostic-success p {
  margin: 0;
  color: #d4e6da;
}

@media (max-width: 760px) {
  .native-diagnostic {
    padding: 20px 15px;
    border-radius: 20px;
  }

  .native-diagnostic-head {
    display: grid;
    gap: 14px;
  }

  .native-diagnostic-badge {
    width: max-content;
  }

  .native-diagnostic-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .native-diagnostic-grid > label,
  .native-diagnostic-grid > label.wide {
    grid-column: 1 / -1;
  }

  .native-diagnostic-actions {
    display: grid;
    gap: 13px;
  }

  .native-diagnostic-actions .btn {
    width: 100%;
  }
}
