/* ==========================================================================
   Palmer Property Management · Student Resident Application
   Editorial Southern Architecture Palette (Warm Cream · Deep Forest · Brass)
   ========================================================================== */

:root {
  --bg-cream: #f5f1e8;
  --bg-cream-deep: #ebe4d5;
  --surface: #ffffff;
  --surface-soft: #faf8f4;
  --ink: #1d1b18;
  --ink-muted: #5f5a52;
  --ink-subtle: #8c857b;
  --forest: #1f3b30;
  --forest-hover: #162b23;
  --forest-soft: #eef4f1;
  --brass: #b08d57;
  --brass-soft: #f6efe2;
  --border: #e3dccf;
  --border-strong: #cfc5b4;
  --danger: #b4362c;
  --danger-soft: #fdf2f1;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(29, 27, 24, 0.04);
  --shadow-md: 0 12px 32px rgba(29, 27, 24, 0.07), 0 2px 6px rgba(29, 27, 24, 0.04);
  --shadow-lg: 0 20px 50px rgba(29, 27, 24, 0.1);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sig: 'Alex Brush', cursive;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg-cream);
  min-height: 100vh;
  line-height: 1.55;
  position: relative;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(176, 141, 87, 0.13), transparent 42%),
    radial-gradient(circle at 88% 15%, rgba(31, 59, 48, 0.09), transparent 45%),
    linear-gradient(180deg, #f7f4ec 0%, #efe9dc 100%);
}

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(247, 244, 236, 0.85);
  border-bottom: 1px solid rgba(207, 197, 180, 0.55);
}

.topbar-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 59, 48, 0.15);
}

.brand-sep, .brand-loc {
  color: var(--ink-muted);
  font-weight: 500;
}

.topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--forest);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.topbar-contact:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

/* Main Container */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Hero Card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.banner-frame {
  background: #f5f3ee;
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  justify-content: center;
}

.banner-img {
  width: 100%;
  max-width: 740px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.hero-body {
  padding: 26px 32px 28px;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}

.hero-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  margin: 0 auto 20px;
  max-width: 560px;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.pill svg {
  color: var(--brass);
  flex-shrink: 0;
}

/* Application Shell */
.app-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Progress Header */
.progress-wrap {
  padding: 22px 32px 18px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.progress-label {
  font-weight: 700;
  color: var(--forest);
}

.progress-saved {
  font-size: 0.76rem;
  color: var(--ink-subtle);
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-cream-deep);
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--forest) 0%, #2e5c4a 65%, var(--brass) 100%);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-dots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.step-dot {
  appearance: none;
  border: none;
  background: transparent;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--ink-subtle);
  font-family: inherit;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.step-dot span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-muted);
  transition: all 0.2s ease;
}

.step-dot em {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 600;
}

.step-dot.active span {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(31, 59, 48, 0.14);
}

.step-dot.active em {
  color: var(--forest);
}

.step-dot.completed span {
  background: var(--forest-soft);
  border-color: var(--forest);
  color: var(--forest);
}

/* Form Body */
form {
  padding: 30px 32px 32px;
}

.step-panel {
  display: none;
  animation: fadeSlide 0.28s ease;
}

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

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header {
  margin-bottom: 24px;
}

.step-header h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.15;
}

.step-header p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* Fields */
.field-grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.label-row label {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.label-sub {
  font-weight: 400;
  color: var(--ink-subtle);
}

.req {
  color: var(--brass);
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #a69f95;
}

input:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3.5px rgba(31, 59, 48, 0.11);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--ink-subtle);
}

.error-msg {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--danger);
  min-height: 0;
}

/* Quick-fill chips */
.quick-chip {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--brass-soft);
  color: #7c5c2b;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quick-chip:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}

/* Radio Pill Group (Year in school) */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 0.18s ease;
}

.choice-pill:hover span {
  border-color: var(--forest);
  color: var(--forest);
}

.choice-pill input:checked + span {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 59, 48, 0.2);
}

/* Visual Property Selector Cards */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.property-card {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.property-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.property-photo-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-cream-deep);
}

.property-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.property-card:hover .property-photo-wrap img {
  transform: scale(1.04);
}

.property-check {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(29, 27, 24, 0.2);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.2s ease;
}

.property-price {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29, 27, 24, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.property-price span {
  font-weight: 400;
  opacity: 0.82;
  font-size: 0.74rem;
}

.property-info {
  padding: 12px 14px 14px;
}

.property-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.property-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.property-card:has(input:checked) {
  border-color: var(--forest);
  background: var(--forest-soft);
  box-shadow: 0 0 0 3px rgba(31, 59, 48, 0.14);
}

.property-card:has(input:checked) .property-check {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

/* Yes / No Segmented Rows */
.yesno-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.yesno-row {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.yesno-q {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  flex: 1 1 260px;
}

.segmented {
  display: inline-flex;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.segmented label {
  margin: 0;
  cursor: pointer;
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 0.18s ease;
}

.segmented input[value="No"]:checked + span {
  background: var(--forest);
  color: #fff;
}

.segmented input[value="Yes"]:checked + span {
  background: var(--brass);
  color: #fff;
}

.yesno-row .error-msg {
  flex-basis: 100%;
  margin-top: 0;
}

.conditional-field {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--brass-soft);
  border: 1px solid #dfd0b4;
  animation: fadeSlide 0.25s ease;
}

/* Review Summary Card */
.review-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}

.review-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-subtle);
}

.review-item-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
  word-break: break-word;
}

/* Signature Box */
.sign-box {
  background: #fdfcf9;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 22px;
}

.legal-copy {
  margin: 0 0 18px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.sig-preview-wrap {
  margin-top: 16px;
  padding: 18px 20px 14px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}

.sig-preview-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 8px;
}

.sig-preview {
  font-family: var(--font-sig);
  font-size: 2.35rem;
  line-height: 1.15;
  color: var(--forest);
  min-height: 46px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.sig-preview.signed {
  opacity: 1;
}

.sig-line {
  height: 1px;
  background: var(--border-strong);
  margin: 6px 0 8px;
}

.sig-date {
  font-size: 0.76rem;
  color: var(--ink-subtle);
}

/* Buttons */
.form-actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.spacer {
  flex: 1;
}

.btn {
  appearance: none;
  border: none;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary,
.btn-submit {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 59, 48, 0.22);
}

.btn-primary:hover,
.btn-submit:hover {
  background: var(--forest-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(31, 59, 48, 0.28);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Confirmation Screen */
.confirm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 42px 32px;
  text-align: center;
  animation: fadeSlide 0.35s ease;
}

.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 26px rgba(31, 59, 48, 0.25);
}

.confirm-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--forest);
}

.confirm-sub {
  margin: 0 auto 28px;
  max-width: 520px;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.next-steps {
  text-align: left;
  max-width: 540px;
  margin: 0 auto 28px;
  padding: 20px 24px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.next-steps h3 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
}

.next-steps ol {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.next-steps strong {
  color: var(--ink);
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.confirm-help {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-subtle);
}

.confirm-help a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  text-align: center;
  padding: 0 20px 36px;
  font-size: 0.78rem;
  color: var(--ink-subtle);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .brand-sep, .brand-loc {
    display: none;
  }
  .container {
    padding: 16px 14px 48px;
  }
  .hero-body {
    padding: 20px 18px 22px;
  }
  .progress-wrap {
    padding: 16px 18px 14px;
  }
  .step-dot em {
    display: none;
  }
  form {
    padding: 22px 18px 24px;
  }
  .field-grid.two-col,
  .property-grid,
  .review-card {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-wrap: nowrap;
  }
  .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
  .confirm-card {
    padding: 32px 20px;
  }
}

/* ==========================================================================
   Cover Hub (/), Topbar Nav & Referral Page (/referral) Extensions
   ========================================================================== */

.brand-link {
  text-decoration: none;
}

.brand-link:hover .brand-name {
  color: var(--forest);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.topbar-nav-link:hover {
  color: var(--forest);
  background: var(--forest-soft);
}

.container-wide {
  max-width: 960px;
}

.topbar-inner {
  max-width: 960px;
}

/* Cover Hub Action Cards */
.hub-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.hub-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.hub-card-primary {
  background: var(--forest);
  color: #fff;
  border: 1.5px solid var(--forest);
  box-shadow: 0 12px 28px rgba(31, 59, 48, 0.2);
}

.hub-card-primary:hover {
  transform: translateY(-3px);
  background: var(--forest-hover);
  box-shadow: 0 16px 36px rgba(31, 59, 48, 0.28);
}

.hub-card-referral {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.hub-card-referral:hover {
  transform: translateY(-3px);
  border-color: var(--brass);
  background: #fdfbf6;
  box-shadow: var(--shadow-md);
}

.hub-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #f3e8d2;
  margin-bottom: 12px;
}

.hub-card-badge.badge-brass {
  background: var(--brass-soft);
  color: #825f2c;
}

.hub-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.12;
}

.hub-card-primary h2 {
  color: #fff;
}

.hub-card-referral h2 {
  color: var(--forest);
}

.hub-card p {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

.hub-card-primary p {
  color: rgba(255, 255, 255, 0.84);
}

.hub-card-referral p {
  color: var(--ink-muted);
}

.hub-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.hub-cta.cta-brass {
  color: var(--forest);
}

.hub-card:hover .hub-cta svg {
  transform: translateX(3px);
}

.hub-cta svg {
  transition: transform 0.2s ease;
}

/* Communities Showcase on Cover Hub */
.communities-section {
  margin-top: 8px;
}

.section-heading {
  text-align: center;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--forest);
}

.section-heading p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.showcase-card:hover {
  transform: translateY(-3px);
  border-color: var(--forest);
  box-shadow: var(--shadow-md);
}

.showcase-card:hover .property-photo-wrap img {
  transform: scale(1.04);
}

.showcase-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.showcase-loc {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 4px;
}

.showcase-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.showcase-body p {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
}

.showcase-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--forest);
}

/* Referral Page Form Elements */
.section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 4px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 26px 0;
}

select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3.5px rgba(31, 59, 48, 0.11);
}

.field.has-error select {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--forest);
  flex-shrink: 0;
  cursor: pointer;
}

.sign-box a,
.site-footer a {
  color: var(--forest);
  font-weight: 600;
}

a.btn {
  text-decoration: none;
}

@media (max-width: 760px) {
  .hub-actions,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-nav-link {
    display: none;
  }
}
