/* SMD Refer a Friend page */
/* Date Created: 2026-07-14 06:57 */
/* Additive only. Built from site :root tokens; mirrors smd-reviews.css. */

/* Kill Webflow hero.v2 320px bottom margin that leaves a blank white void */
.section.hero.v2.smd-refer-hero {
  margin-bottom: 0;
  padding-bottom: 56px;
}

/* Hero title: site soften matches smd-layout-patches display-1; never split "thank-you" */
.smd-refer-nowrap {
  white-space: nowrap;
}

.smd-refer-hero-title {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.12;
  text-wrap: balance;
  hyphens: none;
  -webkit-hyphens: none;
  /* Same clamp as .section.hero.v8 … h1.display-1 in smd-layout-patches.css */
  font-size: clamp(48px, 5.2vw, 72px);
}

@media screen and (max-width: 991px) {
  .smd-refer-hero-title {
    max-width: 18ch;
    font-size: clamp(40px, 7vw, 56px);
  }
}

.smd-refer-hero-lead {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  font-size: 1.125rem;
}

/* Section rhythm */
.section.smd-refer-body {
  padding-top: 40px;
  padding-bottom: 56px;
}

.section.smd-refer-section {
  padding-top: 0;
  padding-bottom: 56px;
}

.smd-refer-intro {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 40px;
}

.smd-refer-intro-lead {
  max-width: 560px;
  margin: 0 auto;
  color: #505051;
  line-height: 1.55;
  font-size: 1.05rem;
}

/* How it works: numbered step cards */
.smd-refer-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .smd-refer-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.smd-refer-step {
  background: #f4f4f4;
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid rgba(21, 16, 16, 0.08);
}

.smd-refer-step__num {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: #11845b;
  margin-bottom: 16px;
}

.smd-refer-step h3 {
  margin-bottom: 10px;
}

.smd-refer-step p {
  color: #505051;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Refer now: two action cards */
.smd-refer-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .smd-refer-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

.smd-refer-card {
  background: #f4f4f4;
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid rgba(21, 16, 16, 0.08);
  display: flex;
  flex-direction: column;
}

.smd-refer-card h3 {
  margin-bottom: 8px;
}

.smd-refer-card__hint {
  color: #505051;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Shared field styling (matches contact input feel) */
.smd-refer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.smd-refer-field label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #505051;
}

.smd-refer-input,
.smd-refer-textarea,
.smd-refer-link-input {
  background: #fff;
  border: 1px solid rgba(21, 16, 16, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #1b1311;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.smd-refer-input::placeholder,
.smd-refer-textarea::placeholder {
  color: #a6a7a8;
}

.smd-refer-textarea {
  min-height: 84px;
  resize: vertical;
}

/* Link + copy row */
.smd-refer-linkrow {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.smd-refer-link-input {
  flex: 1 1 220px;
  min-width: 0;
}

.smd-refer-copy {
  white-space: nowrap;
}

.smd-refer-copied {
  color: #11845b;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 16px;
  min-height: 1.15em;
}

/* Share chips */
.smd-refer-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.smd-refer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(21, 16, 16, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1b1311;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.smd-refer-chip:hover {
  border-color: #11845b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 132, 91, 0.12);
}

.smd-refer-chip svg {
  width: 18px;
  height: 18px;
  color: #11845b;
  flex: none;
}

/* Handoff form */
.smd-refer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.smd-refer-form-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Connect CTA band (dark) */
.smd-refer-cta-band {
  text-align: center;
  margin: 0 auto;
  max-width: 1040px;
  padding: 44px 28px;
  background: #1b1311;
  border-radius: 12px;
  color: #fff;
}

.smd-refer-cta-band h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.smd-refer-cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.smd-refer-cta-band a[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.smd-refer-cta-pending {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6) !important;
  margin-top: 16px !important;
  max-width: 460px;
}

.smd-refer-cta-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45) !important;
  margin: 16px auto 0 !important;
}

/* FAQ (native details) */
.smd-refer-faq {
  max-width: 820px;
  margin: 0 auto;
}

.smd-refer-faq details {
  background: #f4f4f4;
  border: 1px solid rgba(21, 16, 16, 0.08);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.smd-refer-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1b1311;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.smd-refer-faq summary::-webkit-details-marker {
  display: none;
}

.smd-refer-faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: #11845b;
  flex: none;
  transition: transform 0.2s ease;
}

.smd-refer-faq details[open] summary::after {
  transform: rotate(45deg);
}

.smd-refer-faq__body {
  padding: 0 24px 22px;
}

.smd-refer-faq__body p {
  color: #505051;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Bottom CTAs */
.smd-refer-bottom-ctas {
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* Accessibility: focus states */
.smd-refer-chip:focus-visible,
.smd-refer-input:focus-visible,
.smd-refer-textarea:focus-visible,
.smd-refer-link-input:focus-visible,
.smd-refer-faq summary:focus-visible {
  outline: 2px solid #11845b;
  outline-offset: 2px;
}

.smd-refer-input:focus,
.smd-refer-textarea:focus,
.smd-refer-link-input:focus {
  border-color: #11845b;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .smd-refer-chip,
  .smd-refer-faq summary::after {
    transition: none;
  }
  .smd-refer-chip:hover {
    transform: none;
  }
}
