
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes bounceRotate {
    0%   { transform: scale(0.5) rotate(-30deg); opacity: 0; }
    50%  { transform: scale(1.2) rotate(15deg); opacity: 1; }
    70%  { transform: scale(0.9) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes elasticSlide {
    0%   { opacity: 0; transform: translateY(-60px); }
    50%  { opacity: 1; transform: translateY(10px); }
    70%  { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes pulseGlow {
    0%   { box-shadow: 0 0 0 0 rgba(1, 94, 99, 0.7); }
    70%  { box-shadow: 0 0 0 15px rgba(1, 94, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(1, 94, 99, 0); }
}
@keyframes failGlow {
    0%   { box-shadow: 0 0 0 0 rgba(235, 33, 66, 0.7); }
    70%  { box-shadow: 0 0 0 15px rgba(1, 94, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(1, 94, 99, 0); }
}
@keyframes circlePulse {
    0%   { transform: scale(0.9); opacity: 0.7; }
    50%  { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

@keyframes circleRotate {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1); }
}

.sucess-icon, .failed-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sucess-icon::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #015e63,
        #049494,
        #015e63
    );
    z-index: -1;
    animation: circleRotate 6s linear infinite;
}
.failed-icon::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #b3083b,
        #bb1927,
        #831221
    );
    z-index: -1;
    animation: circleRotate 6s linear infinite;
}

/* Icon Glow */
/* .fa-solid.fa-circle-check,
.fa-solid.fa-circle-xmark {
    font-size: 60px;
    color: #015e63;
    animation: pulseGlow 3s infinite;
} */

/* Apply animations */
.sucessful-message-box,
.failed-message-box {
    animation: fadeInScale 1s ease-out;
    
}

/* .sucessful-message-box .sucess-icon i,
.failed-message-box .failed-icon i {
    animation: bounceRotate 1s ease forwards;
} */

.confirmation-section h2 {
    animation: elasticSlide 1.2s ease;
}

.green-btn1 {
    animation: pulseGlow 2s infinite;
}
.fail-button{
    animation:failGlow 2s infinite;
}
.confirmation-section {
    min-height: 100vh;
    display: flex;
    justify-content: center; /* only horizontal center */
    padding: 80px 20px; /* add equal top & bottom spacing */
}


.confirmation-section::before,
.confirmation-section::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 6s infinite alternate ease-in-out;
}

/* .confirmation-section::before {
    top: -100px;
    left: -100px;
    background: #015e63;
}

.confirmation-section::after {
    bottom: -100px;
    right: -100px;
    background: rgba(37, 99, 235, 0.15);
} */

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}

.sucessful-message-box,
.failed-message-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 70px 50px;
    max-width: 650px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    animation: fadeInUp 0.7s ease-in-out;
}

.sucessful-message-box .sucess-icon,
.failed-message-box .failed-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    animation: popIn 0.5s ease forwards;
}

.sucessful-message-box .sucess-icon i {
    color: #f3f0ee;
    font-size: 50px;
}

.failed-message-box .failed-icon i {
    color: #f3f0ee;
    font-size: 50px;
}

.confirmation-section h2 {
    font-size: 46px;
    font-weight: 700;
    background: linear-gradient(90deg, #015e63, #033a3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeSlide 1s ease-out;
    margin-bottom: 20px;
    font-family: "Poppins", sans-serif;
}
.failed-message-box .fail-payment {
    font-size: 46px;
    font-weight: 700;
    background: linear-gradient(90deg, #630119, #ec0436);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeSlide 1s ease-out;
    margin-bottom: 20px;
    font-family: "Poppins", sans-serif;
}

.message-box p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
    font-family: "Inter", sans-serif;
    text-transform: none;
}

.green-btn1 {
    display: inline-block;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 1px;
}

.green-btn1 {
    background: linear-gradient(135deg, #015e63, #033a3d);
    color: #fff;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    text-transform: uppercase;
}
.fail-button{
    background: linear-gradient(135deg, #630109, #aa041a);
    
    box-shadow: 0 6px 20px rgba(221, 14, 31, 0.4);
}
.green-btn1:hover {
    background: linear-gradient(135deg, #015e63, #033a3d);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.5);
    transform: translateY(-2px);
}
.fail-button:hover{
     background: linear-gradient(135deg, #630109, #aa041a);
    box-shadow: 0 8px 24px rgba(221, 14, 31, 0.4);
}




@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .sucessful-message-box,
    .failed-message-box {
        padding: 40px 20px;
    }

    .confirmation-section h2 {
        font-size: 32px;
    }

    .message-box p {
        font-size: 16px;
    }

    .green-btn1
    {
        font-size: 16px;
        padding: 12px 30px;
    }
}
