* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 32px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(180deg, #f3f0e4 0%, #e7e0c8 100%);
  font-family: Georgia, 'Times New Roman', serif;
  color: #3a3320;
}

.card {
  width: 100%;
  max-width: 680px;
  background: #fffdf5;
  border: 1.5px solid #b8862c;
  border-radius: 14px;
  padding: 28px 32px 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

h1 {
  margin: 0 0 6px;
  color: #4a6b2a;
  font-size: 28px;
}

.hint {
  margin: 0 0 20px;
  color: #8a7a4a;
  font-size: 14px;
  line-height: 1.5;
}

.error {
  background: #fbe3df;
  border: 1.5px solid #c0552f;
  color: #8a2f12;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

label {
  display: block;
  font-weight: 700;
  margin: 14px 0 6px;
  color: #4a6b2a;
}

input[type="text"], textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1.5px solid #b8a86c;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
}

input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: #5a8835;
}

textarea { resize: vertical; line-height: 1.5; }

fieldset {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1.5px solid #b8a86c;
  border-radius: 8px;
}

legend {
  font-weight: 700;
  color: #4a6b2a;
  padding: 0 6px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  margin: 8px 0;
  cursor: pointer;
  font-size: 14px;
}

.radio b { color: #3a5520; }

.radio.standalone { margin: 16px 0 0; }

.custom-size input[type="number"] {
  width: 56px;
  font-family: inherit;
  font-size: 14px;
  padding: 4px 6px;
  border: 1.5px solid #b8a86c;
  border-radius: 6px;
}

select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1.5px solid #b8a86c;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
}

select:focus { outline: none; border-color: #5a8835; }

button[type="submit"] {
  margin-top: 22px;
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 13px;
  border: 1.5px solid #5a8835;
  border-radius: 10px;
  background: #c8d8a4;
  color: #3a5520;
  cursor: pointer;
}

button[type="submit"]:hover { background: #d6e4b6; }


h2{margin:24px 0 10px;font-size:20px;color:#4a6b2a}
input[type=number]{display:block;width:100%;max-width:100%;font:inherit;padding:10px 12px;border:1.5px solid #b8a86c;border-radius:8px;background:#fff;color:#1a1a1a}
input[type=checkbox],input[type=radio]{accent-color:#5a8835}
.check{display:flex;align-items:center;gap:10px;font-weight:400;font-size:14px;margin:8px 0;cursor:pointer}
.check input{width:20px;height:20px;flex-shrink:0}
fieldset{min-width:0}.row{display:flex;gap:14px}.row>div{flex:1;min-width:0}
button.secondary{font:inherit;font-size:14px;padding:9px 12px;border:1.5px solid #b8a86c;border-radius:8px;background:#fff;color:#3a5520;cursor:pointer;min-height:44px}
.question-editor{padding:16px;border:1.5px solid #b8a86c;border-radius:8px;margin:18px 0;background:#fffdf5}
.question-editor h2{margin-top:0}.question-editor label{font-size:14px}
.answer-editor{display:flex;gap:10px;align-items:center;margin:8px 0}.answer-editor input[type=radio]{width:22px;height:22px;flex-shrink:0}.answer-editor input[type=text]{min-width:0}
.small-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.school-story{margin:28px 0 0;border-top:1px solid #dbcca6;padding-top:22px;text-align:center}
.school-story img{display:block;width:100%;max-width:460px;height:auto;margin:0 auto 12px;border-radius:12px}
.school-story figcaption{font-size:14px;line-height:1.5;color:#8a7a4a;max-width:460px;margin:auto}
select,input,textarea{max-width:100%}a{color:#4a6b2a}[hidden]{display:none!important}
:focus-visible{outline:2px solid #5a8835;outline-offset:2px}
@media(max-width:560px){.card{padding:22px 18px 26px}.row{display:block}.question-editor{padding:12px}button{max-width:100%}}
select,textarea,input[type=number],input[type=text]{display:block;width:100%;max-width:100%;font:inherit;padding:10px;border:1px solid #baa77e;border-radius:7px;margin:5px 0 16px;background:#fff}
