.deletion-page {
  min-height: 100vh;
  background: #f4f6f7;
}

.deletion-header-inner {
  width: min(100% - 32px, 1120px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.language-switch,
.segmented-control {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  background: #eef1f2;
  border: 1px solid #d9dee4;
  border-radius: 6px;
}

.language-switch button,
.segmented-control button {
  min-height: 32px;
  padding: 4px 12px;
  color: #626a73;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"],
.segmented-control button.is-active {
  color: #20242a;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(24, 31, 37, 0.12);
}

.deletion-main {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 64px 0 72px;
  background: transparent;
  border: 0;
}

.deletion-intro {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-label,
.step-label {
  margin: 0 0 8px;
  color: #176b57;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.deletion-intro h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: 40px;
}

.intro-copy {
  max-width: 680px;
  margin: 0;
  color: #525b64;
  font-size: 18px;
}

.cooldown-notice {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 16px;
  color: #5e4718;
  background: #fff8e7;
  border-left: 4px solid #b37616;
  font-size: 14px;
}

.cooldown-notice strong {
  flex: 0 0 auto;
  color: #463510;
}

.deletion-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(280px, 1fr);
  gap: 64px;
  align-items: start;
}

.deletion-form-panel {
  min-height: 720px;
  padding: 34px 36px;
  background: #ffffff;
  border: 1px solid #d9dee4;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(24, 31, 37, 0.07);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.panel-heading h2,
.success-view h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 24px;
}

.secure-label {
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 4px 8px;
  color: #176b57;
  background: #edf7f3;
  border: 1px solid #c8e3d9;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.form-group {
  margin: 0 0 20px;
}

.form-group label,
.channel-fieldset legend {
  display: block;
  margin-bottom: 8px;
  color: #30363d;
  font-size: 14px;
  font-weight: 700;
}

.channel-fieldset {
  padding: 0;
  border: 0;
}

.segmented-control {
  width: 100%;
}

.segmented-control button {
  min-height: 40px;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  color: #20242a;
  background: #ffffff;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input {
  height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 84px;
  padding: 10px 13px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #176b57;
  box-shadow: 0 0 0 3px rgba(23, 107, 87, 0.12);
}

input:disabled,
textarea:disabled {
  color: #8b939b;
  background: #f2f4f5;
  cursor: not-allowed;
}

input::placeholder,
textarea::placeholder {
  color: #9098a0;
}

.field-hint {
  margin: 6px 0 0;
  color: #747d86;
  font-size: 12px;
  line-height: 1.55;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 152px 42px;
  gap: 8px;
  align-items: center;
}

.captcha-frame {
  width: 152px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #747d86;
  background: #f2f4f5;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  font-size: 12px;
}

.captcha-frame img {
  width: 152px;
  height: 54px;
  object-fit: cover;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #4a535c;
  background: #ffffff;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: #176b57;
  border-color: #176b57;
}

.secondary-button,
.danger-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.secondary-button {
  color: #176b57;
  background: #ffffff;
  border: 1px solid #176b57;
}

.secondary-button:hover:not(:disabled) {
  background: #edf7f3;
}

.danger-button {
  color: #ffffff;
  background: #a43b36;
  border: 1px solid #a43b36;
}

.danger-button:hover:not(:disabled) {
  background: #89312d;
  border-color: #89312d;
}

.secondary-button:disabled,
.danger-button:disabled,
.icon-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.full-width-button {
  width: 100%;
}

.form-divider {
  height: 1px;
  margin: 26px 0 22px;
  background: #e3e7ea;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 20px;
  color: #4c555e;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #a43b36;
}

.form-message {
  margin: 0 0 16px;
  padding: 11px 13px;
  color: #71312d;
  background: #fff2f1;
  border-left: 3px solid #a43b36;
  font-size: 13px;
  line-height: 1.55;
}

.form-message.is-success {
  color: #155d4c;
  background: #edf7f3;
  border-left-color: #176b57;
}

.form-privacy-note {
  margin: 16px 0 0;
  color: #747d86;
  font-size: 12px;
  text-align: center;
}

.deletion-details {
  padding-top: 4px;
}

.deletion-details section {
  padding: 0 0 28px;
  border-bottom: 1px solid #d9dee4;
}

.deletion-details section + section {
  padding-top: 28px;
}

.deletion-details h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 18px;
}

.deletion-details p,
.deletion-details ul {
  color: #5c656e;
  font-size: 14px;
}

.deletion-details ul {
  margin-bottom: 0;
}

.detail-number {
  margin: 0 0 6px !important;
  color: #176b57 !important;
  font-size: 12px !important;
  font-weight: 800;
}

.contact-section {
  border-bottom: 0 !important;
}

.contact-link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
}

.success-view {
  padding: 44px 8px 20px;
  text-align: center;
}

.success-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: #ffffff;
  background: #176b57;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 700;
}

.success-view > p:not(.step-label) {
  max-width: 470px;
  margin: 16px auto 28px;
  color: #5c656e;
}

.result-list {
  margin: 28px 0;
  text-align: left;
  border-top: 1px solid #d9dee4;
}

.result-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #d9dee4;
}

.result-list dt {
  color: #747d86;
  font-size: 13px;
}

.result-list dd {
  margin: 0;
  color: #30363d;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.success-notice {
  padding: 13px 15px;
  color: #155d4c;
  background: #edf7f3;
  border-left: 3px solid #176b57;
  font-size: 13px;
  text-align: left;
}

.deletion-page .site-footer p {
  margin: 3px 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 107, 87, 0.2);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .deletion-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .deletion-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
  }

  .deletion-details section,
  .deletion-details section + section {
    padding: 0 0 24px;
  }
}

@media (max-width: 720px) {
  .deletion-header-inner {
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .legal-nav {
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .deletion-main {
    width: min(100% - 28px, 1120px);
    padding: 40px 0 48px;
  }

  .deletion-intro h1 {
    font-size: 32px;
  }

  .intro-copy {
    font-size: 16px;
  }

  .cooldown-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .deletion-form-panel {
    min-height: 0;
    padding: 28px 22px;
  }

  .deletion-details {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    align-items: flex-end;
  }

  .legal-nav {
    max-width: calc(100% - 92px);
  }

  .language-switch button {
    padding: 4px 9px;
  }

  .deletion-intro h1 {
    font-size: 28px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .captcha-row {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .captcha-frame {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .captcha-row .icon-button {
    grid-column: 2;
    grid-row: 2;
  }

  .result-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .result-list dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .deletion-form-panel,
  .language-switch {
    display: none;
  }

  .deletion-main {
    width: 100%;
    padding: 0;
  }

  .deletion-layout {
    display: block;
  }
}
