/* Success State Layout */
#state-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    /* Full viewport height for centering */
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 1000;
    /* Ensure it covers everything */
}

#state-success.active {
    display: flex;
}

#state-success .success-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

#state-success h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #000;
}

#state-success p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    max-width: 280px;
    margin: 0 0 30px 0;
}

#state-success .btn.primary {
    width: 100%;
    max-width: 320px;
}

/* Premium Animated Checkmark */
.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4CAF50;
    /* Green */
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px transparent;
        /* No fill, just stroke */
    }
}