:root {
  --primary: #1267d9;
  --primary-dark: #0a3d91;
  --accent: #ffae19;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #dfe6ef;
  --danger: #c62828;
  --success: #137a4b;
  --shadow: 0 14px 40px rgba(15, 55, 105, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR",
    "Apple SD Gothic Neo", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
}

a { color: var(--primary); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 6px 22px rgba(10, 61, 145, .22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--primary-dark);
  background: #fff;
  font-size: 21px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.07);
}

.top-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.top-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  opacity: .96;
}

main {
  width: min(960px, calc(100% - 28px));
  margin: 26px auto 52px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  color: #fff;
  border-radius: 28px;
  background: linear-gradient(135deg, #0a3d91 0%, #1679eb 70%, #38a6ff 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.hero h1 {
  position: relative;
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.25;
  letter-spacing: -1.2px;
}

.hero p {
  position: relative;
  max-width: 700px;
  margin: 0;
  font-size: 16px;
  opacity: .95;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 13px;
  opacity: .9;
}

.card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(30, 65, 110, .07);
}

.card h2 {
  margin: 0 0 14px;
  font-size: 21px;
  letter-spacing: -.5px;
}

.card h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.notice {
  padding: 16px 18px;
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  background: #fff8e9;
}

.success {
  border-left-color: var(--success);
  background: #ecfbf4;
}

.danger {
  border-left-color: var(--danger);
  background: #fff1f1;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: #fff;
}

th, td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f1f5fb;
  font-size: 14px;
}

tr:last-child td { border-bottom: 0; }

ul, ol { padding-left: 22px; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.action-card {
  display: block;
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(30, 65, 110, .06);
  transition: transform .16s ease, box-shadow .16s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(30, 65, 110, .11);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  font-size: 25px;
}

.action-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.action-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  gap: 15px;
  margin-top: 16px;
}

label {
  font-size: 14px;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  color: var(--text);
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(18, 103, 217, .15);
  border-color: var(--primary);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 13px;
  background: #f6f8fb;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button.secondary, .button.secondary {
  color: var(--primary);
  background: #eaf3ff;
}

button.danger-button {
  background: var(--danger);
}

.request-preview {
  display: none;
  margin-top: 15px;
  padding: 15px;
  white-space: pre-wrap;
  border: 1px dashed #9eb7d9;
  border-radius: 14px;
  background: #f6f9fd;
  font-size: 13px;
}

.footer {
  padding: 28px 20px 38px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.small { color: var(--muted); font-size: 13px; }
.required { color: var(--danger); }

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero { padding: 25px 21px; }
  .card { padding: 20px; }
  .action-grid { grid-template-columns: 1fr; }
  .button-row > * { width: 100%; }
}