html {
    scroll-behavior: smooth;
}

#leadForm-priceForm {
    padding-top: 34px;
}


@keyframes shake-inf {

    0%,
    16% {
        transform: translateX(0);
    }

    17% {
        transform: translateX(-2px);
    }

    19% {
        transform: translateX(2px);
    }

    21% {
        transform: translateX(-2px);
    }

    23% {
        transform: translateX(2px);
    }

    25% {
        transform: translateX(-1px);
    }

    27% {
        transform: translateX(1px);
    }

    29% {
        transform: translateX(-1px);
    }

    31% {
        transform: translateX(1px);
    }

    33%,
    100% {
        transform: translateX(0);
    }
}

.priceElem {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.priceLayouts__price {
    grid-column: 1;
    grid-row: 1;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.priceLayouts__price.priceBlurred {
    opacity: 0.5;
    filter: blur(10px);
    pointer-events: none;
}

.priceElem table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.priceElem table thead {
    background: #f9fafb;
}

.priceElem table th {
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: capitalize;
    font-family: var(--font-cal-sans);
    color: #374151;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.priceElem table td {
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    color: #111827;
    border-bottom: 1px solid #f1f5f9;
}

.priceElem table tr:last-child td {
    border-bottom: none;
}

.priceActive>table {
    animation: shake-inf 4s;
}


.priceActive.priceElem table td:nth-child(3),
.priceActive.priceElem table td:nth-child(4) {
    animation: none !important;
}

.priceElem table td:nth-child(3) {
    color: #4a7dff;
    font-weight: 600;
    animation: shake-inf 3s infinite;

}

.priceElem table td:nth-child(4) {
    color: #16a34a;
    font-weight: 600;
    animation: shake-inf 3s infinite;

}

.priceElem table tbody tr:hover {
    background: #f9fafb;
    transition: background 0.2s ease;
}

.priceElem table td:nth-child(3),
.priceElem table td:nth-child(4) {
    position: relative;
    cursor: help;
}

.priceElem table td .tdTooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    z-index: 20;
    width: max-content;
    max-width: 220px;
    background: #fff;
    color: #111827;
    border: 1px solid var(--color-primary-main);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.priceElem table td .tdTooltip::before,
.priceElem table td .tdTooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-bottom: none;
}

.priceElem table td .tdTooltip::before {
    border-top-color: var(--color-primary-main);
    margin-top: 1px;
}

.priceElem table td .tdTooltip::after {
    border-top-color: #fff;
}

.priceElem table td:nth-child(3):hover .tdTooltip,
.priceElem table td:nth-child(4):hover .tdTooltip {
    opacity: 1;
    visibility: visible;
}

.priceActive.priceElem table td:nth-child(3),
.priceActive.priceElem table td:nth-child(4) {
    cursor: default;
}

.priceActive.priceElem table td:nth-child(3):hover .tdTooltip,
.priceActive.priceElem table td:nth-child(4):hover .tdTooltip {
    opacity: 0;
    visibility: hidden;
}


@media screen and (max-width: 992px) {

    .priceElem {
        border: none;
        background: transparent;
    }

    .priceElem table {
        background-color: transparent;
    }

    .priceElem table thead {
        display: none;
    }

    .priceElem table,
    .priceElem table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .priceElem table tr {
        display: block;
        background: #ffffff;
        border-radius: 14px;
        padding: 1rem;
        border: 1px solid #dfdfdf;
        overflow: hidden;
    }

    .priceElem table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 0;
        font-size: 16px;
        border: none;
    }

    .priceElem table td:first-child {
        font-size: 1rem;
        font-weight: 700;
        color: #111827;
        padding-top: 0;
        padding-bottom: 0.8rem;
        margin-bottom: 0.8rem;
        position: relative;
    }

    .priceElem table td:first-child::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        border-bottom: 1px dashed #e5e7eb;
    }

    .priceElem table td::after {
        content: attr(data-label);
        font-size: 13px;
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
        margin-left: 0.6rem;
        white-space: nowrap;
    }

    .priceElem table td:nth-child(2) {
        color: #374151;
        font-weight: 700;
    }

    .priceElem table td:nth-child(3) {
        color: #4a7dff;
        font-weight: 700;
        font-size: 16px;
        animation: none;
    }

    .priceElem table td:nth-child(4) {
        background: #ecfdf5;
        color: #16a34a;
        font-weight: 700;
        padding: 0.6rem;
        border-radius: 8px;
        border: 1px solid #b3edd2;
        margin-top: 0.3rem;
        animation: none;
    }

    .priceElem table tr:last-child td:last-child {
        border-bottom: 1px solid #b3edd2;
    }

    .priceActive.priceElem table td:nth-child(4)::after {
        display: block !important;
    }

    .priceElem table td:nth-child(4)::after {
        color: #16a34a;
        display: none;
    }
}


@media (max-width: 991px) {
    .saving-link {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        background-color: #16a34a;
        color: #fff;
        padding: 5px 10px;
        border-radius: 5px;
    }

    .saving-link svg {
        width: 20px;
        height: auto;
    }

    .saving-link svg path {
        fill: #fff;
    }
}

@media (min-width: 992px) {
    .saving-link {
        display: none;
    }
}


.priceLayouts {
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.priceLayouts__form {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    z-index: 40;
}





@keyframes float {
    0% {
        transform: translate(0px, 0px);
    }

    25% {
        transform: translate(2px, -2px);
    }

    50% {
        transform: translate(0px, -4px);
    }

    75% {
        transform: translate(-2px, -2px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}

.bubbleText {
    position: absolute;
    top: -10px;
    right: -75px;
    z-index: 2;
    background-color: #4a7dff;
    animation: float 3s ease-in-out infinite;
}

.pulse {
    background-color: #95afd7;
    height: 85px;
    width: 85px;
    border-radius: 100%;

    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pulse img {
    border: 4px solid #fff;
    width: 85px;
    height: 85px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
}

.ring {
    position: absolute;
    background-color: inherit;
    height: 100%;
    width: 100%;
    border-radius: 100%;
    opacity: 0.2;
    -webkit-animation: pulsing 2s ease-out infinite;
    animation: pulsing 2s ease-out infinite;
}

.ring:nth-of-type(1) {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}

.ring:nth-of-type(2) {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.ring:nth-of-type(3) {
    -webkit-animation-delay: -1.5s;
    animation-delay: -1.5s;
}

@-webkit-keyframes pulsing {
    100% {
        transform: scale(1.50);
        opacity: 0;
    }
}

@keyframes pulsing {
    100% {
        transform: scale(1.50);
        opacity: 0;
    }
}

/* FormBuilder (Lead magnet = Price) inside the callback card */
.lm-price-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    width: 100%;
}

.lm-price-form .form-label,
.lm-price-form label:not(.form-check-label) {
    display: block;
    margin: 0;
    color: #1a2535;
    font-size: 14px;
    font-weight: 500;
}

.lm-price-form .form-control,
.lm-price-form input[type="text"],
.lm-price-form input[type="tel"],
.lm-price-form input[type="email"] {
    width: 100%;
    min-height: 48px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    background: #f2f2f2 !important;
    color: #111;
    font-size: 15px;
    outline: 0;
}

.lm-price-form .iti {
    width: 100%;
}

.lm-price-form .iti input.form-control,
.lm-price-form .iti input[type="tel"] {
    width: 100%;
    background: #f2f2f2 !important;
}

.lm-price-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding-left: 0;
}

.lm-price-form .form-check-input {
    float: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.lm-price-form .form-check-label {
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

.lm-price-form .form-check-label a,
.lm-price-form .privacy-policy-link {
    color: #4a7dff;
    font-weight: 600;
    text-decoration: underline;
}

.lm-price-form .mgn-submit-button,
.lm-price-form .mgn-submit-button.btn,
.lm-price-form .mgn-submit-button.btn-primary,
.lm-price-form button[type="submit"],
.lm-price-form input[type="submit"],
.lm-price-form .btn[type="submit"],
.lm-price-form .btn-primary {
    appearance: none;
    width: 100%;
    min-height: 48px;
    border: 0 !important;
    border-radius: 12px;
    opacity: 1 !important;
    background-color: #4a7dff !important;
    background-image: linear-gradient(135deg, #4a7dff 0%, #2d4b99 100%) !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    box-shadow: none !important;
    cursor: pointer;
}

.lm-price-form .mgn-submit-button:hover,
.lm-price-form button[type="submit"]:hover,
.lm-price-form .btn-primary:hover {
    opacity: 1 !important;
    background-color: #3468f5 !important;
    background-image: linear-gradient(135deg, #3468f5 0%, #243f82 100%) !important;
    color: #ffffff !important;
}

.lm-price-form .mgn-consent-wrapper--optional:has(label:empty),
.lm-price-form .form-check:has(.form-check-label:empty) {
    display: none !important;
}
