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

:root {
  --cream: #fffbf0;
  --orange: #f97316;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --input-bg: #f3f3f3;
  --border: #e0e0e0;
  --error: #dc2626;
  --btn-dark: #1a1a2e;
  --radius: 10px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--cream);
}

.container {
  width: min(100% - 2.5rem, 480px);
  margin-inline: auto;
  padding-bottom: 3rem;
}

.lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.125rem;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.lang-btn {
  min-width: 40px;
  min-height: 36px;
  padding: 0.25rem 0.625rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--text);
  color: #fff;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero-brand {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.hero-brand:hover .hero-title {
  opacity: 0.75;
}

.hero-brand:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.hero-logo {
  display: block;
  margin: 0 auto 1rem;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.slogan {
  margin: 0 0 0.625rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

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

.field-group,
.poll-group {
  margin-bottom: 1.5rem;
}

.field-label,
.poll-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.required {
  color: var(--error);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--input-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: #aaa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: var(--border);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(26, 26, 46, 0.08);
}

input[type="text"].is-invalid,
input[type="email"].is-invalid {
  border-color: var(--error);
  background: #fff;
}

.whatsapp-group {
  margin-top: -0.25rem;
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
}

.checkbox-label input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--text);
}

.poll-group {
  margin-bottom: 2rem;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.option {
  display: block;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.35;
  background: #fff;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.option input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.option input:checked + span {
  border-color: var(--text);
  background: #fff;
  box-shadow: 0 0 0 1px var(--text);
  font-weight: 500;
}

.field-error {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  color: var(--error);
}

.field-error[hidden] {
  display: none;
}

.form-error {
  margin-bottom: 1rem;
  text-align: center;
}

.submit-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  background: var(--btn-dark);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.submit-btn:hover {
  background: #0f0f1a;
}

.submit-btn:active {
  transform: scale(0.99);
}

.submit-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.thanks-section {
  padding: 2rem 0;
}

.thanks-section[hidden] {
  display: none;
}

.thanks-card {
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.thanks-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.thanks-body {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

@media (min-width: 480px) {
  .hero {
    padding-top: 3.5rem;
  }
}
