/**
 * ============================================================================
 * CONTACT FORM STYLES
 * ============================================================================
 * Beautiful notifications and form feedback styles
 */

/* ========== NOTIFICATION STYLES ========== */
.contact-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 350px;
    max-width: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    z-index: 99999;
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.contact-notification .notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-notification .notification-content {
    flex: 1;
}

.contact-notification .notification-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.contact-notification .notification-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.contact-notification .notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: #999;
    font-size: 18px;
}

.contact-notification .notification-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Success Notification */
.contact-notification-success .notification-icon {
    background-color: #d4edda;
    color: #155724;
}

.contact-notification-success .notification-title {
    color: #155724;
}

/* Error Notification */
.contact-notification-error .notification-icon {
    background-color: #f8d7da;
    color: #721c24;
}

.contact-notification-error .notification-title {
    color: #721c24;
}

/* Warning Notification */
.contact-notification-warning .notification-icon {
    background-color: #fff3cd;
    color: #856404;
}

.contact-notification-warning .notification-title {
    color: #856404;
}

/* Info Notification */
.contact-notification-info .notification-icon {
    background-color: #d1ecf1;
    color: #0c5460;
}

.contact-notification-info .notification-title {
    color: #0c5460;
}

/* ========== FORM VALIDATION STYLES ========== */
.form-control.is-invalid,
.form-check-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
}

.form-control.is-valid,
.form-check-input.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.1);
}

.field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* ========== LOADING SPINNER ========== */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    .contact-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* ========== BUTTON DISABLED STATE ========== */
button[type="submit"]:disabled,
.theme-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== SMOOTH FOCUS STYLES ========== */
.form-control:focus,
.form-check-input:focus {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
