:root {
  --rp-red: #a70f1d;
  --rp-red-dark: #7f0a15;
  --rp-black: #151515;
  --rp-gray: #62656d;
  --rp-light: #f4f5f7;
  --rp-border: #e3e5ea;
  --rp-white: #ffffff;
  --rp-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --rp-radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f5f6f8 0%, #ffffff 45%, #f5f6f8 100%);
  color: var(--rp-black);
  line-height: 1.5;
}

a {
  color: var(--rp-red);
}

img {
  max-width: 100%;
  height: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(167, 15, 29, 0.28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(20, 20, 20, 0.38), transparent 38%),
    linear-gradient(135deg, #131313 0%, #2a1115 50%, #111111 100%);
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 2px,
      transparent 2px,
      transparent 14px
    );
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.28));
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 20px 62px;
  text-align: center;
}

.logo {
  display: block;
  width: min(430px, 86vw);
  max-height: 150px;
  object-fit: contain;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 16px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(17px, 2.2vw, 22px);
  color: rgba(255,255,255,0.90);
}

.page-shell {
  max-width: 1120px;
  margin: -34px auto 70px;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.notice,
.form-section,
.submit-bar,
.admin-card,
.admin-panel {
  background: #ffffff;
  border: 1px solid rgba(227, 229, 234, 0.9);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
}

.notice {
  padding: 28px;
  margin-bottom: 24px;
}

.notice h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.notice p {
  margin: 10px 0 0;
  color: var(--rp-gray);
}

.voucher-form {
  display: grid;
  gap: 24px;
}

.form-section {
  padding: 28px;
}

.section-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.section-head span {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rp-red);
  color: #ffffff;
  font-weight: 800;
}

.section-head h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--rp-gray);
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #24272d;
}

input,
textarea,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 13px 15px;
  background: #ffffff;
  color: #16191f;
  font: inherit;
  font-weight: 400;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: var(--rp-red);
  box-shadow: 0 0 0 4px rgba(167, 15, 29, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #969ba5;
}

.hint {
  margin: 14px 0 0;
  color: var(--rp-gray);
  font-size: 14px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.choice-card {
  display: block;
  position: relative;
  padding: 20px;
  border: 1px solid var(--rp-border);
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 15, 29, 0.45);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.choice-card input {
  width: 22px;
  height: 22px;
  min-height: auto;
  margin: 0 0 14px;
  accent-color: var(--rp-red);
}

.choice-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
  color: #151515;
}

.choice-card small {
  display: block;
  color: var(--rp-gray);
  font-size: 14px;
  line-height: 1.45;
}

.choice-card:has(input:checked) {
  border-color: var(--rp-red);
  background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
  box-shadow: 0 18px 42px rgba(167, 15, 29, 0.14);
}

.checkline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--rp-border);
  border-radius: 18px;
  background: #f9fafb;
  font-weight: 600;
  color: #2b2f36;
  margin-bottom: 14px;
}

.checkline input {
  width: 22px;
  height: 22px;
  min-height: auto;
  margin-top: 2px;
  flex: 0 0 22px;
  accent-color: var(--rp-red);
}

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

.upload-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--rp-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.upload-card strong {
  display: block;
  margin-bottom: 6px;
  color: #16191f;
  font-size: 16px;
}

.upload-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--rp-gray);
  font-size: 14px;
  line-height: 1.4;
}

.upload-card input[type="file"] {
  width: 100%;
  min-height: auto;
  padding: 12px;
  border: 1px dashed #b8bec9;
  border-radius: 14px;
  background: #f8f9fb;
  cursor: pointer;
}

.upload-card input[type="file"]:hover {
  border-color: var(--rp-red);
  background: #fffafa;
}

.upload-card .file-name {
  display: block;
  margin-top: 10px;
  color: #444953;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.upload-card-wide {
  grid-column: 1 / -1;
}

.upload-box {
  padding: 20px;
  border: 1px dashed #b8bec9;
  border-radius: 18px;
  background: #f8f9fb;
}

.submit-bar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
}

.submit-bar p {
  margin: 0;
  color: var(--rp-gray);
  max-width: 650px;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: none;
  border-radius: 999px;
  background: var(--rp-red);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(167, 15, 29, 0.22);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

button:hover,
.button-link:hover {
  background: var(--rp-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(167, 15, 29, 0.28);
}

.field-error {
  border-color: var(--rp-red) !important;
  box-shadow: 0 0 0 4px rgba(167, 15, 29, 0.12) !important;
}

input[type="checkbox"].field-error {
  outline: 3px solid rgba(167, 15, 29, 0.35);
  outline-offset: 3px;
}

.admin-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(167, 15, 29, 0.09), transparent 34%),
    linear-gradient(180deg, #f4f5f7 0%, #ffffff 100%);
}

.admin-card {
  width: min(560px, calc(100% - 40px));
  margin: 70px auto;
  padding: 32px;
}

.admin-card h1 {
  margin: 0 0 16px;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.admin-card p {
  color: var(--rp-gray);
}

.admin-card form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.admin-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 20px 50px;
}

.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-top h1 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.035em;
}

.admin-top p {
  margin: 0;
  color: var(--rp-gray);
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-panel {
  padding: 18px;
  margin-bottom: 18px;
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form input {
  flex: 1;
  min-width: 260px;
}

.table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--rp-shadow);
  border: 1px solid var(--rp-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  text-align: left;
  font-size: 14px;
}

th {
  background: #f7f7f8;
  font-weight: 800;
  color: #2b2f36;
  white-space: nowrap;
}

td small {
  color: #667085;
  display: block;
  line-height: 1.4;
  margin-top: 3px;
}

.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-ok {
  background: #e9f8ef;
  color: #176b37;
}

.badge-no {
  background: #fff1f2;
  color: #9f1239;
}

.success {
  padding: 14px 16px;
  border-radius: 14px;
  background: #e9f8ef;
  color: #176b37 !important;
  font-weight: 700;
}

.error {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff1f2;
  color: #9f1239 !important;
  font-weight: 700;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .hero__inner {
    padding: 38px 16px 54px;
  }

  .page-shell {
    margin-top: -26px;
    padding: 0 14px;
  }

  .notice,
  .form-section,
  .submit-bar {
    padding: 22px;
  }

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

  .activity-grid {
    grid-template-columns: 1fr;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-card-wide {
    grid-column: auto;
  }

  .submit-bar {
    display: block;
  }

  .submit-bar button {
    width: 100%;
    margin-top: 18px;
  }

  .admin-top {
    display: block;
  }

  .admin-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .admin-actions .button-link {
    width: 100%;
  }

  .search-form {
    display: block;
  }

  .search-form input {
    width: 100%;
    margin-bottom: 10px;
  }

  .search-form button {
    width: 100%;
  }

  table {
    min-width: 1150px;
  }
}

@media (max-width: 560px) {
  .logo {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 16px;
  }

  .notice h2,
  .section-head h2 {
    font-size: 22px;
  }

  .section-head {
    gap: 12px;
  }

  .section-head span {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .notice,
  .form-section,
  .submit-bar,
  .admin-card {
    border-radius: 18px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .checkline {
    padding: 15px;
  }

  button,
  .button-link {
    width: 100%;
    min-height: 54px;
  }
  .danger-button {
  background: #7f0a15 !important;
  box-shadow: 0 12px 28px rgba(127, 10, 21, 0.24) !important;
}

.danger-button:hover {
  background: #5f0710 !important;
}
}