/**
 * AICT Contact Form Styles
 * @package AICT_Core
 * @since 1.5.5
 */

.aict-contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.aict-form-group {
    margin-bottom: 1.5rem;
}

.aict-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.aict-input,
.aict-select,
.aict-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aict-input:focus,
.aict-select:focus,
.aict-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.aict-input::placeholder,
.aict-textarea::placeholder {
    color: #9e9e9e;
}

.aict-textarea {
    resize: vertical;
    min-height: 120px;
}

.aict-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Honeypot field - hidden from humans */
.aict-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.aict-form-actions {
    margin-top: 2rem;
}

.aict-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aict-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    width: 100%;
}

.aict-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.aict-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.aict-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aict-btn .btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: aict-spin 0.8s linear infinite;
}

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

.aict-form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.aict-form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
}

.aict-form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.aict-form-message ul {
    margin: 0;
    padding-left: 1.25rem;
}

.aict-form-message li {
    margin-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 640px) {
    .aict-contact-form {
        padding: 1rem;
    }

    .aict-btn-primary {
        padding: 1rem;
    }
}
