﻿:root {
  --bg: #f7fafc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #e97245;
  --brand-2: #b94e2a;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.15), rgba(247, 250, 252, 1));
  line-height: 1.5;
}

.container {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.required {
  color: #dc2626;
}

.progress {
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 220ms ease;
}

form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.5rem 2.5rem;
  box-shadow: var(--shadow);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

label > input,
label > textarea,
label > select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(233, 114, 69, 0.3);
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fff;
  transition: border 150ms ease, box-shadow 150ms ease;
}

label > input:focus,
label > textarea:focus,
label > select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

textarea {
  resize: vertical;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

legend {
  padding: 0 0.5rem;
  font-weight: 600;
}

fieldset label {
  display: grid;
  grid-template-columns: min-content 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

fieldset input[type="checkbox"],
fieldset input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--brand);
  margin-top: 0.15rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

#nextBtn:hover {
  background: var(--brand);
  color: #fff;
}

#prevBtn:hover {
  background: #000;
  color: #fff;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.primary {
  background: var(--brand);
  color: #fff;
}

button.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.15);
}

.hidden {
  display: none !important;
}

.form-message {
  margin-top: 1.75rem;
  padding: 1.4rem;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.07);
}

.success {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 540px) {
  .form-actions {
    justify-content: stretch;
  }

  button {
    width: 100%;
  }
}

.thankyou {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  gap: 2.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.thankyou__content {
  max-width: 520px;
}

.thankyou h1 {
  font-size: 4.4rem;
  letter-spacing: 0.5px;
  margin: 0;
  font-family: 'Great Vibes', cursive;
}

.thankyou__subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 1.2rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

.thankyou__secondary {
  margin-top: 1.8rem;
  color: var(--muted);
}

.thankyou__secondary a {
  color: var(--brand);
  font-weight: 600;
}
