/* ===================================
   GLOBAL SUCCESS MODAL STYLES
   =================================== */
.fmc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

.fmc-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150%);
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    text-align: center;
    height: 0;
}

.fmc-modal-box.active {
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    height: auto;
}

.fmc-modal-header {
    background: #134877;
    padding: 0px 0px 22px;
    border-radius: 16px 16px 50% 50% / 0 0 30px 30px;
    position: relative;
}

.fmc-logo-circle {
    width: 70%;
    background: #fff;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    bottom: -10px;
    border: 4px solid #fff;
    border-radius: 3px 61px 50% 50% / 0 0 20px 20px;
    padding: 0px 60px;
}

.fmc-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.fmc-modal-body {
    padding: 20px 40px 20px;
}

.fmc-success-title {
    font-family: 'League Spartan', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #134877;
}

.fmc-success-msg {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: center;
}

.fmc-ref-badge {
    background: #f0f8ff;
    color: #134877;
    border: 1px dashed #134877;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 25px;
}

.fmc-btn-action {
    background: #ffca33;
    color: #000;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 202, 51, 0.3);
}

.fmc-btn-action:hover {
    background: #e0b12d;
    transform: translateY(-2px);
}

.success-checkmark {
    width: 30px;
    height: 30px;
}

.check-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #28a745;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #28a745;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.check-icon__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.check-icon__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 30px #fff;
    }
}
