/* Contact Form Styles */
.aica-contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.aica-contact-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.aica-contact-form-header h3 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.aica-contact-form-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.aica-contact-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.aica-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.aica-form-row:last-child {
    margin-bottom: 0;
}

.aica-form-field {
    flex: 1;
    position: relative;
}

.aica-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.aica-form-field .required {
    color: #e74c3c;
    font-weight: bold;
}

.aica-form-field input,
.aica-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.aica-form-field input:focus,
.aica-form-field textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.aica-form-field input.error,
.aica-form-field textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.aica-form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.aica-submit-btn {
    background: #111928;
    color: #FFF;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px;
    border-radius: 12px;
    border: 1px solid #DFE4EA;
    padding: 14px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.aica-submit-btn:hover:not(:disabled) {
    background: #0f1419;
    border-color: #c1c7cd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 25, 40, 0.3);
}

.aica-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.aica-submit-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.aica-form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 500;
}

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

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

.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aica-contact-form-wrapper {
        padding: 15px;
    }
    
    .aica-contact-form {
        padding: 20px;
    }
    
    .aica-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .aica-contact-form-header h3 {
        font-size: 24px;
    }
    
    .aica-submit-btn {
        width: 100%;
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .aica-contact-form-wrapper {
        padding: 10px;
    }
    
    .aica-contact-form {
        padding: 15px;
    }
    
    .aica-contact-form-header h3 {
        font-size: 20px;
    }
    
    .aica-form-field input,
    .aica-form-field textarea {
        padding: 10px 12px;
    }
}

/* Loading States */
.aica-submit-btn.loading .btn-text {
    display: none;
}

.aica-submit-btn.loading .btn-loading {
    display: flex !important;
}

/* Accessibility */
.aica-form-field input:focus,
.aica-form-field textarea:focus,
.aica-submit-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .aica-form-field input,
    .aica-form-field textarea {
        border-width: 3px;
    }
    
    .aica-submit-btn {
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .aica-form-field input,
    .aica-form-field textarea,
    .aica-submit-btn {
        transition: none;
    }
    
    .aica-submit-btn:hover:not(:disabled) {
        transform: none;
    }
    
    .aica-submit-btn .spinner {
        animation: none;
    }
}
