#form-success-container {
    position: fixed !important;
    inset: 0 !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    transform: none !important; /* Prevent Locomotive Scroll interference */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000;
    will-change: transform;
    overflow: visible !important; /* Ensure visibility */
    pointer-events: all !important; /* Ensure clickability */
}

.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: none !important; /* Prevent Locomotive Scroll interference */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    overflow: visible !important;
}

#form-success-container.active {
    display: flex !important;
}

.form-success-overlay.fade-in {
    animation: none;
    opacity: 1;
}

#form-success {
    position: relative;
    z-index: 1;
    background: #151515;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#form-success .success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#form-success .success-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

#form-success h3 {
    margin-bottom: 1rem;
    font-family: syneR;
    font-size: 1.5rem;
    color: #fff;
}

#form-success p {
    margin-bottom: 2rem;
    font-family: syneR;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #fff;
}

/* Update success button styles */
.success-button {
    position: relative;
    z-index: 999999;
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-family: syneR;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.success-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Prevent scroll when overlay is active */
body.overlay-active {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

html.overlay-active {
    overflow: hidden !important;
}

@media (max-width: 480px) {
    #form-success {
        width: calc(100% - 2rem);
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    #form-success .success-icon {
        width: 60px;
        height: 60px;
    }
    
    #form-success .success-icon svg {
        width: 30px;
        height: 30px;
    }
}
