/* ── index.css — Page-specific styles for the homepage ── */

/* ── CTA clip-path: disable on mobile ── */
@media (max-width: 639px) {
  .cta-wireless { clip-path: none; }
}

/* ── Glass utility ── */
.glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── CTA diagonal ── */
.cta-wireless {
  clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%);
}

/* ── Coverage check ── */
.coverage-spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(232,75,30,0.20);
  border-top-color: #E84B1E;
  border-radius: 50%;
  animation: coverageSpin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes coverageSpin { to { transform: rotate(360deg); } }
#address-input::placeholder { color: rgba(255,255,255,0.35); }
#address-input:focus { outline: none; }

/* ── Address autocomplete — inline inside glass card ── */
#address-suggestions {
  display: none;
  list-style: none; margin: 0; padding: 4px 0 0 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 10px;
  overflow-y: auto; max-height: 220px;
}
#address-suggestions::-webkit-scrollbar { width: 4px; }
#address-suggestions::-webkit-scrollbar-track { background: transparent; }
#address-suggestions::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 4px; }
#address-suggestions li {
  padding: 11px 14px; color: rgba(255,255,255,0.88); cursor: pointer;
  font-family: 'Barlow', sans-serif; font-size: 14px; border-radius: 10px;
  transition: background 0.12s ease; line-height: 1.3;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
#address-suggestions li:last-child { border-bottom: none; }
#address-suggestions li:hover { background: rgba(255,255,255,0.10); }
#address-suggestions li .sug-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(232,75,30,0.12); border: 1px solid rgba(232,75,30,0.25);
  display: flex; align-items: center; justify-content: center;
}
#address-suggestions li .sug-icon svg { width: 14px; height: 14px; color: #E84B1E; stroke: #E84B1E; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#address-suggestions li .sug-text { flex: 1; min-width: 0; }

/* ── Hide Google's built-in pac dropdown — we render into #address-suggestions ── */
.pac-container { display: none !important; }

/* ── Service card CTA link ── */
.svc-cta { color: #E84B1E; transition: color 0.15s ease; }
.svc-cta:hover { color: #fff; }

/* ── Service card image zoom ── */
.svc-img { transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.svc-card:hover .svc-img { transform: scale(1.06); }

/* ── Blog row spring hover ── */
.blog-row {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.blog-row:hover { transform: translateX(6px); }

/* ── Coverage view transition ── */
.cov-view {
  transition: opacity 0.28s cubic-bezier(0.22,1,0.36,1),
              transform 0.28s cubic-bezier(0.22,1,0.36,1);
}
.cov-view-exit-left  { opacity: 0; transform: translateX(-24px); }
.cov-view-exit-right { opacity: 0; transform: translateX(24px); }
.cov-view-enter      { opacity: 0; transform: translateX(24px); }
.cov-view-enter-back { opacity: 0; transform: translateX(-24px); }

/* ── Coverage result fade-in ── */
@keyframes resultIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.result-in { animation: resultIn 0.38s cubic-bezier(0.22,1,0.36,1) both; }

/* ── Glass card border — activated via JS when user interacts ── */
#coverage-glass-card.card-active {
  box-shadow: 0 8px 40px rgba(0,0,0,0.28);
}

/* ── Ambient orb drift (page-specific third orb) ── */
.orb-drift-3 { animation: orbDrift 15s ease-in-out infinite 3s; }

/* ── Service card hover lift ── */
.svc-card.visible {
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.32s ease,
              border-color 0.32s ease;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.32) !important;
  border-color: rgba(232,75,30,0.50) !important;
}

/* ── Why Choose card hover lift ── */
.why-card.visible {
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.32s ease;
}
.why-card:hover { transform: translateY(-6px); }

/* ── Dynamic coverage card entrance ── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.card-in { animation: cardIn 0.42s cubic-bezier(0.34,1.56,0.64,1) both; }

/* ── Success pop-in (spring bounce) ── */
@keyframes successPop {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.02); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.success-in { animation: successPop 0.48s cubic-bezier(0.34,1.56,0.64,1) both; }

/* ── Icon circle pop (staggered) ── */
@keyframes iconPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.icon-pop { animation: iconPop 0.38s cubic-bezier(0.34,1.56,0.64,1) both; animation-delay: 0.12s; }

/* ── Fade + slide in (form reveals, step transitions) ── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-slide-in { animation: fadeSlideIn 0.32s cubic-bezier(0.22,1,0.36,1) both; }

/* ── Fade out (auto-close) ── */
@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.96) translateY(6px); }
}
.fade-out { animation: fadeOut 0.3s cubic-bezier(0.4,0,1,1) both; }

/* ── Input search bar focus glow ── */
.search-bar { transition: box-shadow 0.22s ease, border-color 0.22s ease; }
.search-bar.focused {
  border-color: rgba(232,75,30,0.55) !important;
  box-shadow: 0 0 0 3px rgba(232,75,30,0.14);
}

/* ── Sign-up form (inline) ── */
/* Glass-dark overrides for inputs/controls inside #signup-view */
#signup-view .signup-input {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
#signup-view .signup-input::placeholder { color: rgba(255,255,255,0.48); }
#signup-view .signup-input:focus { border-color: rgba(232,75,30,0.65); box-shadow: 0 0 0 3px rgba(232,75,30,0.20); }
#signup-view .signup-input[readonly] { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); cursor: default; }
#signup-view .signup-input.is-error { border-color: rgba(248,113,113,0.70); }
#signup-view .file-drop-zone { border-color: rgba(255,255,255,0.18); }
#signup-view .file-drop-zone:hover { border-color: rgba(232,75,30,0.55); background: rgba(232,75,30,0.08); }
#signup-view .file-drop-zone.has-file { border-color: rgba(34,197,94,0.60); background: rgba(34,197,94,0.06); }
#signup-view .su-err { color: #fca5a5; }

/* ── reCAPTCHA v3 badge — hide default badge, we show attribution inline ── */
.grecaptcha-badge { visibility: hidden !important; }

/* ── Social sign-up buttons ── */
.su-social-btn {
  display:flex; align-items:center; gap:12px; width:300px; padding:0 20px;
  height:48px; border-radius:30px; background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15); color:rgba(255,255,255,0.85);
  font-family:'Barlow',sans-serif; font-weight:700; font-size:13px;
  text-transform:uppercase; letter-spacing:0.05em; cursor:pointer;
  transition: filter 0.15s cubic-bezier(0.22,1,0.36,1), transform 0.15s cubic-bezier(0.22,1,0.36,1), border-color 0.15s ease;
}
.su-social-btn:hover { filter:brightness(1.10); border-color:rgba(255,255,255,0.25); }
.su-social-btn:active { transform:scale(0.95); }
.su-social-btn:focus-visible { outline:2px solid #E84B1E; outline-offset:2px; }
.su-social-btn:disabled { opacity:0.5; cursor:not-allowed; transform:none; filter:none; }
.su-social-icon {
  width:32px; height:32px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; flex-shrink:0; background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.18); font-size:14px;
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
}
.su-social-btn:hover .su-social-icon { transform:scale(1.08); }

/* Glass-dark overrides for register-interest form inside #result-none */
#result-none .signup-input {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
#result-none .signup-input::placeholder { color: rgba(255,255,255,0.48); }
#result-none .signup-input:focus { border-color: rgba(232,75,30,0.65); box-shadow: 0 0 0 3px rgba(232,75,30,0.20); }
#result-none .signup-input[readonly] { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); cursor: default; }
#result-none .signup-input.is-error { border-color: rgba(248,113,113,0.70); }
#result-none .su-err { color: #fca5a5; }

.signup-input {
  background: rgba(25,43,60,0.05); border: 1px solid rgba(25,43,60,0.14);
  color: #192B3C; border-radius: 16px; padding: 11px 14px;
  font-family: 'Barlow', sans-serif; font-size: 14px; width: 100%;
  outline: none; transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none; appearance: none;
}
.signup-input:focus { border-color: rgba(232,75,30,0.55); box-shadow: 0 0 0 3px rgba(232,75,30,0.13); }
.signup-input::placeholder { color: rgba(25,43,60,0.30); }
.signup-input[readonly] { background: rgba(25,43,60,0.03); border-color: rgba(25,43,60,0.07); color: rgba(25,43,60,0.40); cursor: default; }
.signup-input.is-error { border-color: rgba(239,68,68,0.65); }
.signup-input.is-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.13); }
.su-err { color: #f87171; font-size: 11px; margin-top: 4px; display: none; }
.su-err.show { display: block; }

.file-drop-zone {
  border: 1.5px dashed rgba(25,43,60,0.18); border-radius: 16px; padding: 14px;
  cursor: pointer; text-align: center; transition: border-color 0.18s, background 0.18s;
}
.file-drop-zone:hover { border-color: rgba(232,75,30,0.45); background: rgba(232,75,30,0.04); }
.file-drop-zone.drag-over { border-color: rgba(232,75,30,0.60); background: rgba(232,75,30,0.07); }
.file-drop-zone.has-file { border-color: rgba(34,197,94,0.55); background: rgba(34,197,94,0.05); }
.file-drop-zone.is-error { border-color: rgba(239,68,68,0.60); background: rgba(239,68,68,0.04); }
#su-sig-canvas { cursor: crosshair; touch-action: none; display: block; width: 100%; }

/* ── Document requirements checklist ── */
.su-req-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.su-req-item .su-req-icon {
  color: rgba(255,255,255,0.30);
  transition: color 0.25s ease;
}
.su-req-item.done {
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.35);
  color: rgba(34,197,94,0.90);
}
.su-req-item.done .su-req-icon { color: rgba(34,197,94,0.90); }
.su-req-item.missing {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.45);
  color: rgba(248,113,113,0.90);
}
.su-req-item.missing .su-req-icon { color: rgba(248,113,113,0.90); }
