:root {
  color-scheme: light;
  --ink: #123047;
  --muted: #5f7485;
  --line: #d9e7ea;
  --soft-line: #e8f1f3;
  --teal: #0f766e;
  --teal-dark: #075f5b;
  --blue: #0f6c9c;
  --surface: #ffffff;
  --soft: #ecf8f6;
  --danger: #b42318;
  --success: #0f766e;
}

* { box-sizing: border-box; }
html { background: #f5fafb; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.7;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(15, 108, 156, 0.1), transparent 38%),
    #f7fbfc;
}

button, input, select, textarea { font: inherit; }
a { color: var(--blue); }

.delete-header {
  color: #fff;
  background:
    linear-gradient(126deg, rgba(7, 95, 91, 0.98), rgba(15, 118, 110, 0.96) 48%, rgba(15, 108, 156, 0.96)),
    #0f766e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.topbar,
.hero,
.page-main,
.page-footer {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong { font-size: 1rem; font-weight: 900; }
.brand small { color: #d9fffb; font-size: 0.8rem; direction: ltr; text-align: start; }

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-links a {
  color: #e8fffd;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 28px;
  align-items: end;
  padding: 60px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #c8f7f2;
  font-weight: 900;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e2faf8;
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.hero-facts {
  display: grid;
  gap: 8px;
}

.hero-facts div {
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-facts span,
.hero-facts strong {
  display: block;
}

.hero-facts span { color: #d7f5f2; font-size: 0.82rem; font-weight: 800; }
.hero-facts strong { margin-top: 2px; color: #fff; font-size: 1.02rem; }

.page-main { padding: 30px 0 70px; }

.request-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.request-summary,
.delete-form,
.info-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(18, 48, 71, 0.07);
}

.request-summary {
  position: sticky;
  top: 18px;
  padding: 24px;
}

.request-summary h2 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
}

.request-summary p { margin: 0; color: var(--muted); }

.language-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
}

.language-box > span {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 900;
}

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

.language-switcher button,
.secondary-button,
.primary-button {
  min-height: 44px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.language-switcher button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.language-switcher button.is-active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.notice {
  margin-top: 18px;
  padding: 16px;
  border-inline-start: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--soft);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-dark);
}

.delete-form {
  padding: 26px;
}

fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

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

label span {
  display: block;
  margin-bottom: 7px;
  color: #344f5f;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input,
select { padding: 0 12px; }
textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.choice-grid,
.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card,
.category-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 86px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefe;
}

.choice-card input,
.category-card input,
.confirm-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 4px;
  accent-color: var(--teal);
}

.choice-card strong,
.category-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.choice-card small,
.category-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.section-help {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #bfe3df;
  border-radius: 8px;
  background: #f1fbf9;
}

.confirm-row span {
  margin: 0;
  color: #174b4a;
}

.error-box,
.success-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
}

.error-box {
  border: 1px solid #f4b8b0;
  color: #8a1f16;
  background: #fff0ee;
  font-weight: 800;
}

.success-box {
  border: 1px solid #a6d8d2;
  color: #174b4a;
  background: #eefbf8;
}

.success-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--success);
}

.success-box p { margin: 0 0 12px; }
.success-box textarea { background: #fff; direction: ltr; text-align: left; }

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0 18px;
}

.primary-button {
  border: 1px solid var(--teal);
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--teal-dark);
  background: #fff;
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.info-grid article {
  padding: 22px;
}

.info-grid h2 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 1.05rem;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.page-footer a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 800;
}

[dir="ltr"] .brand small,
[dir="ltr"] .success-box textarea {
  text-align: left;
}

@media (max-width: 860px) {
  .hero,
  .request-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .request-summary {
    position: static;
  }

  .hero {
    padding: 42px 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    padding: 14px 0;
  }

  .topbar-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  .field-grid,
  .choice-grid,
  .category-list {
    grid-template-columns: 1fr;
  }

  .delete-form,
  .request-summary,
  .info-grid article {
    padding: 18px;
  }

  .action-row > * {
    width: 100%;
  }
}
