/* H2Oasis free-estimate popup */
.h2o-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000; /* above the floating logo (9999) and header */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 22, 34, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: h2o-popup-fade 0.25s ease;
  text-transform: none;
}
.h2o-popup-leaving { opacity: 0; transition: opacity 0.2s ease; }

html.h2o-popup-open { overflow: hidden; }

.h2o-popup-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: 0 30px 80px rgba(2, 12, 27, 0.35);
  text-align: center;
  animation: h2o-popup-rise 0.3s ease;
}
html.h2o-dark .h2o-popup-card {
  background: var(--h2o-surface, #1f2c4a);
}

.h2o-popup-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #27b0cc, #7dd3e8 55%, #f8a820);
}

.h2o-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.h2o-popup-close:hover { background: rgba(15, 23, 42, 0.06); color: #0f172a; }
html.h2o-dark .h2o-popup-close { color: #9fb0c8; }
html.h2o-dark .h2o-popup-close:hover { background: rgba(255, 255, 255, 0.08); color: #f2f6fb; }

.h2o-popup-eyebrow {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0e7490;
}
html.h2o-dark .h2o-popup-eyebrow { color: #7dd3e8; }

.h2o-popup-title {
  margin: 10px 0 10px;
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}
html.h2o-dark .h2o-popup-title { color: var(--h2o-ink, #f2f6fb); }

.h2o-popup-text {
  margin: 0 0 22px;
  color: #5a6b7b;
  font-size: 0.97rem;
  line-height: 1.6;
}
html.h2o-dark .h2o-popup-text { color: var(--h2o-ink-soft, #c2ccdb); }

.h2o-popup-cta {
  display: block;
  padding: 14px 26px;
  border-radius: 999px;
  background: #27b0cc;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.h2o-popup-cta:hover { background: #1f93ac; transform: translateY(-1px); }
.h2o-popup-cta:focus-visible { outline: 3px solid rgba(39, 176, 204, 0.45); outline-offset: 2px; }

.h2o-popup-tel {
  display: inline-block;
  margin-top: 14px;
  color: #0e7490 !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.h2o-popup-tel:hover { text-decoration: underline; }
html.h2o-dark .h2o-popup-tel { color: #7dd3e8 !important; }

@keyframes h2o-popup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes h2o-popup-rise { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .h2o-popup-overlay, .h2o-popup-card { animation: none; }
}

@media (max-width: 480px) {
  .h2o-popup-card { padding: 28px 22px 24px; max-width: 92vw; }
  .h2o-popup-title { font-size: 1.65rem; }
}
