/* ===================================================================
   Pill Button — Elementor Widget Frontend CSS
   =================================================================== */

/* ---------- Pill Container ---------- */
.vpb-wrapper {
  position: relative;
  z-index: 10;
  width: 200px;
  height: 50px;
  line-height: 50px;
  padding: 6px;
  box-sizing: content-box;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  display: block;
}

/* ---------- Inner button / link ---------- */
.vpb-btn {
  display: block;
  height: 50px;
  line-height: 50px;
  background-color: #337aff;
  width: 100%;
  color: #fff;
  text-align: center;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.vpb-btn:hover {
  background-color: #2563eb;
}

/* ---------- Pulsing ring — inner (::before) ---------- */
.vpb-wrapper::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  top: 0;
  left: 0;
  transform: scale(1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: -1;
  pointer-events: none;
  animation: vpb-ring-inner 2s ease infinite;
}

/* ---------- Pulsing ring — outer (::after) ---------- */
.vpb-wrapper::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  top: 0;
  left: 0;
  transform: scale(1.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: -1;
  pointer-events: none;
  animation: vpb-ring-outer 2s ease 0.5s infinite;
}

/* ---------- Ring keyframes ---------- */
@keyframes vpb-ring-inner {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes vpb-ring-outer {
  0%   { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}


/* ===== Tablet Landscape ≤ 1024px ===== */
@media screen and (max-width: 1024px) {
  .vpb-wrapper {
    width: 180px !important;
    height: 46px !important;
    line-height: 46px !important;
    padding: 5px;
  }
  .vpb-btn {
    height: 46px !important;
    line-height: 46px !important;
    font-size: 15px;
  }
}

/* ===== Tablet Portrait ≤ 800px ===== */
@media screen and (max-width: 800px) {
  .vpb-wrapper {
    width: 160px !important;
    height: 42px !important;
    line-height: 42px !important;
  }
  .vpb-btn {
    height: 42px !important;
    line-height: 42px !important;
    font-size: 14px;
  }
}

/* ===== Large Phone ≤ 640px ===== */
@media screen and (max-width: 640px) {
  .vpb-wrapper {
    width: 150px !important;
    height: 40px !important;
    line-height: 40px !important;
    padding: 4px;
  }
  .vpb-btn {
    height: 40px !important;
    line-height: 40px !important;
    font-size: 14px;
  }
}

/* ===== Phone ≤ 480px ===== */
@media screen and (max-width: 480px) {
  .vpb-wrapper {
    width: 140px !important;
    height: 36px !important;
    line-height: 36px !important;
  }
  .vpb-btn {
    height: 36px !important;
    line-height: 36px !important;
    font-size: 13px;
  }
}

/* ===== Small Phone ≤ 375px ===== */
@media screen and (max-width: 375px) {
  .vpb-wrapper {
    width: 120px !important;
    height: 32px !important;
    line-height: 32px !important;
    padding: 3px;
  }
  .vpb-btn {
    height: 32px !important;
    line-height: 32px !important;
    font-size: 12px;
  }
}

/* ===== Keyboard Focus ===== */
.vpb-btn:focus-visible {
  outline: 2px solid #337aff;
  outline-offset: 4px;
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .vpb-wrapper::before,
  .vpb-wrapper::after {
    animation: none !important;
  }
  .vpb-btn {
    transition: none !important;
  }
}
