/* =============================================
   WEBSTIFFY — QUICK ENQUIRY POPUP
   ============================================= */

/* ---- Overlay ---- */
#wsp-overlay {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(3,7,18,.88);
  backdrop-filter: blur(20px) saturate(140%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
#wsp-overlay.wsp-open { opacity: 1; visibility: visible; }

/* ---- Card ---- */
#wsp-card {
  position: relative;
  width: 100%; max-width: 570px;
  max-height: 92vh; overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(155deg, rgba(12,18,42,.98) 0%, rgba(4,8,20,1) 100%);
  border: 1px solid rgba(168,85,247,.22);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(168,85,247,.07),
    0 0 100px rgba(168,85,247,.25),
    0 60px 130px rgba(0,0,0,.95);
  transform: translateY(80px) scale(.92);
  opacity: 0;
  transition:
    transform .62s cubic-bezier(.22,1,.36,1),
    opacity   .5s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,.3) transparent;
}
#wsp-overlay.wsp-open #wsp-card {
  transform: translateY(0) scale(1); opacity: 1;
}
#wsp-card::-webkit-scrollbar { width: 3px; }
#wsp-card::-webkit-scrollbar-thumb { background: rgba(168,85,247,.35); border-radius: 4px; }

/* Top rainbow accent bar */
#wsp-card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 3px;
  background: linear-gradient(90deg, transparent, #a855f7 25%, #ec4899 60%, #f43f5e 85%, transparent);
  border-radius: 0 0 6px 6px;
}

/* Background decorations */
.wsp-bg-glow-1, .wsp-bg-glow-2 {
  position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none; z-index: 0;
}
.wsp-bg-glow-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(168,85,247,.14) 0%, transparent 70%);
  top: -110px; right: -110px;
  animation: wsp-drift 9s ease-in-out infinite alternate;
}
.wsp-bg-glow-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(244,63,94,.1) 0%, transparent 70%);
  bottom: 80px; left: -80px;
  animation: wsp-drift 13s ease-in-out infinite alternate-reverse;
}
@keyframes wsp-drift { from{transform:translate(0,0)} to{transform:translate(20px,15px)} }

.wsp-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  border-radius: 28px; overflow: hidden; z-index: 0;
  background-image:
    linear-gradient(rgba(168,85,247,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.025) 1px, transparent 1px);
  background-size: 38px 38px;
}

/* ---- Close button ---- */
.wsp-close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.5); font-size: .9rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .25s; z-index: 10;
}
.wsp-close-btn:hover {
  background: rgba(244,63,94,.15);
  border-color: rgba(244,63,94,.4);
  color: #f43f5e; transform: rotate(90deg);
}

/* ================================================================
   HEADER
   ================================================================ */
.wsp-header {
  position: relative; z-index: 2;
  padding: 40px 38px 26px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

/* Logo pill */
.wsp-logo-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  margin-bottom: 22px;
}
.wsp-logo-pill img { height: 26px; width: auto; display: block; }
.wsp-logo-pill-text {
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 900; letter-spacing: 2.5px; color: #fff;
}
.wsp-logo-pill-text em { color: #f43f5e; font-style: normal; }

/* Live consultation badge */
.wsp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: .63rem;
  color: #a855f7; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px;
  border: 1px solid rgba(168,85,247,.28);
  background: rgba(168,85,247,.07);
  margin-bottom: 20px;
  animation: wsp-badge-glow 2.8s ease-in-out infinite;
}
.wsp-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #a855f7;
  animation: wsp-dot-pulse 2.5s ease-in-out infinite;
}
@keyframes wsp-badge-glow {
  0%,100% { box-shadow: 0 0 0 rgba(168,85,247,0); }
  50%      { box-shadow: 0 0 18px rgba(168,85,247,.4); }
}
@keyframes wsp-dot-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.75)} }

/* Title */
.wsp-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.65rem, 4.5vw, 2.3rem);
  font-weight: 900; letter-spacing: -.035em;
  line-height: 1.1; color: #fff;
  margin-bottom: 12px;
}
.wsp-title .wsp-grad {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wsp-sub {
  font-size: .88rem; color: #94a3b8; line-height: 1.65; margin: 0;
  max-width: 380px; margin-inline: auto;
}

/* ================================================================
   FORM
   ================================================================ */
.wsp-form-body {
  position: relative; z-index: 2;
  padding: 26px 38px 22px;
  display: flex; flex-direction: column; gap: 15px;
}
.wsp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Field wrapper */
.wsp-field { display: flex; flex-direction: column; gap: 7px; }
.wsp-label {
  font-family: 'JetBrains Mono', monospace; font-size: .62rem;
  color: #475569; letter-spacing: 1.2px; text-transform: uppercase;
}
.wsp-label-opt { opacity: .55; }

/* Inputs */
.wsp-input, .wsp-select, .wsp-textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 11px 14px;
  color: #f1f5f9;
  font-family: 'Outfit', sans-serif; font-size: .91rem;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.wsp-input::placeholder, .wsp-textarea::placeholder { color: rgba(255,255,255,.2); }
.wsp-input:focus, .wsp-select:focus, .wsp-textarea:focus {
  border-color: rgba(168,85,247,.5);
  background: rgba(168,85,247,.05);
  box-shadow: 0 0 0 3px rgba(168,85,247,.12);
}

.wsp-select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  background-color: rgba(255,255,255,.04);
}
.wsp-select option { background: #0f172a; color: #f1f5f9; }
.wsp-textarea { resize: vertical; min-height: 82px; line-height: 1.65; }

/* Services / Products toggle */
.wsp-toggle {
  display: flex;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; overflow: hidden;
}
.wsp-toggle-btn {
  flex: 1; padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: #475569; cursor: pointer;
  border: none; background: none;
  transition: all .22s; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.wsp-toggle-btn:first-child { border-radius: 9px 0 0 9px; }
.wsp-toggle-btn:last-child  { border-radius: 0 9px 9px 0; }
.wsp-toggle-btn.wsp-active {
  background: rgba(168,85,247,.16);
  color: #a855f7;
  box-shadow: inset 0 0 0 1px rgba(168,85,247,.3);
}

/* Skip row */
.wsp-skip-row {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: .62rem;
  color: #334155; cursor: pointer; user-select: none;
}
.wsp-skip-row input { accent-color: #a855f7; cursor: pointer; }

/* Submit */
.wsp-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px 28px; margin-top: 2px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%);
  background-size: 200% 200%; background-position: 0% 50%;
  border: none; border-radius: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: .83rem;
  font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 24px rgba(168,85,247,.45);
  transition: background-position .4s, transform .22s, box-shadow .3s;
}
.wsp-submit:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(168,85,247,.65);
}
.wsp-submit:active { transform: translateY(0); }

/* ================================================================
   SUCCESS STATE
   ================================================================ */
.wsp-success {
  display: none; text-align: center;
  position: relative; z-index: 2;
  padding: 44px 38px 48px;
}
.wsp-success.wsp-show { display: block; }
.wsp-success-ring {
  width: 82px; height: 82px; border-radius: 50%;
  border: 2px solid rgba(16,185,129,.4);
  background: rgba(16,185,129,.1);
  color: #10b981; font-size: 2.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  animation: wsp-pop .55s cubic-bezier(.22,1,.36,1);
}
@keyframes wsp-pop {
  from { transform: scale(0) rotate(-30deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
.wsp-success h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.65rem;
  font-weight: 900; color: #fff; margin-bottom: 12px;
}
.wsp-success p { font-size: .92rem; color: #94a3b8; line-height: 1.75; }
.wsp-success strong { color: #10b981; }

/* ================================================================
   FOOTER NOTE
   ================================================================ */
.wsp-footer-note {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 14px 38px 22px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: .62rem;
  color: #334155; letter-spacing: .3px;
}
.wsp-footer-note a { color: #25d366; border-bottom: 1px solid rgba(37,211,102,.3); transition: color .2s; }
.wsp-footer-note a:hover { color: #4ade80; }

/* ================================================================
   MOBILE — bottom sheet style
   ================================================================ */
@media (max-width: 580px) {
  #wsp-overlay { align-items: flex-end; padding: 0; }
  #wsp-card {
    border-radius: 24px 24px 0 0;
    max-height: 93vh;
    transform: translateY(100%); opacity: 1;
  }
  #wsp-overlay.wsp-open #wsp-card { transform: translateY(0); }
  #wsp-card::before { left: 35%; right: 35%; }

  .wsp-header  { padding: 28px 22px 20px; }
  .wsp-form-body { padding: 20px 22px 18px; gap: 13px; }
  .wsp-footer-note { padding: 12px 22px 20px; }
  .wsp-success { padding: 36px 22px 40px; }
  .wsp-row     { grid-template-columns: 1fr; gap: 13px; }
  .wsp-title   { font-size: 1.55rem; }
  .wsp-logo-pill-text { font-size: 12px; letter-spacing: 1.5px; }
}
@media (max-width: 360px) {
  .wsp-logo-pill img { height: 22px; }
  .wsp-title { font-size: 1.38rem; }
}
