/* Color Variables */
:root {
  --askcall-primary-bg: #e9f5ef;
  --askcall-primary-bg-hover: #2a2660;
  --askcall-fab-icon: #1B1948;
  --askcall-popup-bg: #ffffff;
  --askcall-popup-shadow: 0 16px 48px rgba(0,0,0,0.35);
  --askcall-fab-shadow: 0 4px 20px rgba(0,0,0,0.35);
  --askcall-fab-shadow-hover: 0 6px 28px rgba(0,0,0,0.45);
  --askcall-fab-shadow-pulse: 0 4px 20px rgba(0,0,0,0.35);
  --askcall-ring: rgba(233,245,239,0.5);
  --askcall-ring-light: rgba(233,245,239,0.45);
  --askcall-ring-fade: rgba(233,245,239,0);
  --askcall-input-border: #e2e6ee;
  --askcall-input-bg: #f8f9fc;
  --askcall-input-placeholder: #b0b8cc;
  --askcall-input-border-focus: #1B1948;
  --askcall-input-shadow-focus: 0 0 0 4px rgba(27,25,72,0.08);
  --askcall-btn-bg: #1B1948;
  --askcall-btn-color: #e9f5ef;
  --askcall-popup-icon-bg: #e9f5ef;
  --askcall-popup-tail-bg: #fff;
  --askcall-popup-tail-shadow: 2px 2px 6px rgba(0,0,0,0.12);
}

/* FAB Button */
.call-fab {
  position: fixed;
  bottom: 70px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--askcall-primary-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--askcall-fab-shadow), 0 0 0 0 var(--askcall-ring);
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
  z-index: 10;
  animation: pulse-ring 2.5s ease-out infinite;
}

.call-fab:hover {
  transform: scale(1.1);
  box-shadow: var(--askcall-fab-shadow-hover), 0 0 0 0 var(--askcall-ring);
}

.call-fab:active {
  transform: scale(0.95);
}

.call-fab svg {
  width: 26px;
  height: 26px;
  fill: var(--askcall-fab-icon);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}

.call-fab.open svg {
  transform: rotate(90deg) scale(0.85);
}

/* Popup Form */
.call-popup {
  position: fixed;
  bottom: 145px;
  right: 28px;
  width: 350px;
  background: var(--askcall-popup-bg);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: var(--askcall-popup-shadow);
  transform: scale(0.85) translateY(16px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.34,1.4,.64,1), opacity 0.25s ease;
  z-index: 10000;
}

.call-popup.visible {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.popup-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--askcall-popup-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.popup-icon-wrap svg {
  width: 26px;
  height: 26px;
  fill: var(--askcall-fab-icon);
}

.popup-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--askcall-fab-icon);
  margin-bottom: 4px;
}

.input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--askcall-fab-icon);
  opacity: 0.45;
  pointer-events: none;
}

.phone-input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--askcall-input-border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--askcall-fab-icon);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--askcall-input-bg);
}

.phone-input::placeholder { color: var(--askcall-input-placeholder); }

.phone-input:focus {
  border-color: var(--askcall-input-border-focus);
  background: var(--askcall-popup-bg);
  box-shadow: var(--askcall-input-shadow-focus);
}

.call-submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--askcall-btn-bg);
  color: var(--askcall-btn-color);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}

.call-submit-btn:hover { background: var(--askcall-primary-bg-hover); }
.call-submit-btn:active { transform: scale(0.98); }

.call-submit-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--askcall-btn-color);
}

.popup-tail {
  position: absolute;
  bottom: -10px;
  right: 36px;
  width: 20px;
  height: 10px;
  overflow: hidden;
}

.popup-tail::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--askcall-popup-tail-bg);
  transform: rotate(45deg);
  box-shadow: var(--askcall-popup-tail-shadow);
}

@keyframes pulse-ring {
    0%   { box-shadow: var(--askcall-fab-shadow-pulse), 0 0 0 0 var(--askcall-ring-light); }
    60%  { box-shadow: var(--askcall-fab-shadow-pulse), 0 0 0 14px var(--askcall-ring-fade); }
    100% { box-shadow: var(--askcall-fab-shadow-pulse), 0 0 0 0 var(--askcall-ring-fade); }
}

/* -----------------------------------
   MOBILE STYLES FOR ASKCALL WIDGET
--------------------------------------*/
@media (max-width: 600px) {
  .call-fab {
    right: 14px;
    width: 52px;
    height: 52px;
    box-shadow: var(--askcall-fab-shadow), 0 0 0 0 var(--askcall-ring);
    animation: pulse-ring 2.5s ease-out infinite;
  }
  .call-fab svg {
    width: 22px;
    height: 22px;
  }

  .call-popup {
    right: 8px;
    left: 8px;
  }
  .popup-icon-wrap {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }
  .popup-icon-wrap svg {
    width: 20px;
    height: 20px;
  }
  .popup-title {
    font-size: 15px;
    margin-bottom: 2px;
  }
  .input-wrap {
    margin-bottom: 10px;
  }
  .input-wrap svg {
    left: 10px;
    width: 15px;
    height: 15px;
  }
  .phone-input {
    font-size: 14px;
    padding: 10px 8px 10px 34px;
    border-radius: 10px;
  }
  .call-submit-btn {
    padding: 12px;
    font-size: 14px;
    border-radius: 10px;
    gap: 6px;
  }
  .call-submit-btn svg {
    width: 16px;
    height: 16px;
  }
}