/* North Snow Removal – comprehensive UI & UX improvements */

/* Mobile sticky call bar */
.nsr-callbar { display: none; }

@media (max-width: 760px) {
  .nsr-callbar {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(9, 20, 38, .96);
    border-top: 1px solid rgba(143, 227, 255, .18);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .nsr-callbar a {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: 14px;
    font-weight: 800; font-size: 0.95rem; text-decoration: none;
  }
  .nsr-callbar__call { background: var(--ice, #8fe3ff); color: var(--bg, #091426); }
  .nsr-callbar__quote { border: 1px solid rgba(255, 255, 255, .24); color: var(--text, #f4f8fc); }

  /* keep the page footer, chat button and cookie banner clear of the bar */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .chat-toggle { bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; }
  .nsr-cc { bottom: calc(158px + env(safe-area-inset-bottom, 0px)) !important; }

  /* while the chat panel is open, hide the bar and put the chat button back */
  .chat-panel[aria-hidden="false"] ~ .nsr-callbar { display: none; }
  body:has(.chat-panel[aria-hidden="false"]) .chat-toggle { bottom: 14px !important; }
}

/* Reviews & Testimonials Section */
.rating-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(143, 227, 255, 0.08); border: 1px solid rgba(143, 227, 255, 0.2);
  border-radius: 99px; padding: 6px 16px; margin-top: 14px; font-size: 0.95rem;
}
.rating-badge .stars { color: #ffb238; letter-spacing: 2px; }

.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px; margin-top: 36px;
}
.review-card {
  background: #10223b; border: 1px solid rgba(143, 227, 255, 0.16);
  border-radius: 18px; padding: 26px; display: flex; flex-direction: column;
  justify-content: space-between; transition: transform 0.2s ease, border-color 0.2s ease;
}
.review-card:hover {
  transform: translateY(-3px); border-color: rgba(143, 227, 255, 0.35);
}
.review-stars { color: #ffb238; font-size: 1.15rem; letter-spacing: 3px; margin-bottom: 14px; }
.review-card p {
  color: #e4edf7; font-size: 0.98rem; line-height: 1.6; margin: 0 0 20px; font-style: italic;
}
.review-author {
  display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(143, 227, 255, 0.1);
  padding-top: 14px;
}
.review-author .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #1c3d66; color: #8fe3ff;
  font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.review-author strong { display: block; font-size: 0.95rem; color: #f4f8fc; }
.review-author span { display: block; font-size: 0.82rem; color: #91a4bd; }

/* Interactive Address Checker */
.area-checker {
  margin-top: 28px; background: #10223b; border: 1px solid rgba(143, 227, 255, 0.2);
  border-radius: 18px; padding: 24px;
}
.area-checker h3 { margin: 0 0 6px; font-size: 1.25rem; color: #f4f8fc; }
.area-checker p { margin: 0 0 16px; color: #91a4bd; font-size: 0.92rem; }
.checker-form { display: flex; flex-direction: column; gap: 10px; }
.checker-input-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.checker-input-wrap input {
  flex: 1 1 240px; min-height: 48px; border-radius: 12px;
  background: rgba(9, 20, 38, 0.7); border: 1px solid rgba(143, 227, 255, 0.24);
  color: #fff; padding: 0 14px; font-size: 0.95rem; outline: none;
}
.checker-input-wrap input:focus { border-color: #8fe3ff; box-shadow: 0 0 0 2px rgba(143, 227, 255, 0.2); }
.checker-input-wrap button { white-space: nowrap; flex: 0 0 auto; }
.checker-result {
  border-radius: 12px; font-size: 0.92rem; line-height: 1.5; display: none; padding: 12px 16px;
}
.checker-result.show { display: block; }
.checker-result.success {
  background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.35); color: #8df0bb;
}
.checker-result.info {
  background: rgba(255, 178, 56, 0.12); border: 1px solid rgba(255, 178, 56, 0.35); color: #ffd68a;
}

/* Pricing Section Polish */
.plan-desc { color: #91a4bd; font-size: 0.92rem; margin: 4px 0 16px; min-height: 42px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 24px; }
.plan-features li {
  padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem; color: #dce7f5; display: flex; align-items: center; gap: 8px;
}
.plan-features li::before { content: "✔"; color: #8fe3ff; font-weight: bold; flex-shrink: 0; }
.pricing-guarantee {
  margin-top: 28px; text-align: center; color: #91a4bd; font-size: 0.92rem;
  background: rgba(143, 227, 255, 0.05); padding: 12px 20px; border-radius: 12px;
  border: 1px solid rgba(143, 227, 255, 0.12);
}

/* Accessible Form Styles */
.lead-form .form-group { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.lead-form label { font-size: 0.85rem; font-weight: 700; color: #8fe3ff; letter-spacing: 0.02em; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; box-sizing: border-box; background: rgba(9, 20, 38, 0.7);
  border: 1px solid rgba(143, 227, 255, 0.2); border-radius: 10px;
  padding: 12px 14px; color: #fff; font-size: 0.95rem; font-family: inherit;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: #8fe3ff; box-shadow: 0 0 0 2px rgba(143, 227, 255, 0.2);
}
