@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #52606d;
  --accent: #0f8a8b;
  --accent-strong: #0a5c5c;
  --highlight: #f6c453;
  --panel: rgba(255, 255, 255, 0.85);
  --line: rgba(15, 138, 139, 0.2);
  --bg: #f3f5f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f8f1da, var(--bg) 50%),
    radial-gradient(circle at bottom right, #cce8e6, transparent 55%);
  min-height: 100vh;
  padding: 48px 20px 80px;
  position: relative;
  overflow-x: hidden;
}

.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.35;
  z-index: 0;
}

.orb-left {
  background: radial-gradient(circle, #f6c453, transparent 70%);
  top: -120px;
  left: -140px;
}

.orb-right {
  background: radial-gradient(circle, #0f8a8b, transparent 70%);
  bottom: -180px;
  right: -140px;
}

.hero {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease-out;
}

.lang-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 138, 139, 0.2);
  margin-bottom: 16px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: white;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--accent-strong);
  margin: 0 0 12px;
  font-weight: 600;
}

h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0 0 16px;
  line-height: 1.1;
}

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

.content {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.panel {
  width: min(980px, 100%);
  background: var(--panel);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(16, 24, 32, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  animation: fadeUp 1s ease-out 0.1s both;
}

.panel-header {
  margin-bottom: 24px;
}

.steps {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 600;
}

.step {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 138, 139, 0.08);
  color: var(--accent-strong);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.step.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent-strong);
}

.progress {
  height: 4px;
  background: rgba(15, 138, 139, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  transition: width 0.4s ease;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: none;
}

fieldset.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

legend {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.section-title {
  font-weight: 600;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  color: var(--muted);
}

label.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 138, 139, 0.2);
  background: white;
  color: var(--ink);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 138, 139, 0.15);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 138, 139, 0.08);
  color: var(--accent-strong);
  border: 1px solid rgba(15, 138, 139, 0.15);
}

.chip input {
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.btn.ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid rgba(15, 138, 139, 0.3);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 138, 139, 0.2);
}

.form-message {
  min-height: 22px;
  color: var(--accent-strong);
  font-weight: 600;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  body {
    padding: 32px 16px 60px;
  }

  .panel {
    padding: 24px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
