/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Hide any JSON response text that might appear */
#contact-form::before {
    display: none !important;
}

form[id="contact-form"] > script,
form[id="contact-form"] > style {
    display: none !important;
}

/* Toast Base Styles */
.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Show Animation */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast Content */
.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Toast Icon */
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

/* Toast Message */
.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

/* Success Toast */
.toast-success {
    background-color: #10b981;
    color: white;
}

.toast-success .toast-icon {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Error Toast */
.toast-error {
    background-color: #ef4444;
    color: white;
}

.toast-error .toast-icon {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}