:root {
  --bg-1: #fff2e7;
  --bg-2: #ffe0d2;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-border: rgba(145, 93, 68, 0.2);
  --text: #2b1f1a;
  --line: #8f6b59;
  --muted: #6b5348;
  --accent: #cc6f4a;
  --accent-dark: #9f4f31;
  --accent-soft: #f3d0bf;
  --shadow: 0 14px 50px rgba(101, 58, 35, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(255, 192, 138, 0.55),
      transparent 32%
    ),
    radial-gradient(
      circle at 88% 20%,
      rgba(250, 167, 126, 0.4),
      transparent 34%
    ),
    linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: "Nunito Sans", "Trebuchet MS", sans-serif;
}

.page {
  display: flex;
  justify-content: center;
  padding: 44px 20px 70px;
}

.giveaway-form {
  width: min(100%, 760px);
  padding: 34px 32px 28px;
  line-height: 1.35;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
}

.title {
  margin: 0 0 12px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

p {
  margin: 0 0 14px;
  font-size: clamp(1rem, 2.6vw, 1.18rem);
}

.lead {
  font-weight: 700;
}

section {
  margin-top: 18px;
  padding-top: 8px;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: fadeStep 260ms ease-out;
}

@keyframes fadeStep {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-status {
  margin: 20px 0 2px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.step-progress {
  height: 8px;
  background: #f4d5c6;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 14px;
}

.step-progress span {
  display: block;
  width: 16.6667%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #e59775 100%);
  border-radius: inherit;
  transition: width 240ms ease;
}

h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  color: #3d2a22;
}

.field-label {
  display: block;
  margin: 10px 0 6px;
  font-size: clamp(1rem, 2.6vw, 1.18rem);
}

.strong {
  font-weight: 700;
}

.muted {
  font-style: italic;
  color: var(--muted);
}

.line-input {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--line);
  background: transparent;
  font: inherit;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  padding: 4px 2px 6px;
  margin: 0 0 12px;
  outline: none;
  transition: border-color 180ms ease;
}

.line-input:focus {
  border-bottom-color: var(--accent);
}

.phone-inline {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.phone-inline-country {
  flex: 0 0 220px;
}

.phone-inline-number {
  flex: 1;
}

.phone-inline .field-label {
  margin-top: 2px;
}

.phone-inline .line-input {
  margin-bottom: 0;
}

.stacked-options {
  margin: 2px 0 12px;
}

.conditional-field {
  transition: opacity 160ms ease;
}

.conditional-field.is-hidden {
  display: none;
}

.stacked-options label,
.single-option {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.16rem);
  margin: 3px 0;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 1px solid #bf9b89;
  border-radius: 4px;
  background: #fff;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 1px solid #bf9b89;
  border-radius: 50%;
  background: #fff;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

input[type="radio"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.note {
  font-style: italic;
  font-weight: 700;
  margin-top: 8px;
}

.closing {
  margin-top: 16px;
}

.step-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.nav-btn {
  border: 1px solid #bf9b89;
  background: #fff6f1;
  color: #4e352a;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.nav-btn.primary {
  background: linear-gradient(
    145deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
  color: #fff;
  border-color: transparent;
}

.nav-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(131, 77, 49, 0.22);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .giveaway-form {
    padding: 24px 18px 22px;
    border-radius: 18px;
  }

  .title {
    font-size: 2.2rem;
  }

  p,
  .field-label,
  .stacked-options label,
  .single-option {
    font-size: 1rem;
  }

  .line-input {
    font-size: 1rem;
    border-bottom-width: 1px;
  }

  .phone-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .phone-inline-country,
  .phone-inline-number {
    flex: 1 1 auto;
  }

  h2 {
    font-size: 1.8rem;
  }

  .step-status {
    font-size: 0.82rem;
  }

  .step-actions {
    justify-content: space-between;
  }

  .nav-btn {
    width: 48%;
    font-size: 0.95rem;
    padding: 12px 8px;
  }
}
