:root {
  --primary: #8a1f9f;
  --primary-dark: #6f1780;
  --primary-soft: #f6ecfb;
  --text: #4b3654;
  --muted: #7c6b83;
  --border: #e5d8ea;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(124, 39, 139, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(138, 31, 159, 0.06), transparent 26%),
    radial-gradient(circle at bottom right, rgba(138, 31, 159, 0.08), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fcf8ff 100%);
  color: var(--text);
}

.bg-shape {
  position: fixed;
  width: 360px;
  height: 180px;
  background: linear-gradient(135deg, var(--primary), #b03ac9);
  z-index: 0;
  filter: drop-shadow(0 15px 25px rgba(138, 31, 159, 0.20));
}

.bg-left {
  top: -55px;
  left: -55px;
  border-bottom-right-radius: 170px;
  border-bottom-left-radius: 40px;
  border-top-right-radius: 100px;
}

.bg-right {
  bottom: -65px;
  right: -65px;
  border-top-left-radius: 180px;
  border-top-right-radius: 40px;
  border-bottom-left-radius: 120px;
}

.page {
  position: relative;
  z-index: 1;
  padding: 32px 16px 56px;
}

.form-card {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 216, 234, 0.85);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  padding: 28px 28px 36px;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.logo {
  width: 112px;
  height: 112px;
}

.hero h1 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1.5;
}

.hero p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.warning {
  background: #fff4dd;
  color: #7a5600;
  border: 1px solid #f1d48f;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.hidden {
  display: none;
}

.section {
  border-top: 1px dashed #e6d4ea;
  padding-top: 22px;
  margin-top: 22px;
}

.compact-section {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.28rem;
  line-height: 1.8;
}

.section-title small {
  color: var(--muted);
  font-size: 0.82em;
}

.badge {
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: bold;
  box-shadow: 0 10px 18px rgba(138, 31, 159, 0.18);
}

.contact-grid,
.options-grid {
  display: grid;
  gap: 14px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 15px 16px;
  cursor: pointer;
  transition: 0.2s ease;
  min-height: 62px;
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: #caa3d4;
  box-shadow: 0 8px 18px rgba(138, 31, 159, 0.08);
}

.option-card input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #bf99ca;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
}

.option-card input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform 0.15s ease-in-out;
  background: var(--primary);
}

.option-card input:checked::before {
  transform: scale(1);
}

.option-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.option-card span {
  line-height: 1.8;
}

.text-input,
.contact-grid label {
  display: block;
}

.text-input span,
.contact-grid label span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
}

input[type="text"],
textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(138, 31, 159, 0.10);
}

.full-width {
  margin-top: 16px;
}

.scale-row {
  display: grid;
  gap: 10px;
}

.scale-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.scale-options {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.scale-options label {
  text-align: center;
  cursor: pointer;
}

.scale-options input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #bf99ca;
  display: block;
  margin: 0 auto 8px;
  position: relative;
  background: #fff;
}

.scale-options input::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: var(--primary);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.scale-options input:checked::before {
  transform: scale(1);
}

.scale-options span {
  color: var(--primary);
  font-weight: bold;
}

.submit-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.submit-btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  padding: 15px 34px;
  min-width: 220px;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(138, 31, 159, 0.22);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.status-message {
  text-align: center;
  margin-top: 16px;
  min-height: 24px;
  color: var(--muted);
}

.status-message.success {
  color: #157347;
}

.status-message.error {
  color: #b42318;
}

@media (max-width: 860px) {
  .two-col,
  .contact-grid,
  .four-col {
    grid-template-columns: 1fr 1fr;
  }

  .scale-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

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

  .form-card {
    padding: 18px 14px 26px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .section-title {
    align-items: flex-start;
  }

  .section-title h2 {
    font-size: 1.05rem;
  }

  .two-col,
  .contact-grid,
  .four-col,
  .scale-options {
    grid-template-columns: 1fr;
  }

  .scale-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
  }

  .scale-options input {
    margin: 0;
  }
}
