/**
 * Custom Form Notification Styles
 *
 * @package Mueller_Child_Theme
 */

/* ==========================================================================
   Form Success Notification
   ========================================================================== */

/* Overlay */
.capi-form-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.capi-form-notification-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Notification Container */
.capi-form-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 100%;
    max-width: 600px;
    background-color: #FFFFFF;
    border: 1px solid #DAE1E7;
    border-radius: 16px;
    padding: 245px 32px 32px 32px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.capi-form-notification.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Icon Container */
.capi-form-notification__icon-container {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-color: #22C55E;
}

.capi-form-notification__icon {
    font-size: 48px;
    color: #FFFFFF;
}

.capi-form-notification__icon svg {
    width: 48px;
    height: 48px;
    fill: #FFFFFF;
}

/* Content */
.capi-form-notification__content {
    text-align: center;
}

/* Title */
.capi-form-notification__title {
    margin: 0 0 16px 0;
    color: #191D20;
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 38.4px;
}

/* Message */
.capi-form-notification__message {
    margin: 0;
    color: #BCC1C7;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}

/* Close Button */
.capi-form-notification__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #BCC1C7;
    font-size: 24px;
    transition: color 0.2s ease;
    padding: 0;
    outline: none;
}

.capi-form-notification__close:hover {
    color: #191D20;
}

.capi-form-notification__close svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Animation keyframes */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .capi-form-notification {
        max-width: calc(100% - 32px);
        padding: 180px 24px 24px 24px;
    }

    .capi-form-notification__icon-container {
        width: 80px;
        height: 80px;
        top: 24px;
    }

    .capi-form-notification__icon {
        font-size: 40px;
    }

    .capi-form-notification__icon svg {
        width: 40px;
        height: 40px;
    }

    .capi-form-notification__title {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 12px;
    }

    .capi-form-notification__message {
        font-size: 14px;
        line-height: 21px;
    }
}

@media (max-width: 480px) {
    .capi-form-notification {
        max-width: calc(100% - 24px);
        padding: 160px 20px 20px 20px;
    }

    .capi-form-notification__icon-container {
        width: 72px;
        height: 72px;
    }

    .capi-form-notification__icon {
        font-size: 36px;
    }

    .capi-form-notification__icon svg {
        width: 36px;
        height: 36px;
    }

    .capi-form-notification__title {
        font-size: 20px;
        line-height: 28px;
    }

    .capi-form-notification__close {
        width: 28px;
        height: 28px;
        top: 12px;
        right: 12px;
        font-size: 20px;
    }
}
