/* Hosting CTA buttons: left icon + hover motion.
   Icons are CSS masks, so they take the button's text color. */

.hosting-phone-cta__actions > a,
.hosting-bottom-cta__actions > a,
.hosting-side-callout a.ff-btn,
.hosting-side-callout__call,
.hosting-side-callout__email,
.hosting-order-form__submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.hosting-phone-cta__actions > a::before,
.hosting-bottom-cta__actions > a::before,
.hosting-side-callout a.ff-btn::before,
.hosting-side-callout__call::before,
.hosting-side-callout__email::before {
  content: "";
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  background-color: currentColor;
  -webkit-mask: var(--ff-btn-icon) center / contain no-repeat;
  mask: var(--ff-btn-icon) center / contain no-repeat;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Phone: handset */
.hosting-phone-cta__actions > a[href^="tel:"],
.hosting-bottom-cta__actions > a[href^="tel:"],
.hosting-side-callout a[href^="tel:"] {
  --ff-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.24.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

/* Email: envelope */
.hosting-phone-cta__actions > a.email,
.hosting-bottom-cta__actions > a.email,
.hosting-side-callout a.email {
  --ff-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3.5 7.5l8.5 6 8.5-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Order: arrow */
.hosting-phone-cta__actions > a.hosting-phone-cta__order,
.hosting-bottom-cta__actions > a[href="/purchase"],
.hosting-bottom-cta__actions > a[href^="/purchase"],
.hosting-side-callout a[href="/purchase"] {
  --ff-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12h14M13 6.5l5.5 5.5-5.5 5.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Hover motion */
.hosting-phone-cta__actions > a[href^="tel:"]:hover::before,
.hosting-bottom-cta__actions > a[href^="tel:"]:hover::before,
.hosting-side-callout a[href^="tel:"]:hover::before {
  animation: hf-btn-ring 0.6s ease;
}

.hosting-phone-cta__actions > a.email:hover::before,
.hosting-bottom-cta__actions > a.email:hover::before,
.hosting-side-callout a.email:hover::before {
  transform: translateY(-2px) rotate(-6deg);
}

.hosting-phone-cta__actions > a.hosting-phone-cta__order:hover::before,
.hosting-bottom-cta__actions > a[href="/purchase"]:hover::before,
.hosting-bottom-cta__actions > a[href^="/purchase"]:hover::before,
.hosting-side-callout a[href="/purchase"]:hover::before {
  transform: translateX(4px);
}

@keyframes hf-btn-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hosting-phone-cta__actions > a::before,
  .hosting-bottom-cta__actions > a::before,
  .hosting-side-callout a.ff-btn::before,
  .hosting-side-callout__call::before,
  .hosting-side-callout__email::before {
    transition: none;
    animation: none !important;
  }

  .hosting-order-form__submit-icon .host-submit-bit {
    animation: none !important;
    opacity: 0.85;
    transform: none !important;
  }
}

/* Submit order: server + rising data pulses (SVG, not mask) */
.hosting-order-form__submit-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
}

.hosting-order-form__submit-icon .host-submit-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hosting-order-form__submit-icon .host-submit-frame {
  stroke: currentColor;
  stroke-width: 1.65;
}

.hosting-order-form__submit-icon .host-submit-row {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.55;
}

.hosting-order-form__submit-icon .host-submit-led {
  fill: currentColor;
  opacity: 0.45;
  animation: hf-submit-led 2s ease-in-out infinite;
}

.hosting-order-form__submit-icon .host-submit-bit {
  fill: currentColor;
  animation: hf-submit-rise 1.5s cubic-bezier(0.35, 0.05, 0.2, 1) infinite;
  opacity: 0;
}

.hosting-order-form__submit-icon .host-submit-bit--2 {
  animation-delay: 0.22s;
}

.hosting-order-form__submit-icon .host-submit-bit--3 {
  animation-delay: 0.44s;
}

.hosting-order-form__submit-btn:not(:disabled):hover .host-submit-bit {
  animation-duration: 0.95s;
}

.hosting-order-form__submit-btn:not(:disabled):hover .host-submit-led {
  animation-duration: 1.1s;
}

.hosting-order-form__submit-btn--sending .host-submit-bit {
  animation-duration: 0.55s;
}

.hosting-order-form__submit-btn--sending .host-submit-led {
  animation-duration: 0.7s;
  opacity: 1;
}

@keyframes hf-submit-rise {
  0% {
    transform: translateY(4px);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-10px);
    opacity: 0;
  }
}

@keyframes hf-submit-led {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
