:root {
  color-scheme: light;
  --bg: #f9f3ef;
  --surface: rgba(255, 255, 255, 0.88);
  --text: #26342f;
  --muted: #6b7774;
  --line: #e7deda;
  --accent: #428765;
  --accent-strong: #2f7053;
  --accent-soft: #e9f5ed;
  --warn-bg: #fff5df;
  --warn-text: #765113;
  --error-bg: #fff0ef;
  --error-text: #9b2424;
  --success-bg: #e8f6ee;
  --success-text: #145a3e;
  --shadow: 0 18px 48px rgba(93, 79, 72, 0.14);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f9f3ef;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(233, 246, 235, 0.92) 0%, rgba(255, 242, 230, 0.68) 35%, rgba(244, 235, 252, 0.78) 72%, rgba(232, 247, 246, 0.9) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 48%),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 14px 34px;
}

.form-panel {
  width: 100%;
  padding: 22px 16px 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.page-head {
  padding: 4px 2px 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.request-form {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid.two {
  grid-template-columns: 1fr;
}

.field,
.check-field {
  display: grid;
  gap: 8px;
}

.field span,
.check-field span {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field select {
  padding-right: 34px;
  font-size: 15px;
}

.field textarea {
  min-height: 156px;
  resize: vertical;
  line-height: 1.5;
}

.readonly-notice {
  width: 100%;
  padding: 14px 15px;
  color: #2f423b;
  background: linear-gradient(135deg, rgba(233, 245, 237, 0.86), rgba(255, 248, 242, 0.78));
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.72;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.readonly-notice p {
  margin: 0;
}

.readonly-notice p + p {
  margin-top: 12px;
}

.field .request-textarea {
  min-height: 132px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(66, 135, 101, 0.14);
}

.password-control {
  position: relative;
  display: grid;
}

.password-control input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  min-width: 52px;
  min-height: 36px;
  padding: 0 10px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(66, 135, 101, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-50%);
}

.password-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(66, 135, 101, 0.14);
}

.field input::placeholder {
  color: #8d9a95;
}

.check-field {
  grid-template-columns: 22px 1fr;
  align-items: start;
  padding: 12px;
  background: linear-gradient(135deg, rgba(233, 245, 237, 0.92), rgba(250, 239, 247, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
}

.check-field input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.check-field span {
  color: #20362d;
  line-height: 1.45;
}

.form-message {
  display: none;
  min-height: 44px;
  padding: 12px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-line;
}

.form-message.show {
  display: block;
}

.form-message.error {
  color: var(--error-text);
  background: var(--error-bg);
}

.form-message.success {
  color: var(--success-text);
  background: var(--success-bg);
}

.form-message.warn {
  color: var(--warn-text);
  background: var(--warn-bg);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 0 18px;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(66, 135, 101, 0.28);
  cursor: pointer;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
  background: var(--accent-strong);
  box-shadow: 0 14px 30px rgba(47, 112, 83, 0.3);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;
  background: #79918a;
  box-shadow: none;
}

.trap-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (min-width: 640px) {
  .page-shell {
    padding: 30px 18px 46px;
  }

  .form-panel {
    padding: 30px 28px 26px;
  }

  .field-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .field-grid.course-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(150px, 0.75fr);
  }

  .readonly-notice {
    padding: 16px 18px;
  }
}
