/* Contact Form Feedback Styles */

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
    z-index: 10000;
    max-width: 420px;
    animation: toastSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.toast-notification.toast-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.toast-notification.toast-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
}

.toast-notification.toast-hide {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.toast-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: toastIconBounce 0.6s ease-out;
}

@keyframes toastIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-message {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    margin-left: 10px;
    line-height: 1;
}

.toast-close:hover {
    opacity: 1;
}

/* Mobile responsiveness for toast */
@media (max-width: 768px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    @keyframes toastSlideIn {
        from {
            opacity: 0;
            transform: translateY(-100px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes toastSlideOut {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(-100px);
        }
    }
}

/* Form Message Styles */
.form-message {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: slideIn 0.3s ease-out;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.form-message-success .message-icon {
    color: #28a745;
}

.form-message-error .message-icon {
    color: #dc3545;
}

.message-content {
    flex-grow: 1;
}

.message-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.message-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.2s;
}

.message-close:hover {
    opacity: 1;
}

/* Field Error Styles */
.field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.field-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
}

/* Input Error State */
.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Loading State for Submit Button */
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn-submit:disabled::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-message {
        flex-direction: column;
        text-align: center;
    }
    
    .message-close {
        top: 5px;
        right: 5px;
    }
    
    .message-content h4 {
        font-size: 16px;
    }
    
    .message-content p {
        font-size: 13px;
    }
}