/**
 * Contact form styles
 *
 * @package Trezentorres
 */

/* Contact Form Container */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    dark:bg-gray-800;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .contact-form-wrapper {
    background: #1f2937;
}

/* Form Grid */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .contact-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Fields */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1rem;
}

.wpcf7-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.dark .wpcf7-form-control {
    background: #374151;
    border-color: #4b5563;
    color: white;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.dark .wpcf7-form-control:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

.wpcf7-form-control::placeholder {
    color: #9ca3af;
}

/* Textarea */
.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit Button */
.wpcf7-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.wpcf7-submit:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.3);
}

.wpcf7-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Error Messages */
.form-error-messages {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fee2e2;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.dark .form-error-messages {
    background: #7f1d1d;
}

.form-error-messages strong {
    color: #b91c1c;
}

.dark .form-error-messages strong {
    color: #fca5a5;
}

.form-error-messages ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.form-error-messages li {
    color: #b91c1c;
    font-size: 0.9rem;
}

.dark .form-error-messages li {
    color: #fca5a5;
}

/* Field Error State */
.border-red-500 {
    border-color: #ef4444 !important;
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.dark .field-error {
    color: #fca5a5;
}

/* Success Message */
.wpcf7-mail-sent-ok {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    margin-bottom: 1.5rem;
}

.dark .wpcf7-mail-sent-ok {
    background: #064e3b;
    color: #6ee7b7;
}

/* Validation States */
.wpcf7-validates-as-required {
    border-color: #ef4444 !important;
}

/* Label Styles */
.wpcf7-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.dark .wpcf7-label {
    color: #e5e7eb;
}

/* Required Asterisk */
.wpcf7-label .wpcf7-required {
    color: #ef4444;
}

/* Checkbox and Radio */
.wpcf7-list-item {
    display: inline-block;
    margin-right: 1rem;
}

.wpcf7-list-item-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.wpcf7-list-item-label input[type="checkbox"],
.wpcf7-list-item-label input[type="radio"] {
    width: auto;
    margin: 0;
}

/* File Upload */
.wpcf7-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wpcf7-file-upload {
    flex: 1;
}

/* Captcha */
.g-recaptcha {
    margin: 1rem 0;
}

/* Form Loading State */
.wpcf7-submit.wpcf7-is-loading {
    position: relative;
    color: transparent !important;
}

.wpcf7-submit.wpcf7-is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Contact Info Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.dark .contact-info {
    border-top-color: #374151;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dark .contact-info-icon {
    background: #374151;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    color: #1f2937;
}

.dark .contact-info-icon svg {
    color: #e5e7eb;
}

.contact-info-content h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.dark .contact-info-content h4 {
    color: #e5e7eb;
}

.contact-info-content p {
    color: #6b7280;
    font-size: 0.9rem;
}

.dark .contact-info-content p {
    color: #9ca3af;
}
