/* Basic Reset & Modal Styles */
.angie-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.angie-success-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.angie-success-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(79, 78, 78, 0.7); /* Primary color #4F4E4E with opacity */
}

.angie-success-modal-content {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    font-family: inherit;
}

.angie-success-modal.is-visible .angie-success-modal-content {
    transform: translateY(0);
}

.angie-success-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #B0B0B0; /* Secondary */
    transition: color 0.2s;
}

.angie-success-modal-close:hover {
    color: #4F4E4E;
}

.angie-success-header {
    padding: 40px 30px 30px;
    text-align: center;
}

.angie-success-icon {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1;
}

.angie-success-header h2 {
    margin: 0 0 15px;
    color: #4F4E4E;
    font-size: 22px;
    font-weight: 700;
}

.angie-success-header p {
    color: #4F4E4E;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 15px;
}

/* Erhöhte Spezifität durch den Modal-Container */
.angie-success-modal-content a.angie-btn-primary,
.angie-success-modal-content .angie-btn-primary {
    display: inline-block;
    background: #FEED01;
    color: #4F4E4E; /* Jetzt wird die Textfarbe erzwungen */
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s, transform 0.2s;
}

/* Hover-Zustand ebenfalls verstärken */
.angie-success-modal-content a.angie-btn-primary:hover,
.angie-success-modal-content .angie-btn-primary:hover {
    background: #e6d601;
    transform: translateY(-2px);
    color: #4F4E4E;
}

.angie-success-secondary {
    background: #f9f9f9;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #eeeeee;
}

.angie-success-secondary h3 {
    margin: 0 0 10px;
    color: #4F4E4E;
    font-size: 18px;
    font-weight: 600;
}

.angie-success-secondary p {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
}

.angie-btn-secondary {
    display: inline-block;
    background: transparent;
    color: #4F4E4E;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #4F4E4E;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.angie-btn-secondary:hover {
    background: #4F4E4E;
    color: #ffffff;
}

/* Hide standard Elementor success message globally for forms that use this box */
.elementor-message.elementor-message-success.hidden-by-angie {
    display: none !important;
}