/* ========================================
   Conversion Boost Styles
   — Shimmer buttons, pulsing phones,
     promo badge, promo popup
   ======================================== */

/* ---------- 1. BUTTON SHIMMER EFFECT ---------- */
@keyframes btnShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.button,
.sp-cta__button,
.sp-cta-final__button,
.services__item-button,
.steps__button.button {
    position: relative;
    overflow: hidden;
}

.button::after,
.sp-cta__button::after,
.sp-cta-final__button::after,
.services__item-button::after,
.steps__button.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 75%,
        transparent 100%
    );
    animation: btnShimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* slower shimmer on hover */
.button:hover::after,
.sp-cta__button:hover::after,
.sp-cta-final__button:hover::after,
.services__item-button:hover::after,
.steps__button.button:hover::after {
    animation-duration: 1.5s;
}

/* ---------- 2. PHONE PULSE EFFECT ---------- */
@keyframes phonePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes phoneGlow {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 12px rgba(80, 196, 117, 0.5), 0 0 24px rgba(80, 196, 117, 0.2); }
}

.header__phone,
.hero__phone,
.sp-hero__phone,
.sp-cta__phone,
.sp-cta-final__phone,
.footer__phone {
    animation: phonePulse 2s ease-in-out infinite, phoneGlow 2s ease-in-out infinite;
}

/* ---------- 3. PROMO FLOATING BADGE (left edge) ---------- */
.promo-badge {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    padding: 14px 6px 10px;
    background: #1a1a1a;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 0 16px rgba(0,0,0,0.25);
    transition: 0.3s;
    border: 2px solid #FFB800;
    border-left: none;
    user-select: none;
}
.promo-badge:hover {
    width: 72px;
    box-shadow: 2px 0 24px rgba(255, 184, 0, 0.4);
}

/* fire icon */
.promo-badge__icon {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
    animation: fireFlicker 0.6s ease-in-out infinite alternate;
}
@keyframes fireFlicker {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

.promo-badge__amount {
    color: #FFB800;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}
.promo-badge__currency {
    color: #FFB800;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 1px;
}
/* Mobile: amount + currency inline */
@media (max-width: 849px) {
    .promo-badge__amount,
    .promo-badge__currency {
        display: inline;
        line-height: 1.2;
    }
}
.promo-badge__arrow {
    margin-top: 8px;
    width: 18px;
    height: 18px;
    color: #FFB800;
    animation: arrowBounce 1.2s ease-in-out infinite;
}
.promo-badge__label {
    display: none;
    color: #FFF;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}
@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* mobile: horizontal bar at bottom */
@media (max-width: 849px) {
    body {
        padding-bottom: 52px;
    }
    .promo-badge {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: 0;
        border: none;
        border-top: 2px solid #FFB800;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    }
    .promo-badge:hover {
        width: 100%;
        box-shadow: 0 -4px 28px rgba(255, 184, 0, 0.5);
    }
    .promo-badge__icon {
        width: 26px;
        height: 26px;
        margin-bottom: 0;
        animation: fireFlicker 0.6s ease-in-out infinite alternate;
    }
    .promo-badge__amount {
        font-size: 1.25rem;
    }
    .promo-badge__currency {
        font-size: 0.8125rem;
    }
    .promo-badge__label {
        display: inline;
    }
    .promo-badge__arrow {
        display: none;
    }
}
@media (max-width: 599px) {
    .promo-badge {
        padding: 8px 12px;
        gap: 6px;
    }
    .promo-badge__icon {
        width: 22px;
        height: 22px;
    }
    .promo-badge__amount {
        font-size: 1.0625rem;
    }
    .promo-badge__currency {
        font-size: 0.75rem;
    }
    .promo-badge__label {
        font-size: 0.8125rem;
    }
}
@media (min-width: 850px) {
    .promo-badge__label {
        display: none;
    }
}

/* ---------- 4. PROMO POPUP ---------- */
.promo-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.promo-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.promo-popup {
    position: relative;
    width: 420px;
    max-width: 94vw;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0,0,0,0.3);
    transform: scale(0.85);
    transition: transform 0.3s;
    font-family: "Gilroy", sans-serif;
}
.promo-popup-overlay.show .promo-popup {
    transform: scale(1);
}

/* dark header area */
.promo-popup__header {
    background: #1a1a1a;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}
.promo-popup__badge {
    display: inline-block;
    background: #E53935;
    color: #FFF;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.promo-popup__title {
    color: #FFF;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
.promo-popup__value {
    color: #FFB800;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}
.promo-popup__value-currency {
    color: #FFB800;
    font-size: 1.5rem;
    font-weight: 700;
}
.promo-popup__subtitle {
    color: #999;
    font-size: 0.9375rem;
    font-weight: 400;
    margin-top: 0.25rem;
}

/* close button */
.promo-popup__close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.25rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 50%;
}
.promo-popup__close:hover {
    color: #FFF;
    background: rgba(255,255,255,0.1);
}

/* white body area */
.promo-popup__body {
    background: #FFF;
    padding: 1.5rem 2rem 2rem;
}
.promo-popup__text {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    text-align: center;
}
.promo-popup__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.promo-popup__input {
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: "Gilroy", sans-serif;
    outline: none;
    transition: 0.3s;
}
.promo-popup__input:focus {
    border-color: #50C475;
    box-shadow: 0 0 0 3px rgba(80,196,117,0.15);
}
.promo-popup__input::placeholder {
    color: #aaa;
}
.promo-popup__submit {
    padding: 0.9rem;
    background: linear-gradient(135deg, #FFB800 0%, #FF8C00 100%);
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-family: "Gilroy", sans-serif;
    position: relative;
    overflow: hidden;
}
.promo-popup__submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.promo-popup__submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.35) 25%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0.35) 75%,
        transparent 100%
    );
    animation: btnShimmer 2.5s ease-in-out infinite;
    pointer-events: none;
}
.promo-popup__consent {
    color: #aaa;
    font-size: 0.6875rem;
    text-align: center;
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* promo popup mobile adjustments */
@media (max-width: 479px) {
    .promo-popup__header {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    .promo-popup__title {
        font-size: 1.0625rem;
    }
    .promo-popup__value {
        font-size: 2.5rem;
    }
    .promo-popup__value-currency {
        font-size: 1.125rem;
    }
    .promo-popup__body {
        padding: 1.25rem 1.25rem 1.5rem;
    }
    .promo-popup__input {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    .promo-popup__submit {
        padding: 0.8rem;
        font-size: 0.9375rem;
    }
}

/* success state */
.promo-popup__success {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
    background: white;
}
.promo-popup__success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: #E8F5E9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-popup__success-title {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.promo-popup__success-text {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
}
