/**
 * AKS Official Contact Form - Styles
 * 
 * Minimal CSS for form feedback states only.
 * Does not override existing form design.
 * 
 * @version 1.0.0
 * @author AKS
 */

/* ============================================
   Message Containers
   ============================================ */

.aks-contact-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    animation: aksFadeIn 0.3s ease-in-out;
}

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

/* Success Message */
.aks-contact-message-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block !important;
}

.aks-contact-message-success::before {
    content: '✓ ';
    font-weight: bold;
}

/* Error Message */
.aks-contact-message-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block !important;
}

.aks-contact-message-error::before {
    content: '⚠ ';
    font-weight: bold;
}

/* ============================================
   Loading Spinner
   ============================================ */

.aks-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: aksSpin 0.8s linear infinite;
}

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

/* Loading State on Button */
.aks-loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.aks-loading .aks-button-text {
    opacity: 0.9;
}

/* ============================================
   Field Error States
   ============================================ */

.aks-field-error {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.aks-field-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
    outline: none;
}

/* ============================================
   Honeypot Field (Hidden)
   ============================================ */

.aks-honeypot {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .aks-contact-message {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .aks-spinner {
        width: 14px;
        height: 14px;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.aks-contact-message:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .aks-contact-message-success {
        border-width: 2px;
    }
    
    .aks-contact-message-error {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .aks-contact-message {
        animation: none;
    }
    
    .aks-spinner {
        animation: none;
        border: 2px solid #fff;
    }
}
