/* Success Modal Overlay */
.contact-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 11, 24, 0.92);
    backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-success-modal .modal-content-card,
.contact-success-modal .modal-content-card * {
    color: #ffffff !important;
    opacity: 1 !important;
}

.contact-success-modal.active {
    display: flex;
    animation: modalFadeIn 0.4s forwards;
}

@keyframes modalFadeIn {
    to {
        opacity: 1;
    }
}

/* Modal Content Card */
.modal-content-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(16, 29, 50, 0.98));
    border-radius: 28px;
    padding: 56px 48px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 50px 120px rgba(5, 11, 24, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    animation: modalScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalScaleIn {
    to {
        transform: scale(1);
    }
}

/* Decorative background glow */
.modal-content-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(56, 245, 255, 0.08), transparent 70%);
    pointer-events: none;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Modal Logo */
.modal-logo {
    position: relative;
    z-index: 2;
    margin: 0 auto 32px;
    width: 160px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(56, 245, 255, 0.2));
}

/* Success Icon */
.modal-success-icon {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(56, 245, 255, 0.18));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: successIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both, iconPulse 2s ease-in-out 0.9s infinite;
}

@keyframes successIconPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

.success-emoji {
    font-size: 42px;
    display: inline-block;
    animation: emojiPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

@keyframes emojiPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Modal Text */
.modal-title {
    position: relative;
    z-index: 2;
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

.modal-title span {
    color: #ffffff !important;
}

.modal-message {
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 0 36px;
}

.modal-message span {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Modal Button */
.modal-confirm-btn {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(56, 245, 255, 0.15));
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 48px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.modal-confirm-btn span {
    color: #ffffff !important;
}

.modal-confirm-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(56, 245, 255, 0.25));
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
}

.modal-confirm-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .modal-content-card {
        padding: 40px 32px;
    }

    .modal-logo {
        width: 140px;
        margin-bottom: 24px;
    }

    .modal-success-icon {
        width: 64px;
        height: 64px;
    }

    .modal-success-icon svg {
        width: 32px;
        height: 32px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-message {
        font-size: 0.95rem;
    }

    .modal-confirm-btn {
        padding: 14px 36px;
        font-size: 0.9rem;
    }
}
