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

/* ---------- Wrapper ---------- */
.cb-btn-wrap {
  display: block;
  text-align: center;
}

/* ---------- Button ---------- */
.cb-btn-wrap .cb-btn {
  display: inline-block;
  padding: 12px 40px;
  background-color: #e8e8e8;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  border: none;
  border-radius: 0 !important;
  cursor: pointer;
  line-height: 1.5;
  transform: skewX(-10deg);
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
}

/* Blue fill: starts as a center line, expands up & down */
.cb-btn-wrap .cb-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 0;
  background-color: #2640bf;
  transform: translateY(-50%);
  transition: height 0.4s ease;
  z-index: 0;
}

.cb-btn-wrap .cb-btn:hover::before {
  height: 100%;
}

.cb-btn-wrap .cb-btn:hover {
  color: #fff !important;
  text-decoration: none !important;
}

/* Keep text above the pseudo-element */
.cb-btn-wrap .cb-btn span {
  display: inline-block;
  transform: skewX(10deg);
  position: relative;
  z-index: 1;
}

/* ===== Tablet Landscape ≤ 1024px ===== */
@media screen and (max-width: 1024px) {
  .cb-btn-wrap .cb-btn {
    padding: 12px 36px;
  }
}

/* ===== Tablet Portrait ≤ 800px ===== */
@media screen and (max-width: 800px) {
  .cb-btn-wrap .cb-btn {
    padding: 10px 30px;
    font-size: 13px;
  }
}

/* ===== Large Phone ≤ 640px ===== */
@media screen and (max-width: 640px) {
  .cb-btn-wrap .cb-btn {
    padding: 10px 28px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }
}

/* ===== Phone ≤ 480px ===== */
@media screen and (max-width: 480px) {
  .cb-btn-wrap .cb-btn {
    padding: 9px 22px;
    font-size: 12px;
    transform: skewX(-6deg);
  }
  .cb-btn-wrap .cb-btn span {
    transform: skewX(6deg);
  }
}

/* ===== Small Phone ≤ 375px ===== */
@media screen and (max-width: 375px) {
  .cb-btn-wrap .cb-btn {
    padding: 8px 18px;
    font-size: 11px;
  }
}

/* ===== Keyboard Focus ===== */
.cb-btn-wrap .cb-btn:focus-visible {
  outline: 2px solid #2640bf;
  outline-offset: 4px;
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .cb-btn-wrap .cb-btn {
    transition: none !important;
  }
  .cb-btn-wrap .cb-btn::before {
    transition: none !important;
  }
}
