/**
 * Estate Agent Referrals — page-only layout (Tailwind + theme tokens handle the rest).
 * Scoped under .ear-page to avoid collisions.
 */

.ear-page {
  color: #1a1b2e;
  -webkit-font-smoothing: antialiased;
}

/* Hero: subtle grid + radial accents (no Unsplash — matches reference design) */
.ear-page .ear-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 480px at 78% 18%, rgba(247, 168, 37, 0.16), transparent 60%),
    radial-gradient(800px 400px at 12% 90%, rgba(247, 168, 37, 0.08), transparent 60%),
    linear-gradient(170deg, #0f0f33 0%, #171749 60%, #1d2057 100%);
}

.ear-page .ear-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 70% 40%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 30%, transparent 70%);
  pointer-events: none;
}

/* Glass timeline panel + progress bars */
.ear-page .ear-timeline-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 28px;
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ear-page .ear-tp-bar {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ear-page .ear-tp-bar:last-of-type {
  border-bottom: 0;
}

.ear-page .ear-tp-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.ear-page .ear-tp-seg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.ear-page .ear-tp-bar.ear-tp-typical .ear-tp-seg:nth-child(1) {
  background: rgba(255, 255, 255, 0.18);
  flex: 3;
}

.ear-page .ear-tp-bar.ear-tp-typical .ear-tp-seg:nth-child(2) {
  background: rgba(255, 255, 255, 0.14);
  flex: 4;
}

.ear-page .ear-tp-bar.ear-tp-typical .ear-tp-seg:nth-child(3) {
  background: rgba(255, 255, 255, 0.1);
  flex: 3;
}

.ear-page .ear-tp-bar.ear-tp-wis .ear-tp-seg:nth-child(1) {
  background: var(--color-accent-orange, #f7a825);
  color: var(--color-primary-dark-blue, #171749);
  flex: 2;
  font-weight: 500;
}

.ear-page .ear-tp-bar.ear-tp-wis .ear-tp-seg:nth-child(2) {
  background: #ffc55a;
  color: var(--color-primary-dark-blue, #171749);
  flex: 3;
  font-weight: 500;
}

.ear-page .ear-tp-bar.ear-tp-wis .ear-tp-seg:nth-child(3) {
  background: rgba(255, 255, 255, 0.1);
  flex: 2;
}

/* Reasons grid (2nd row: card 4 col1, card 5 spans 2 cols) */
.ear-page .ear-reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(23, 23, 73, 0.12);
  border: 1px solid rgba(23, 23, 73, 0.12);
  border-radius: 18px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ear-page .ear-reasons-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
  }

  .ear-page .ear-reasons-grid .ear-rc:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

.ear-page .ear-rc {
  background: #fff;
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  position: relative;
  transition: background 0.2s ease;
}

@media (min-width: 768px) {
  .ear-page .ear-rc {
    padding: 36px 30px 32px;
    min-height: 300px;
  }
}

.ear-page .ear-rc:hover {
  background: #fbfaf4;
}

.ear-page .ear-rc-feature {
  background: var(--color-primary-dark-blue, #171749);
  color: #fff;
}

.ear-page .ear-rc-feature:hover {
  background: var(--color-primary-dark-blue, #171749);
}

.ear-page .ear-rc-feature h3,
.ear-page .ear-rc-feature .ear-rc-text {
  color: #fff;
}

.ear-page .ear-rc-feature .ear-rc-note {
  color: rgba(255, 255, 255, 0.5);
}

/* How it works — horizontal progress track */
.ear-page .ear-steps {
  position: relative;
  padding: 30px 0 0;
}

.ear-page .ear-steps-track {
  display: none;
}

@media (min-width: 1024px) {
  .ear-page .ear-steps-track {
    display: block;
    position: absolute;
    left: 6%;
    right: 6%;
    top: 54px;
    height: 2px;
    background: rgba(23, 23, 73, 0.18);
    z-index: 0;
  }

  .ear-page .ear-steps-track::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 35%;
    background: var(--color-accent-orange, #f7a825);
  }
}

.ear-page .ear-steps-grid {
  position: relative;
  z-index: 1;
}

/* CF7 inside registration panel */
.ear-page .ear-reg-form-wrap .wpcf7 {
  margin: 0;
}

.ear-page .ear-reg-form-wrap .wpcf7-form-control-wrap,
.ear-page .ear-reg-form-wrap .wpcf7-form-control {
  display: block;
  width: 100%;
}

.ear-page .ear-reg-form-wrap input[type="text"],
.ear-page .ear-reg-form-wrap input[type="email"],
.ear-page .ear-reg-form-wrap input[type="tel"],
.ear-page .ear-reg-form-wrap select,
.ear-page .ear-reg-form-wrap textarea {
  border-radius: 10px;
}
