:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #0ea5b7;
  --danger: #e11d48;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.topbar {
  min-height: 112px;
  background: #ffffff;
  border-bottom: 0;
  display: flex;
  align-items: center;
}

.topbar__inner {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  justify-content: center;
  position: relative;
}

.brand {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
}

.brand__logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #22c55e, #0ea5b7);
}

.brand__name {
  font-weight: 400;
  font-size: 25px;
  color: #111827;
  letter-spacing: 0.2px;
}

.brand__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.container {
  max-width: 460px;
  margin: 0px auto 28px;
  padding: 0 14px;
}

.card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.card__title {
  margin: 0;
  padding: 8px 14px 0;
  font-size: 18px;
  font-weight: 800;
}

.card__body {
  padding: 0 14px 14px;
  line-height: 1.65;
  font-size: 15px;
  font-weight: 400;
}

.card__body p {
  margin: 0;
}

.card__body p:last-child {
  margin-bottom: 0;
}

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

.list-block {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  margin-bottom: 10px;
}

.list-block__title {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 15px;
}

.list-block ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.list-block li {
  margin: 1px 0;
  line-height: 1.55;
  padding-left: 2px;
}

.list-block li::before {
  content: "•";
  display: inline-block;
  width: 0px;
  margin-left: -12px;
  margin-right: 8px;
}

.form {
  margin-top: 14px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.form__section {
  border-top: 0;
}

.form__section:first-child {
  border-top: 0;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
}

.row--head {
  background: #f3f4f6;
}

.row__label {
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.row__label::before {
  content: ">";
  color: #ef4444;
  font-weight: 900;
}

.row__required {
  font-size: 12px;
  color: #ef4444;
  font-weight: 700;
}

.row--content {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  outline: none;
  background: #fff;
}

.input-group {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.input-group .input {
  border: 0;
  border-radius: 0;
}

.input-group__divider {
  height: 1px;
  background: #e5e7eb;
}

.input-group .input:focus {
  box-shadow: none;
}

.input-group:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.input:focus,
.textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  padding: 14px;
  border-top: 0;
}

.btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #16b8cb, #0ea5b7);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn--danger {
  background: #e11d48;
}

.error {
  color: #b91c1c;
  font-size: 12px;
}

.fineprint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  z-index: 1000;
}

 .modal[hidden] {
   display: none;
 }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 0;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 535px;
  max-height: calc(100vh - 20px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal__title {
  padding: 16px 26px 12px;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.12;
  border-bottom: 1px solid #e5e7eb;
}

.modal__text {
  padding: 28px 26px 20px;
  color: #333;
  line-height: 1.32;
  font-size: 17px;
  overflow-y: auto;
}

.modal__text p {
  margin: 0 0 14px;
}

.modal__section-title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.32;
}

.modal__emphasis {
  color: #111;
  font-weight: 800;
}

.modal__list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.modal__list li {
  position: relative;
  margin-bottom: 3px;
  padding-left: 15px;
  font-size: 17px;
  line-height: 1.32;
}

.modal__list li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.modal__actions {
  border-top: 1px solid #e5e7eb;
}

.modal__panel .btn {
  width: calc(100% - 52px);
  height: 56px;
  margin: 8px 26px 14px;
  border-radius: 6px;
  background: #ed0000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 400;
  font-size: 18px;
}

@media (max-width: 600px) {
  .modal {
    padding: 2px;
  }

  .modal__panel {
    max-width: calc(100vw - 4px);
    border-radius: 16px;
  }

  .modal__title {
    padding: 15px 24px 12px;
    font-size: 28px;
    line-height: 1.12;
  }

  .modal__text {
    padding: 22px 24px 18px;
    font-size: 17px;
    line-height: 1.32;
  }

  .modal__panel .btn {
    width: calc(100% - 48px);
    margin: 8px 24px 12px;
  }
}
