/* ===== REFER A NEIGHBOR PAGE ===== */
.refer-page {
  background: var(--sapphire-dark);
  min-height: 100vh;
}

/* Hero */
.refer-hero {
  background: var(--sapphire);
  color: var(--white);
  padding: 88px 0 72px;
  text-align: center;
}

.refer-hero .section-eyebrow {
  color: var(--chrome-solid);
  margin-bottom: 14px;
}

.refer-hero .section-title {
  color: var(--white);
  margin-bottom: 18px;
}

.refer-explainer {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Lookup card */
.refer-lookup {
  padding: 0 24px 96px;
  max-width: 620px;
  margin: -48px auto 0;
  position: relative;
  z-index: 1;
}

.refer-card {
  background: #14365c;
  border-radius: 16px;
  padding: 40px 36px 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* Form */
.refer-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.refer-field {
  display: flex;
  flex-direction: column;
}

.refer-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.refer-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.9375rem;
  font-family: var(--font);
  transition: border-color 0.15s, background-color 0.15s;
}

.refer-input:focus {
  outline: none;
  border-color: var(--chrome-solid);
  background-color: rgba(192,200,208,0.06);
}

.refer-input::placeholder {
  color: rgba(255,255,255,0.32);
}

.refer-submit {
  margin-top: 6px;
  padding: 14px 24px;
  font-weight: 700;
  border-radius: 8px;
}

.refer-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.refer-error {
  text-align: center;
  font-size: 0.9375rem;
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
}

/* Result panel */
.refer-result {
  margin-top: 28px;
  padding: 28px 24px 24px;
  background: var(--sapphire-dark);
  border: 2px solid #16a34a;
  border-radius: 12px;
}

.refer-confirm {
  text-align: center;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 20px;
}

.refer-confirm code,
.refer-code-big {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--chrome-solid);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.refer-confirm code {
  font-size: 1rem;
}

.refer-code-big {
  display: inline-block;
  font-size: 1.625rem;
  background: rgba(255,255,255,0.06);
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.2);
}

.refer-share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.refer-btn {
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.refer-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
}

.refer-hint code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: rgba(255,255,255,0.6);
  word-break: break-all;
}

/* Responsive */
@media (max-width: 640px) {
  .refer-hero { padding: 64px 0 56px; }
  .refer-card { padding: 28px 22px 24px; }
  .refer-share-row { flex-direction: column; }
  .refer-share-row .refer-btn { width: 100%; }
}
