*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #111111;
  color: #f0f0f0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  padding-bottom: 48px;
}

/* Animation area — 25px from top, full width like original */
#animation-container {
  position: relative;
  margin: 25px 0 0;
  width: 100%;
  height: min(38vh, 300px);
  min-height: 220px;
  overflow: hidden;
  background: #111111;
}

#animation-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Buttons — 75px below animation */
.actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(calc(100% - 32px), 520px);
  margin: 75px auto 0;
  padding: 0 16px;
}

/* Apple-style liquid glass buttons */
.glass-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 72px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 32px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.glass-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.glass-btn:active {
  transform: scale(0.98);
}

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

.glass-btn--pink {
  background: rgba(255, 78, 179, 0.2);
  border-color: rgba(255, 78, 179, 0.45);
}

.glass-btn--green {
  background: rgba(201, 255, 172, 0.2);
  border-color: rgba(201, 255, 172, 0.45);
}

.glass-btn--neutral {
  background: rgba(255, 255, 255, 0.1);
}

.glass-btn__title {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.glass-btn__hint {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.82;
}

.glass-btn--countdown .glass-btn__hint {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 1;
}

/* Status banner */
.status-banner {
  width: min(calc(100% - 32px), 520px);
  margin: 20px auto 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(33, 255, 242, 0.12);
  border: 1px solid rgba(33, 255, 242, 0.35);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.45;
}

.status-banner--warn {
  background: rgba(255, 180, 78, 0.14);
  border-color: rgba(255, 180, 78, 0.4);
}

.status-banner--ok {
  background: rgba(201, 255, 172, 0.14);
  border-color: rgba(201, 255, 172, 0.4);
}

/* Form section */
.form-section {
  width: min(calc(100% - 32px), 520px);
  margin: 32px auto 0;
  padding: 0 16px 24px;
}

.form-section__header h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
}

.form-section__header p {
  margin: 0 0 20px;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.85;
}

.info-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.question {
  margin: 0;
  padding: 16px;
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.question legend,
.question > label {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.choices label:has(input:checked) {
  background: rgba(33, 255, 242, 0.12);
  border-color: rgba(33, 255, 242, 0.35);
}

.choices input[type="radio"],
.choices input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #21fff2;
  flex-shrink: 0;
}

.choices--chips {
  gap: 10px;
}

.chip {
  text-align: left;
}

.question--text textarea {
  width: 100%;
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  resize: vertical;
}

.question--text textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.glass-btn--submit {
  margin-top: 8px;
  min-height: 64px;
  background: rgba(33, 255, 242, 0.18);
  border-color: rgba(33, 255, 242, 0.45);
  font-size: 1rem;
  font-weight: 600;
}

.submit-feedback {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
}

.submit-feedback--ok {
  color: #9fffad;
}

.submit-feedback--error {
  color: #ff8eb3;
}

@media (min-width: 480px) {
  .choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .choices--chips {
    grid-template-columns: 1fr;
  }
}
