:root {
  --primary: #0b5fff;
  --accent: var(--primary);
  --accent-600: #094bcc;
  --accent-100: #e9f1ff;
  --text: #0f172a;
  --muted: #475569;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui,-apple-system,'Segoe UI',Inter,Roboto,Arial,sans-serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 28px 40px;
}

@media (max-width: 640px) {
  .container {
    padding: 24px 18px 32px;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px 24px 24px;
  margin: 18px 0;
}

.card h1 {
  margin: 6px 0 18px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--primary);
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.form-grid {
  display: grid;
  gap: 18px;
}

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

@media (max-width: 780px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

label.required::after {
  content: " *";
  color: #dc2626;
  margin-left: 2px;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
  width: 100%;
  height: 46px;
  padding: 10px 12px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #fff;
  outline: none;
  font-size: 15px;
  line-height: 1.25;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.15);
}

.inline-note {
  display: flex;
  align-items: center;
  gap: 8px;
}

.help {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-btn {
  position: relative;
}

.radio-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-btn label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid #d9e2ec;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 110px;
  height: 44px;
  text-align: center;
}

.radio-btn input[type="radio"]:checked + label {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn-lite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  height: 46px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: 0 20px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: 0 8px 20px rgba(11, 95, 255, 0.18);
}

.btn-lite:hover {
  background: var(--accent-600);
  border-color: var(--accent-600);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: var(--accent);
  border-color: #cdd6f8;
  box-shadow: none;
}

@media (max-width: 560px) {
  .actions {
    flex-direction: column;
  }

  .btn-lite {
    width: 100%;
    min-width: 0;
  }
}

.mut {
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.alert-lite {
  background: #fff8e1;
  border: 1px solid #fcd34d;
  color: #78350f;
  padding: 14px 16px;
  border-radius: 16px;
  margin-top: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.messages {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-100);
  border: 1px solid #c7d2fe;
  color: #1e3a8a;
}

input[type="date"]::-webkit-date-and-time-value {
  min-height: auto;
  padding: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  margin-right: 4px;
}

@supports (-webkit-touch-callout: none) {
  input[type="date"] {
    height: 46px;
    min-height: 46px;
    padding: 10px 12px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .notice,
  .actions,
  .btn-lite.btn-ghost {
    display: none !important;
  }

  main.container {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .card {
    box-shadow: none;
    border-color: #d1d5db;
  }
}
