* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #2b2b2b;
  color: #1a1a1a;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: blur(14px);
  transform: scale(1.15);
}

.page-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.52));
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 48px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 48px);
}

.panel {
  width: 100%;
  max-width: 460px;
}

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

.wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  color: #d9c9a3;
  line-height: 1;
  margin: 0 0 14px;
}

.wordmark-script {
  font-style: italic;
}

.card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  padding: 28px 24px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #8a7d5c;
  margin: 0 0 12px;
  text-align: center;
  line-height: 1.3;
}

.subtitle {
  font-size: 1rem;
  color: #555;
  margin: 0 0 8px;
  text-align: center;
  line-height: 1.5;
}

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin: 18px 0 6px;
}

form input[type="text"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font-size: 1rem;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

form input[type="text"]:focus {
  outline: none;
  border-color: #1a1a1a;
}

fieldset {
  border: none;
  padding: 0;
  margin: 20px 0 0;
}

legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #ececec;
  color: #1a1a1a;
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice:hover {
  background: #e2e2e2;
}

.choice:has(input:checked) {
  background: #fff;
  border-color: #1a1a1a;
}

.choice:has(input:focus-visible) {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.choice-letter {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid #bbb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.choice:has(input:checked) .choice-letter {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 28px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.btn:hover {
  background: #333;
}

.btn:active {
  background: #000;
}

.btn-outline {
  background: transparent;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
}

.btn-outline:hover {
  background: #f0f0f0;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.cta-row .btn {
  margin-top: 20px;
}

@media (max-width: 480px) {
  .card {
    padding: 24px 18px 28px;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .cta-row {
    flex-direction: column;
  }
}
