/* ========================= REFERRAL — HERO ========================= */
.ref-hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(42% 34% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 72%),
    #08090a;
}

/* Hero grid: left copy + right form */
.ref-hero__grid {
  position: relative;
  z-index: 10;
  max-width: var(--size-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 12rem 2.25rem 6rem;
}

.ref-hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.ref-hero__eyebrow {
  font-family: 'Nord', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  line-height: 1.02;
  color: var(--accent);
}

.ref-hero__heading {
  font-family: 'Tomato Grotesk', sans-serif;
  font-weight: 800;
  font-size: 6.5rem;
  line-height: 0.9;
  letter-spacing: -0.195rem;
  color: var(--fg);
  margin-top: 0.75rem;
  max-width: 100%;
  text-wrap: balance;
}

.ref-hero__heading-gradient {
  background: linear-gradient(270deg, #02d1ad 7.4%, #00e950 33.85%, #1292fe 69.74%, #e08af4 101.85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ref-hero__subtitle {
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--gray);
  margin-top: 1.25rem;
  max-width: 30rem;
}

.ref-hero__badge {
  margin-top: 2.5rem;
  padding: 0.625rem 1.5rem;
  border: 1px solid rgba(216, 252, 20, 0.2);
  border-radius: 100px;
  font-family: 'Nord', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  color: var(--accent);
  background: rgba(216, 252, 20, 0.05);
}

/* Form card inside hero */
.ref-hero__form-wrap {
  min-width: 0;
  padding: 2.25rem 2.25rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid #1b1c1d;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #111213 0%, #0a0b0c 100%);
}

.ref-hero__form-wrap .ref-form__eyebrow {
  margin-bottom: 1.5rem;
}

.ref-hero__form-wrap .ref-form__progress {
  margin-top: 1.5rem;
}

/* Decorative elements */
.ref-hero__deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}

.ref-hero__deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ref-hero__deco--coin {
  right: 2.5rem;
  top: 8.5rem;
  width: 8.5rem;
  height: 8.5rem;
  z-index: 11;
  opacity: 0.92;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.28));
  animation: ref-float 6s ease-in-out infinite;
}

.ref-hero__deco--crystal {
  left: 4rem;
  top: 20rem;
  width: 14rem;
  height: 14rem;
  z-index: 5;
  mix-blend-mode: lighten;
  animation: ref-float 8s ease-in-out infinite reverse;
}

@keyframes ref-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5rem); }
}

/* Hero responsive */
@media (max-width: 991px) {
  .ref-hero__deco { display: none; }
  .ref-hero__grid { grid-template-columns: 1fr; padding: 10rem 1.5rem 4rem; gap: 3rem; }
  .ref-hero__heading { font-size: 5rem; letter-spacing: -0.15rem; }
}

@media (max-width: 767px) {
  .ref-hero__grid { padding: 8rem 1.25rem 3rem; gap: 2.5rem; }
  .ref-hero__eyebrow { font-size: 0.75rem; letter-spacing: 0.06rem; }
  .ref-hero__heading { font-size: clamp(2.75rem, 11vw, 3.25rem); letter-spacing: -0.06rem; }
  .ref-hero__heading > span { display: block; }
  .ref-hero__subtitle { font-size: 1rem; line-height: 1.6; }
  .ref-hero__badge { font-size: 0.6875rem; padding: 0.5rem 1.125rem; }
  .ref-hero__form-wrap { padding: 1.75rem 1.5rem 1.5rem; }
}

/* ========================= REFERRAL — VALUE PROP ========================= */
.ref-value {
  position: relative;
  overflow: clip;
  background: #08090a;
  width: min(100%, var(--size-container));
  margin: 0 auto;
  padding: 2rem 2.25rem 0;
}

.ref-value__card {
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ff8e1b 0%, #f8280d 100%);
  padding: 3.5rem 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.ref-value__left {
  min-width: 0;
}

.ref-value__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'Tomato Grotesk', sans-serif;
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 0.92;
  letter-spacing: -0.135rem;
  color: #08090a;
}

.ref-value__title-gradient {
  color: transparent;
  background-image: linear-gradient(270deg, #08090a 0%, #3a1200 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.ref-value__tagline {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: #08090a;
}

.ref-value__tagline strong {
  font-weight: 600;
}

.ref-value__lead {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.625rem;
  color: rgba(8, 9, 10, 0.72);
}

.ref-value__lead strong {
  color: #08090a;
  font-weight: 600;
}

.ref-value__closing {
  margin-top: 1.5rem;
  font-family: 'Test Sohne', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.5rem;
  color: #08090a;
}

.ref-value__disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(8, 9, 10, 0.12);
  font-family: 'Test Sohne', sans-serif;
  font-size: 0.8125rem;
  color: rgba(8, 9, 10, 0.44);
}

/* Winning Tips (inside orange card) */
.ref-value__tips {
  padding: 2.25rem 2.25rem 2.5rem;
  border-radius: 0.5rem;
  background: rgba(8, 9, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ref-value__tips-eyebrow {
  font-family: 'Nord', sans-serif;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  color: var(--accent);
}

.ref-value__tips-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ref-value__tips-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.875rem;
  align-items: start;
}

.ref-value__tips-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: rgba(216, 252, 20, 0.08);
  color: var(--accent);
  flex-shrink: 0;
}

.ref-value__tips-item-text {
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5rem;
  color: var(--gray-light);
  padding-top: 0.25rem;
}

.ref-value__tips-item-text strong {
  color: var(--fg);
  font-weight: 600;
}

.ref-value__tips-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Test Sohne', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.375rem;
  color: var(--gray);
}

/* Value responsive */
@media (max-width: 991px) {
  .ref-value { padding: 1.5rem 1.5rem 0; }
  .ref-value__card { padding: 2.75rem 2.5rem 2rem; grid-template-columns: 1fr; gap: 2rem; }
  .ref-value__title { font-size: clamp(3rem, 8vw, 4rem); }
}

@media (max-width: 767px) {
  .ref-value { padding: 1.25rem 1.25rem 0; }
  .ref-value__card { padding: 2rem 1.5rem 1.75rem; }
  .ref-value__title { font-size: clamp(2.25rem, 10vw, 3rem); letter-spacing: -0.06rem; }
  .ref-value__tagline { font-size: 1.0625rem; line-height: 1.5; }
  .ref-value__lead { font-size: 0.9375rem; line-height: 1.5; }
  .ref-value__tips { padding: 1.5rem 1.25rem; }
}

/* ========================= REFERRAL — HOW IT WORKS ========================= */
.ref-steps {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(42% 24% at 50% 0%, rgba(216, 252, 20, 0.03) 0%, rgba(216, 252, 20, 0) 72%),
    #08090a;
}

.ref-steps__inner {
  width: min(100%, var(--size-container));
  margin: 0 auto;
  padding: 7rem 2.25rem 8rem;
}

.ref-steps__header {
  max-width: 36rem;
}

.ref-steps__eyebrow {
  font-family: 'Nord', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.065rem;
  color: var(--accent);
}

.ref-steps__title {
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 3.25rem;
  line-height: 0.97;
  letter-spacing: -0.065rem;
  color: var(--fg);
  margin-top: 1rem;
}

.ref-steps__title-gradient {
  color: transparent;
  background-image: linear-gradient(270deg, #02d1ad 7.41%, #00e950 33.85%, #1292fe 69.74%, #e08af4 101.85%);
  background-clip: text;
  -webkit-background-clip: text;
}

.ref-steps__subtitle {
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--gray);
  margin-top: 1rem;
}

.ref-steps__terms-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: 'Nord', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.065rem;
  color: var(--accent);
  transition: opacity 220ms ease;
}

.ref-steps__terms-link:hover {
  opacity: 0.7;
}

.ref-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.ref-steps__step {
  position: relative;
  padding: 2rem 1.75rem 2.25rem;
  border: 1px solid #1b1c1d;
  border-radius: 0.5rem;
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #0e0f10 0%, #08090a 100%);
  transition: border-color 320ms ease, transform 320ms ease;
}

.ref-steps__step:hover {
  border-color: rgba(216, 252, 20, 0.15);
  transform: translateY(-2px);
}

.ref-steps__step-number {
  font-family: 'Nord', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  color: #434345;
}

.ref-steps__step-icon {
  margin-top: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: rgba(216, 252, 20, 0.08);
  color: var(--accent);
}

.ref-steps__step-title {
  margin-top: 1.25rem;
  font-family: 'Test Sohne', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--fg);
}

.ref-steps__step-desc {
  margin-top: 0.5rem;
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5rem;
  color: var(--gray);
}

/* 4-column variant (creator flow) */
.ref-steps__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Creator reward callout */
.ref-steps__reward {
  margin-top: 1.5rem;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(216, 252, 20, 0.3);
  border-radius: 0.75rem;
  background:
    radial-gradient(60% 120% at 20% 50%, rgba(216, 252, 20, 0.08) 0%, rgba(216, 252, 20, 0) 70%),
    linear-gradient(180deg, #0e0f10 0%, #08090a 100%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ref-steps__reward-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: rgba(216, 252, 20, 0.12);
  color: #d8fc14;
}

.ref-steps__reward-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ref-steps__reward-title {
  font-family: 'Tomato Grotesk', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.04rem;
  color: #f7f8f8;
  margin: 0;
}

.ref-steps__reward-desc {
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: #8a8f98;
  margin: 0;
}

.ref-steps__criteria {
  margin-top: 1rem;
  font-family: 'Test Sohne', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #8a8f98;
  text-align: center;
}

.ref-steps__criteria strong {
  color: #d0d6e0;
  font-weight: 600;
}

/* Steps responsive */
@media (max-width: 1199px) {
  .ref-steps__grid { grid-template-columns: repeat(3, 1fr); }
  .ref-steps__grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .ref-steps__inner { padding: 5rem 1.5rem 6rem; }
  .ref-steps__title { font-size: clamp(2.5rem, 8vw, 3.125rem); }
  .ref-steps__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3rem; }
  .ref-steps__reward { padding: 1.75rem 1.75rem; gap: 1.25rem; }
  .ref-steps__reward-title { font-size: 1.75rem; }
}

@media (max-width: 767px) {
  .ref-steps__inner { padding: 4rem 1.25rem 5rem; }
  .ref-steps__title { font-size: clamp(2rem, 10vw, 2.875rem); letter-spacing: -0.04rem; }
  .ref-steps__grid { grid-template-columns: 1fr; gap: 1rem; }
  .ref-steps__grid--4 { grid-template-columns: 1fr; }
  .ref-steps__step { padding: 1.5rem 1.25rem 1.75rem; }
  .ref-steps__reward { flex-direction: column; align-items: flex-start; padding: 1.5rem 1.25rem; gap: 1rem; }
  .ref-steps__reward-title { font-size: 1.625rem; }
}

/* ========================= REFERRAL — FORM ========================= */
.ref-form__eyebrow {
  font-family: 'Nord', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.065rem;
  color: var(--accent);
}

.ref-form__form {
  position: relative;
}

/* Type toggle (Client / Creator) */
.ref-form__type-toggle {
  display: flex;
  gap: 0;
  min-width: 0;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ref-form__type-btn {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--gray);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ref-form__type-btn.is-active {
  background: var(--accent);
  color: var(--bg);
}

.ref-form__type-btn:not(.is-active):hover {
  color: var(--fg);
}

/* Variant containers */
.ref-form__variant {
  display: none;
}

.ref-form__variant.is-active {
  display: block;
}

/* Value prop layout: tabs left, panel right */
.ref-value__wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.ref-value__tabs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ref-value__tab {
  position: relative;
  padding: 0 0 24px 0;
  border: none;
  background: transparent;
  font-family: 'PP Neue Montreal', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ref-value__tab-title {
  display: block;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--gray);
  transition: color 0.3s ease;
  margin-bottom: 6px;
}

.ref-value__tab-desc {
  display: block;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
}

.ref-value__tab.is-active .ref-value__tab-title {
  color: var(--fg);
}

.ref-value__tab.is-active .ref-value__tab-desc {
  color: var(--gray);
}

.ref-value__tab:hover .ref-value__tab-title {
  color: var(--fg);
}

/* Horizontal track under each tab */
.ref-value__tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

/* Progress fill bar (horizontal) */
.ref-value__tab .ref-value__tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #f8280d, #ff8e1b);
  border-radius: 2px;
  z-index: 1;
}

.ref-value__tab.is-active .ref-value__tab-progress {
  animation: refTabFill 10s linear forwards;
}

.ref-value__tab.is-completed .ref-value__tab-progress {
  width: 100%;
  animation: none;
}

.ref-value__panels {
  min-width: 0;
}

.ref-value__panel {
  display: none;
}

.ref-value__panel.is-active {
  display: grid;
}

@media (max-width: 991px) {
  .ref-value__wrapper {
    grid-template-columns: 1fr;
  }
  .ref-value__tabs {
    flex-direction: row;
    gap: 0;
  }
  .ref-value__tab {
    padding: 0 0 16px 0;
    flex: 1;
  }
  .ref-value__tab-title { font-size: 18px; }
  .ref-value__tab-desc { font-size: 13px; }
}

@keyframes refTabFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* How it works tabs */
.ref-steps__tabs {
  display: flex;
  gap: 8px;
  margin-top: 1.5rem;
}

.ref-steps__tab-btn {
  padding: 8px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.25s ease;
}

.ref-steps__tab-btn:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.3);
}

.ref-steps__tab-btn.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* How it works panels */
.ref-steps__panel {
  display: none;
}

.ref-steps__panel.is-active {
  display: grid;
}

.ref-steps__panel.is-creator-panel.is-active {
  display: block;
}

.ref-form__step {
  display: none;
}

.ref-form__step.is-active {
  display: block;
  animation: ref-fade-in 320ms ease;
}

@keyframes ref-fade-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

.ref-form__step-label {
  font-family: 'Nord', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.ref-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.ref-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ref-form__field--checkbox {
  margin-bottom: 0.25rem;
}

.ref-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  cursor: pointer;
  font-family: 'Test Sohne', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #d0d6e0;
  user-select: none;
}

.ref-form__checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ref-form__checkbox-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  position: relative;
  margin-top: 1px;
}

.ref-form__checkbox:hover .ref-form__checkbox-box {
  border-color: rgba(216, 252, 20, 0.6);
}

.ref-form__checkbox input:checked + .ref-form__checkbox-box {
  background: #d8fc14;
  border-color: #d8fc14;
}

.ref-form__checkbox input:checked + .ref-form__checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #08090a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ref-form__checkbox input:focus-visible + .ref-form__checkbox-box {
  outline: 2px solid #d8fc14;
  outline-offset: 2px;
}

.ref-form__checkbox input.is-invalid + .ref-form__checkbox-box {
  border-color: #ff5a5a;
}

.ref-form__checkbox-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ref-form__label {
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fg);
}

.ref-form__required {
  color: var(--accent);
}

.ref-form__input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #1b1c1d;
  border-radius: 0.375rem;
  background: #0e0f10;
  color: var(--fg);
  font-family: 'Test Sohne', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 220ms ease, box-shadow 220ms ease;
  outline: none;
}

.ref-form__input::placeholder {
  color: #434345;
}

.ref-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 252, 20, 0.08);
}

.ref-form__input.is-invalid {
  border-color: #f8280d;
  box-shadow: 0 0 0 3px rgba(248, 40, 13, 0.08);
}

.ref-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2.5rem;
}

.ref-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 10rem;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.25rem;
  font-family: 'Test Sohne', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.03rem;
  line-height: 1.02;
  border: none;
  cursor: pointer;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.ref-form__btn:hover {
  transform: translateY(-1px);
}

.ref-form__btn--next,
.ref-form__btn--submit {
  background: var(--accent);
  color: #000;
}

.ref-form__btn--next:hover,
.ref-form__btn--submit:hover {
  background: #e5ff4d;
  box-shadow: 0 0.75rem 1.75rem rgba(216, 252, 20, 0.2);
}

.ref-form__btn--back {
  background: transparent;
  border: 1px solid #1b1c1d;
  color: var(--gray-light);
}

.ref-form__btn--back:hover {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.18);
}

/* Success state */
.ref-form__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.ref-form__success.is-active {
  display: flex;
  animation: ref-fade-in 400ms ease;
}

.ref-form__success-icon {
  margin-bottom: 1.5rem;
}

.ref-form__success-title {
  font-family: 'Tomato Grotesk', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 0.9;
  letter-spacing: -0.075rem;
  color: var(--fg);
}

.ref-form__success-desc {
  margin-top: 1rem;
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--gray);
  max-width: 24rem;
}

/* Progress dots */
.ref-form__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.ref-form__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 100px;
  background: #1b1c1d;
  transition: background 240ms ease, width 240ms ease;
}

.ref-form__dot.is-active {
  width: 1.5rem;
  background: var(--accent);
}

/* Form responsive */
@media (max-width: 767px) {
  .ref-form__input { padding: 0.875rem 1rem; font-size: 1rem; }
  .ref-form__actions { flex-direction: column-reverse; }
  .ref-form__btn { width: 100%; }
}

/* ========================= REFERRAL — CTA BANNER ========================= */
.ref-cta {
  position: relative;
  overflow: clip;
  border-top: 1px solid #1b1c1d;
}

.ref-cta__inner {
  width: min(100%, var(--size-container));
  margin: 0 auto;
  padding: 5rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background:
    radial-gradient(60% 100% at 80% 50%, rgba(216, 252, 20, 0.04) 0%, rgba(216, 252, 20, 0) 72%),
    #08090a;
}

.ref-cta__title {
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 0.97;
  letter-spacing: -0.05rem;
  color: var(--fg);
  max-width: 28rem;
}

.ref-cta__subtitle {
  margin-top: 0.75rem;
  font-family: 'Test Sohne', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--gray);
  max-width: 32rem;
}

.ref-cta__btn {
  flex: 0 0 auto;
}

/* CTA responsive */
@media (max-width: 991px) {
  .ref-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 1.5rem;
    gap: 2rem;
  }
  .ref-cta__title { font-size: clamp(2rem, 6vw, 2.5rem); }
}

@media (max-width: 767px) {
  .ref-cta__inner { padding: 3.5rem 1.25rem; }
  .ref-cta__title { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .ref-cta__btn { width: 100%; }
}

/* ========================= SMOOTH SCROLL ========================= */
html {
  scroll-behavior: smooth;
}
