/* ==========================================
   SUCCESS MODAL STYLES
========================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.show .success-modal {
    transform: scale(1) translateY(0);
}

.success-modal__content {
    padding: 3rem;
    text-align: center;
}

.success-modal__icon {
    margin-bottom: 1.5rem;
}

.success-modal__icon i {
    font-size: 4rem;
    color: #228B22;
    animation: successCheckmark 0.6s ease-out 0.3s both;
}

@keyframes successCheckmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal h3 {
    color: #2F4F2F;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.success-modal p {
    color: #555555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-modal__details {
    background: #F8F8F8;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.success-modal__details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.success-modal__details p:last-child {
    margin-bottom: 0;
}

.success-modal__details strong {
    color: #2F4F2F;
}

.success-modal__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-modal__actions .btn {
    min-width: 140px;
}

/* Form Message Styles */
.form-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
    animation: slideInFromTop 0.4s ease-out;
}

.form-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message i {
    font-size: 1.2rem;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading button state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .success-modal__content {
        padding: 2rem;
    }
    
    .success-modal__actions {
        flex-direction: column;
    }
    
    .success-modal__actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .success-modal__icon i {
        font-size: 3rem;
    }
} 