:root {
  color-scheme: light;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: #111111;
  background: #e8e8e8;
  --kb-red: #ce0000;
  --kb-red-dark: #a70000;
  --kb-text: #111111;
  --kb-muted: #555555;
  --kb-border: #dddddd;
  --kb-soft: #f7f7f7;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #e8e8e8;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
}

.panel {
  width: min(100%, 780px);
  margin: 24px 0;
  border: 1px solid var(--kb-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 42px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.brand-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--kb-text);
}

.status {
  margin: 20px 0 0;
  max-width: 56ch;
  color: var(--kb-muted);
  font-size: 18px;
  line-height: 1.55;
}

.intro {
  margin: 20px 0 0;
  color: var(--kb-muted);
  font-size: 18px;
  line-height: 1.55;
}

.withdrawal-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
}

[hidden] {
  display: none !important;
}

label span,
legend,
dt {
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
}

.field-label {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.field-label em {
  color: var(--kb-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
}

.field-label-conditional {
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--kb-text);
  font: inherit;
  line-height: 1.4;
  background: #ffffff;
}

input:focus,
textarea:focus {
  border-color: var(--kb-red);
  outline: 3px solid rgba(206, 0, 0, 0.12);
}

fieldset {
  margin: 0;
  border: 1px solid var(--kb-border);
  border-radius: 8px;
  padding: 16px;
  background: var(--kb-soft);
}

.choice {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.choice input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.choice span {
  font-weight: 400;
  line-height: 1.45;
}

.button-primary,
.button-secondary {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  color: #ffffff;
  background: var(--kb-red);
}

.button-primary:hover {
  background: var(--kb-red-dark);
}

.button-secondary {
  color: var(--kb-text);
  background: #ffffff;
  border-color: #cfcfcf;
}

.notice {
  margin-top: 24px;
  border-radius: 8px;
  padding: 16px;
}

.notice h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.notice p,
.notice ul {
  margin: 0;
  line-height: 1.5;
}

.notice ul {
  padding-left: 20px;
}

.notice-error {
  border: 1px solid #f2b5b5;
  background: #fff4f4;
}

.notice-success {
  border: 1px solid #cfcfcf;
  background: #f7f7f7;
}

.summary {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.summary div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 12px;
}

.summary dd {
  margin: 0;
  color: var(--kb-muted);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  border-top: 1px solid #eeeeee;
  padding-top: 18px;
}

.legal-links a {
  color: var(--kb-muted);
  font-size: 14px;
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--kb-red);
  text-decoration: underline;
}

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

  .panel {
    margin: 0;
    padding: 24px;
  }

  .brand-header {
    align-items: flex-start;
    gap: 14px;
  }

  .brand-logo {
    width: 120px;
  }

  h1 {
    font-size: 32px;
  }

  .status,
  .intro {
    font-size: 16px;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }
}
