html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background:
    radial-gradient(circle at top left, rgba(25, 135, 84, 0.12), transparent 30rem),
    linear-gradient(180deg, #f7f3ec 0%, #f9faf7 100%);
  color: #1f2a24;
}

.test-hero {
  align-items: center;
  background: #16382c;
  border-radius: 28px;
  color: #f7f3ec;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 2rem 0;
  padding: 2rem;
}

.test-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  margin: 0;
  max-width: 760px;
}

.test-hero p {
  margin-bottom: 0;
  max-width: 760px;
}

.eyebrow {
  color: #ffc857;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(22, 56, 44, 0.12);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(22, 56, 44, 0.08);
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

label,
dt {
  color: #53645d;
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 0.75rem;
  text-transform: uppercase;
}

dd {
  margin-left: 0;
  overflow-wrap: anywhere;
}

input {
  border: 1px solid #cdd7d1;
  border-radius: 12px;
  display: block;
  margin-top: 0.25rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

button {
  background: #236b52;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
}

button:hover {
  background: #1a533f;
}

button.danger {
  background: #b9472f;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.actions form,
.inline-form {
  margin: 0;
}

.inline-form {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-top: 1rem;
}

.inline-form label {
  grid-column: 1 / -1;
}

.response-card pre {
  background: #10241d;
  border-radius: 18px;
  color: #dcf7ea;
  max-height: 520px;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
}

@media (max-width: 700px) {
  .test-hero,
  .inline-form {
    display: block;
  }
}
