.penta-loading {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #fff;
    border-top: 2px gray solid;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.penta-success-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: Archivo, sans-serif;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.penta-success-popup.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}

.penta-success-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(33, 35, 37, 0.78);
    backdrop-filter: blur(8px);
}

.penta-success-popup__card {
    position: relative;
    width: min(100%, 480px);
    padding: 72px 42px 34px;
    overflow: visible;
    border: 1px solid rgba(10, 106, 55, 0.16);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    color: #212325;
    text-align: center;
    transform: translateY(18px) scale(0.96);
    transition: transform 0.35s ease;
}

.penta-success-popup.is-visible .penta-success-popup__card {
    transform: translateY(0) scale(1);
}

.penta-success-popup__icon {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border: 7px solid #fff;
    border-radius: 50%;
    background: #0a6a37;
    box-shadow: 0 12px 30px rgba(10, 106, 55, 0.28);
    transform: translate(-50%, -42%);
}

.penta-success-popup__icon svg {
    width: 44px;
    height: 44px;
}

.penta-success-popup__icon path {
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.penta-success-popup__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #0a6a37;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.penta-success-popup__card h2 {
    margin: 0;
    color: #000;
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 500;
    letter-spacing: -1.2px;
    line-height: 1.1;
}

.penta-success-popup__card p {
    max-width: 350px;
    margin: 18px auto 26px;
    color: rgba(33, 35, 37, 0.65);
    font-size: 15px;
    line-height: 1.6;
}

.penta-success-popup__button {
    width: 100%;
    padding: 15px 24px;
    border: 0;
    border-radius: 999px;
    background: #0a6a37;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.penta-success-popup__button:hover,
.penta-success-popup__button:focus-visible {
    background: #212325;
    outline: none;
    transform: translateY(-2px);
}

.penta-success-popup__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 0 0 24px 24px;
    background: #0a6a37;
    transform: scaleX(0);
    transform-origin: left;
}

.penta-success-popup.is-visible .penta-success-popup__progress {
    animation: penta-popup-progress 5s linear forwards;
}

@keyframes penta-popup-progress {
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 600px) {
    .penta-success-popup__card {
        padding: 66px 24px 26px;
        border-radius: 20px;
    }

    .penta-success-popup__icon {
        width: 82px;
        height: 82px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .penta-success-popup,
    .penta-success-popup__card {
        transition: none;
    }

    .penta-success-popup.is-visible .penta-success-popup__progress {
        animation: none;
    }
}
