@font-face {
  font-family: "Raleway";
  src: url("/public/assets/fonts/Raleway-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("/public/assets/fonts/Raleway-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("/public/assets/fonts/Raleway-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2a1a1d;
  --muted: #7b5a63;
  --cream: #f6dde3;
  --bone: #f8d2dc;
  --accent: #d9778d;
  --accent-dark: #a23f5b;
  --border: #d9a8b5;
  --shadow: 0 24px 60px rgba(42, 26, 29, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Raleway", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(
    circle at top left,
    #f8d2dc 0%,
    #f1bac8 55%,
    #e6a3b5 100%
  );
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 48px 6vw 36px;
  gap: 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 32px;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.2rem, 2vw + 1.9rem, 3.4rem);
  margin: 16px 0 12px;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero__subheading {
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 12px;
  text-align: center;
}

.hero__tone {
  color: var(--muted);
  max-width: 520px;
  margin: 0;
  text-align: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  align-items: center;
}

.brand__logo img {
  width: 96px;
  height: auto;
  display: block;
}

.brand__logo--hero img {
  width: clamp(140px, 20vw, 200px);
}

.brand__wordmark {
  font-weight: 700;
  color: var(--accent-dark);
}

.brand__powered {
  color: var(--muted);
}

.hero__art {
  position: relative;
  width: 100%;
  min-height: 220px;
}

.hero__shape {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(230, 161, 177, 0.25),
    rgba(180, 85, 110, 0.05)
  );
  border: 1px solid rgba(180, 85, 110, 0.12);
}

.hero__shape--offset {
  inset: 24px;
  background: rgba(250, 247, 242, 0.8);
  border-radius: 24px;
  border: 1px dashed rgba(180, 85, 110, 0.25);
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr);
  gap: 32px;
  align-items: start;
}

.form-card,
.value-card {
  background: var(--bone);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-card__header h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  text-align: center;
}

.form-card__header p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.form-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.form-card__headline {
  max-width: 420px;
  text-align: center;
}

.form-success {
  margin-top: 16px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 244, 247, 0.8);
  border: 1px solid rgba(179, 74, 99, 0.2);
  text-align: center;
}

.form-success__logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(179, 74, 99, 0.12);
}

.form-success__logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.form-success h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.form-success p {
  margin: 0;
  color: var(--muted);
}

.stepper {
  margin: 24px 0 32px;
}

.stepper__track {
  width: 100%;
  height: 6px;
  background: rgba(180, 85, 110, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.stepper__progress {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.stepper__labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

form {
  display: grid;
  gap: 20px;
}

.form-error {
  min-height: 22px;
  color: #8b3c2c;
  font-weight: 600;
}

.form-step {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.field-group h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--accent-dark);
}

legend {
  font-weight: 700;
  margin-bottom: 6px;
}

.section-title {
  margin: 8px 0 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
}
label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ink);
}

input,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}

input.is-invalid,
select.is-invalid {
  border-color: #b05b49;
  background: #fff7f2;
}

input:focus,
select:focus {
  outline: 2px solid rgba(230, 161, 177, 0.45);
  border-color: var(--accent);
}

.field-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checkbox input {
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(180, 85, 110, 0.18);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-dark);
}

.btn--solid {
  background: var(--accent-dark);
  color: #fff;
}

.value-card h3 {
  margin-top: 0;
  text-align: center;
}

.value-card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
}

.value-card .btn {
  margin-top: 6px;
}

.value-card {
  text-align: center;
}

.value-card ul {
  list-style-position: inside;
  padding-left: 0;
  display: inline-block;
  text-align: left;
}

.value-card li {
  margin-bottom: 10px;
}

.value-card__note {
  padding: 14px;
  border-radius: 14px;
  background: rgba(194, 154, 91, 0.12);
  color: var(--accent-dark);
  font-weight: 600;
}

.footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: -16px;
}

.footer--centered {
  justify-content: center;
}

.footer__powered {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  width: 100%;
}

.footer__powered img {
  width: 220px;
  height: auto;
  opacity: 0.85;
}

.loading {
  position: fixed;
  inset: 0;
  background: rgba(250, 247, 242, 0.86);
  display: grid;
  place-items: center;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.loading__card {
  background: var(--bone);
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
  justify-items: center;
  box-shadow: var(--shadow);
  text-align: center;
}

.loading__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(122, 93, 47, 0.2);
  border-top-color: var(--accent-dark);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__art {
    min-height: 160px;
  }

  .form-shell {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 32px 5vw 24px;
  }

  .hero__content h1 {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
  }

  .brand__logo--hero img {
    width: clamp(120px, 45vw, 170px);
  }

  .form-card,
  .value-card {
    padding: 22px;
  }

  .stepper__labels {
    display: none;
  }

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

  .btn {
    width: 100%;
  }

  .checkbox {
    align-items: center;
  }

  .field-group {
    padding: 14px;
  }
}
