:root {
  --violet-900: #5b3d8e;
  --violet-800: #7759d7;
  --violet-700: #7759d7;
  --violet-600: #8a69e3;
  --violet-500: #8b5cf6;
  --violet-100: #ede9fe;
  --violet-050: #f5f3ff;
  --page-bg: #faf9ff;
  --card: #ffffff;
  --text: #2e2255;
  --muted: #6b6390;
  --border: #ece8fb;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(93, 63, 214, 0.1);
  --font: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--page-bg);
  min-height: 100vh;
  padding: 32px 16px 64px;
  -webkit-font-smoothing: antialiased;
}

.dots {
  position: fixed;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(#d9cffb 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.8;
  pointer-events: none;
}
.dots--tr {
  top: 24px;
  right: 24px;
}
.dots--bl {
  bottom: 24px;
  left: 24px;
}

.card {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px 44px 44px;
  overflow: hidden;
}

.back-home {
  position: absolute;
  top: 24px;
  left: 28px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--violet-200);
  border-radius: 50%;
  color: var(--violet-600);
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.back-home:hover {
  background: var(--violet-050);
  transform: translateX(-2px);
}

.brand {
  text-align: center;
  margin-bottom: 26px;
}

.brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--violet-600);
  line-height: 1;
}

.brand__logo svg {
  width: 40px;
  height: 40px;
}

.brand__tagline {
  margin: 8px 0 0;
  color: var(--violet-800);
  font-size: 15px;
  font-weight: 600;
}

.page-head {
  text-align: center;
  margin-bottom: 22px;
}

.page-head__icon,
.field__icon,
.notice__icon,
.option__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--violet-100);
  color: var(--violet-600);
  border-radius: 12px;
}

.page-head__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 12px;
}

h1 {
  font-size: 30px;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--violet-900);
}

.page-head__sub {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--violet-050);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 auto 30px;
  max-width: 560px;
}

.notice[hidden] {
  display: none;
}

.notice__icon {
  width: 38px;
  height: 38px;
  flex: none;
}

.notice strong {
  display: block;
  font-size: 14.5px;
  color: var(--violet-900);
}

.notice span {
  font-size: 13.5px;
  color: var(--muted);
}

.field {
  margin-bottom: 26px;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--violet-900);
  margin-bottom: 10px;
}

.help {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.4px solid var(--violet-500);
  color: var(--violet-500);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  font-weight: 700;
}

.control {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 14px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.control--stack {
  align-items: flex-start;
  flex-direction: row;
}

.control:focus-within {
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px rgba(139, 109, 242, 0.14);
}

.field__icon {
  width: 38px;
  height: 38px;
  flex: none;
}

select,
input[type="text"],
input[type="datetime-local"],
textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--violet-900);
  padding: 8px 0;
  appearance: none;
}

select:invalid,
textarea::placeholder,
input::placeholder {
  color: #a49cc0;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.control__chevron {
  color: var(--violet-500);
  flex: none;
}

.counter {
  text-align: right;
  font-size: 12.5px;
  color: var(--muted);
  padding: 0 14px 10px;
}

.hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  background: var(--violet-050);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--violet-800);
}

.hint svg {
  color: var(--violet-500);
  flex: none;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--violet-900);
  cursor: pointer;
}

.checkbox input {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--violet-500);
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
  position: relative;
}

.checkbox input:checked {
  background: var(--violet-600);
  border-color: var(--violet-600);
}

.checkbox input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.option:hover {
  border-color: var(--violet-500);
}

.option__icon {
  width: 38px;
  height: 38px;
  flex: none;
}

.option__text {
  flex: 1;
}

.option__title {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--violet-900);
}

.option__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.option input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.6px solid var(--violet-500);
  margin-top: 12px;
  flex: none;
  cursor: pointer;
  position: relative;
}

.option input:checked {
  border-color: var(--violet-600);
}

.option input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--violet-600);
}

.option:has(input:checked) {
  border-color: var(--violet-600);
  background: var(--violet-050);
}

.attach {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-800);
  font-size: 13.5px;
  margin-bottom: 12px;
}

.dropzone {
  border: 1.6px dashed #cfc3f5;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: #fdfcff;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--violet-600);
  background: var(--violet-050);
}

.dropzone__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: var(--violet-800);
  font-size: 15px;
}

.dropzone__title span {
  font-weight: 500;
  color: var(--muted);
}

.dropzone p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.files {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.files li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--violet-050);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
}

.files button {
  border: none;
  background: transparent;
  color: var(--violet-600);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.submit {
  width: 100%;
  margin-top: 30px;
  border: none;
  border-radius: var(--radius);
  padding: 17px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--violet-700), var(--violet-500));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 26px rgba(109, 74, 236, 0.32);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(109, 74, 236, 0.38);
}

.footnote {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--violet-800);
  line-height: 1.55;
}

.footnote svg {
  color: var(--violet-500);
  flex: none;
}

.error {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  color: #d6455d;
}

.error.is-visible {
  display: block;
}

.success {
  display: none;
  margin-top: 20px;
  border-radius: var(--radius);
  border: 1px solid #cdeedd;
  background: #f2fbf6;
  color: #1f7a4d;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.success.is-visible {
  display: block;
}

.success code {
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 640px) {
  .card {
    padding: 28px 20px 32px;
    border-radius: 20px;
  }
  .brand__logo {
    font-size: 34px;
  }
  h1 {
    font-size: 24px;
  }
  .options {
    grid-template-columns: 1fr;
  }
  .dots {
    display: none;
  }
}
