/**
 * Atelogia Contact Form Styles
 */

/* Container */
.atelogia-contact-form-container {
    width: 100%;
}

/* Title */
.atelogia-form-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 24px 0;
    text-align: center;
}

/* Form */
.atelogia-form {
    width: 100%;
}

/* Form Group */
.atelogia-form-group {
    margin-bottom: 20px;
}

/* Label */
.atelogia-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.atelogia-required {
    color: #ef4444;
    margin-left: 2px;
}

/* Input & Textarea */
.atelogia-input,
.atelogia-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.atelogia-input:focus,
.atelogia-textarea:focus {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.atelogia-input::placeholder,
.atelogia-textarea::placeholder {
    color: #94a3b8;
}

.atelogia-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Honeypot (invisível) */
.atelogia-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Submit Button */
.atelogia-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #10B981;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.atelogia-submit:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.atelogia-submit:active {
    transform: translateY(0);
}

.atelogia-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.atelogia-submit.loading {
    position: relative;
    color: transparent;
}

.atelogia-submit.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: atelogia-spin 0.6s linear infinite;
}

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

/* Messages */
.atelogia-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
    animation: atelogia-fadeIn 0.3s ease;
}

.atelogia-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10B981;
}

.atelogia-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

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

/* reCAPTCHA Badge */
.atelogia-recaptcha-badge {
    margin-top: 16px;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

/* Validation Errors */
.atelogia-input.error,
.atelogia-textarea.error {
    border-color: #ef4444;
}

.atelogia-input.error:focus,
.atelogia-textarea.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Responsive */
@media (max-width: 640px) {
    .atelogia-form-title {
        font-size: 18px;
    }
    
    .atelogia-input,
    .atelogia-textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .atelogia-submit {
        padding: 12px 20px;
        font-size: 15px;
    }
}
