/*
  Hales Lead Wizard (Service Area pages)
  Goal: match the Climate Control membership wizard feel (centered card, clean inputs, full-width primary button).
*/

#hales-service-area-lead {
  /* Ensure in-page jumps don't land under the header/nav. */
  scroll-margin-top: 160px;
}

/* -------------------------------------------------
   Membership-first callout (inside the wizard)
   ------------------------------------------------- */

.hales-lead-form__club {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-left: 4px solid #d4af37;
  color: #011635;
  font-size: 14px;
  line-height: 1.5;
}

.hales-lead-form__club-text {
  margin-bottom: 8px;
  font-weight: 600;
}

.hales-lead-form__club-headline {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #011635;
}

.hales-lead-form__club-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  font-size: 14px;
  font-weight: 500;
}

.hales-lead-form__club-benefits li {
  padding-left: 20px;
  margin-bottom: 6px;
  position: relative;
}

.hales-lead-form__club-benefits li:before {
  content: '•';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.hales-lead-form__club-button {
  display: inline-block;
  padding: 10px 14px;
  background: #d4af37;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
  margin-bottom: 10px;
}

.hales-lead-form__club-button:hover {
  background: #e67e2f;
  text-decoration: none;
}

.hales-lead-form__club-secondary {
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.hales-lead-form__club-link {
  color: #1d87ba;
  text-decoration: none;
  font-weight: 600;
}

.hales-lead-form__club-link:hover {
  text-decoration: underline;
}

.hales-lead-form__club--prominent {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 18px 16px;
}

/* /schedule-service/ has no masthead overlap; keep the lead card fully below the sticky header. */
#hales-service-area-lead.hales-service-area-lead--schedule-service {
  scroll-margin-top: 220px;
}

/* -------------------------------------------------
   Lead section layout (used on /service-areas/* and /schedule-service/)
   ------------------------------------------------- */

.hales-service-area-lead {
  position: relative;
  z-index: 5;
  margin-top: -30px;
  padding: 0 0 18px;
}

.hales-service-area-lead--schedule-service {
  /* Schedule-service does not have a masthead section to "catch" the overlap. */
  margin-top: 200px;
}

.hales-service-area-lead__card {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,252,255,0.95) 100%);
  border: 1px solid rgba(1, 22, 53, 0.08);
  border-radius: 24px;
  box-shadow: 
    0 25px 60px rgba(1, 22, 53, 0.12),
    0 10px 25px rgba(1, 22, 53, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hales-service-area-lead__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #042452, #d4af37, #042452);
  background-size: 200% 100%;
  animation: cardGradientShift 8s ease infinite;
}

@keyframes cardGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hales-service-area-lead__card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 30px 70px rgba(1, 22, 53, 0.14),
    0 15px 35px rgba(1, 22, 53, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
  .hales-service-area-lead {
    margin-top: -20px;
  }

  .hales-service-area-lead--schedule-service {
    margin-top: 170px;
  }

  .hales-service-area-lead__card {
    grid-template-columns: 1fr;
  }
}

.hales-service-area-lead__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #011635;
  opacity: 0.9;
  font-size: 12px;
  margin-bottom: 8px;
}

.hales-service-area-lead__copy h2 {
  margin: 0 0 8px;
}

.hales-service-area-lead__copy p {
  margin: 0;
}

.hales-service-area-lead__proof {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 6px;
}

.hales-service-area-lead__proof li {
  position: relative;
  padding-left: 22px;
}

.hales-service-area-lead__proof li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: #011635;
  /* Some global theme styles add a small colored dot to list-item ::before.
     Hard override here so our proof list is checkmarks only (no extra bullets/dots). */
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  display: inline-block;
  line-height: 1;
}

.hales-service-area-lead__proof li {
  list-style: none !important;
}

.hales-service-area-lead__proof li::marker {
  content: none !important;
  color: transparent;
}

.hales-service-area-lead__trustbar {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(1, 22, 53, 0.14);
  background: rgba(212, 175, 55, 0.07);
  font-weight: 800;
  color: #042452;
}

.hales-service-area-lead__trustbar-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hales-service-area-lead__trustbar-stars {
  color: #d4af37;
  letter-spacing: 0.08em;
}

.hales-service-area-lead__trustbar-rating {
  font-size: 16px;
}

.hales-service-area-lead__trustbar-count {
  opacity: 0.9;
}

.hales-service-area-lead__trustbar-link {
  color: #d4af37;
  text-decoration: none;
  font-weight: 800;
}

.hales-service-area-lead__trustbar-link:hover {
  text-decoration: underline;
}

.hales-service-area-lead__actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.hales-service-area-lead__trust {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(1, 22, 53, 0.10);
  background: rgba(1, 22, 53, 0.03);
  padding: 12px 14px;
}

.hales-service-area-lead__trust-title {
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.hales-service-area-lead__trust-list {
  display: grid;
  gap: 10px;
}

.hales-service-area-lead__trust-item {
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.10);
  background: rgba(212, 175, 55, 0.06);
  padding: 10px 12px;
}

.hales-service-area-lead__trust-stars {
  color: #d4af37;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 6px;
}

.hales-service-area-lead__trust-quote {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}

.hales-service-area-lead__trust-author {
  margin-top: 6px;
  font-weight: 800;
  font-size: 13px;
  opacity: 0.9;
}

.hales-service-area-lead__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(1, 22, 53, 0.12);
  text-decoration: none;
  font-weight: 800;
  color: #042452;
  background: rgba(212, 175, 55, 0.06);
}

.hales-service-area-lead__action:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.hales-service-area-lead__action--call {
  background: rgba(212, 175, 55, 0.10);
  border-color: rgba(212, 175, 55, 0.28);
}

.hales-service-area-lead__action--call:hover {
  border-color: rgba(212, 175, 55, 0.48);
}

.hales-service-area-lead__action--text {
  background: rgba(1, 22, 53, 0.04);
  border-color: rgba(1, 22, 53, 0.14);
}

.hales-service-area-lead__action--text:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.hales-service-area-lead__action--club {
  background: rgba(212, 175, 55, 0.06);
}

/* -------------------------------------------------
   Emergency intent override
   - Triggered by JS (src/service context)
   - Bias toward call-first for urgent repair contexts
   ------------------------------------------------- */

.hales-service-area-lead--emergency .hales-service-area-lead__kicker {
  color: #9b2b00;
}

.hales-service-area-lead--emergency .hales-service-area-lead__action--call {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.10));
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.22);
}

.hales-lead-form__progress {
  text-align: center;
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 10px;
}

.hales-lead-form__question {
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 12px;
  color: #0c1630;
}

.hales-lead-form {
  max-width: 920px;
  margin: 0 auto;
}

.hales-lead-form__wizard {
  display: flex;
  justify-content: center;
}

.hales-lead-form__card {
  width: 100%;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(10, 25, 60, 0.10);
  padding: 28px 28px 24px;
  position: relative;
}

.hales-lead-form__reset {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  color: rgba(12, 22, 48, 0.55);
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
}

.hales-lead-form__reset:hover {
  color: rgba(12, 22, 48, 0.85);
}

.hales-lead-form__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.hales-lead-form__icon .dashicons {
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 44px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: #d4af37;
}

.hales-lead-form__card-title {
  text-align: center;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  margin: 6px 0 8px;
  color: #0c1630;
}

.hales-lead-form__card-subtitle {
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(12, 22, 48, 0.70);
  margin: 0 0 16px;
}

.hales-lead-form__label {
  display: block;
  font-weight: 700;
  margin: 10px 0 6px;
  color: #0c1630;
}

.hales-lead-form__input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(12, 22, 48, 0.18);
  padding: 14px 14px;
  font-size: 16px;
}

.hales-lead-form__input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.hales-lead-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hales-lead-form__actions .btn {
  flex: 1 1 220px;
}

.hales-lead-form__actions .btn.btn-primary {
  width: 100%;
}

.hales-lead-form__fineprint {
  margin-top: 10px;
  color: rgba(12, 22, 48, 0.65);
}

.hales-lead-form__error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  font-weight: 600;
}

.hales-lead-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  /* 2-column layout for the contact info form on desktop */
  .hales-lead-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Make address1/address2 full-width in the grid */
  .hales-lead-form__field:nth-child(5),
  .hales-lead-form__field:nth-child(6) {
    grid-column: 1 / -1;
  }
}

.hales-lead-form__account-list {
  margin-top: 10px;
}

.hales-lead-form__account {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px;
  border: 1px solid rgba(12, 22, 48, 0.12);
  border-radius: 14px;
  background: #ffffff;
  margin-top: 10px;
}

.hales-lead-form__account-name {
  font-weight: 800;
  color: #0c1630;
}

.hales-lead-form__account-meta {
  margin-top: 2px;
  color: rgba(12, 22, 48, 0.70);
  font-size: 14px;
}

.hales-lead-form__account-select {
  border: none;
  background: transparent;
  color: #d4af37;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 10px;
}

.hales-lead-form__account-select[disabled] {
  opacity: 0.6;
  cursor: default;
}
