*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  background: #f4f5f7;
  color: #1a1a2e;
  padding: 32px 16px 64px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 28px;
}

header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
}

header .subtitle {
  color: #666;
  margin-top: 4px;
  font-size: 13px;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.card h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #3a6ea8;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f0fb;
}

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

.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }

label {
  font-size: 12px;
  font-weight: 600;
  color: #444;
}

input[type="text"],
input[type="email"],
textarea {
  border: 1.5px solid #d0d7e2;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fafbfd;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #3a6ea8;
  box-shadow: 0 0 0 3px rgba(58,110,168,.12);
  background: #fff;
}

textarea { resize: vertical; }

/* Radio */
.radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
}

.radio-label input[type="radio"] { accent-color: #3a6ea8; width: 15px; height: 15px; }

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] { accent-color: #3a6ea8; width: 15px; height: 15px; }

/* Input + select side by side */
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.input-group select {
  border: 1.5px solid #d0d7e2;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fafbfd;
  color: #1a1a2e;
  cursor: pointer;
  transition: border-color .15s;
}
.input-group select:focus {
  outline: none;
  border-color: #3a6ea8;
  box-shadow: 0 0 0 3px rgba(58,110,168,.12);
}

.options-card { padding: 16px 24px; }

/* Actions */
.actions { text-align: center; margin-top: 24px; }

button[type="submit"] {
  background: #3a6ea8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 40px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

button[type="submit"]:hover { background: #2d5a8e; }
button[type="submit"]:active { transform: scale(.98); }
button[type="submit"]:disabled { background: #94a8c0; cursor: not-allowed; }

/* Result */
.result-box {
  margin-top: 20px;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.7;
}

.result-box.success {
  background: #edfaf3;
  border: 1.5px solid #4caf80;
  color: #1a4a2e;
}

.result-box.error {
  background: #fff0f0;
  border: 1.5px solid #e05c5c;
  color: #5a1a1a;
}

.path-label { font-weight: 600; color: #555; }
code { font-size: 12px; background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 3px; }
.warn { color: #a06000; }

@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
}
