/* Contact Page Styles */

.contact-wrapper {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    gap: 2rem;
}

.contact-intro {
    width: 300px;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-intro h2 {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-intro p {
    margin-bottom: 1rem;
    text-align: left;
}

.contact-intro p:last-child {
    margin-bottom: 0;
}

.contact-intro a {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Form Container */
.contact-form-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    flex: 1;
}

/* Form Styles */
.contact-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: .5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 400;
    color: #003366;
    margin-bottom: 0.5rem;
    font-size: .9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.5;
    font-size: .9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

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

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.2rem;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.recaptcha-info {
    margin-bottom: 1rem;
    text-align: center;
}

.recaptcha-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.875rem;
}

.recaptcha-info a {
    color: var(--color-secondary);
    text-decoration: none;
}

.recaptcha-info a:hover {
    text-decoration: underline;
}

.btn-submit {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #002244 0%, #0052a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

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

.btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

/* Success/Error Messages */
.contact-message {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    margin-top: 2rem;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 0.5rem;
}

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

.error-message-container h3 {
    color: #721c24;
    margin-bottom: 0.5rem;
}

/* Loading State */
.form-loading {
    position: relative;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .contact-intro {
        flex: 1;
        width: 100%;
    }

    .contact-form-container {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {

    .contact-intro {
        padding: 1.5rem;
    }
    
    .contact-intro h2 {
        font-size: 1.5rem;
    }
    
    .contact-intro p {
        font-size: 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .btn-submit {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-intro {
        padding: 1rem;
    }
    
    .contact-intro h2 {
        font-size: 1.25rem;
    }
    
    .contact-form-container {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
}

/* Input Masks Styling */
/* .form-group input[placeholder*="000.000.000-00"],
.form-group input[placeholder*="(00) 00000-0000"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
} */

/* Focus States for Better Accessibility */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.btn-submit:focus {
    outline: 1px solid #c3cdd8;
    outline-offset: 1px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 3px;
    }
    
    .btn-submit {
        border: 3px solid #003366;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .form-group input,
    .form-group select,
    .form-group textarea,
    .btn-submit {
        transition: none;
    }
    
    .btn-submit:hover {
        transform: none;
    }
}

/* reCAPTCHA Badge Styling */
.grecaptcha-badge {
    visibility: hidden;
}

/* Custom reCAPTCHA notice */
.contact-form-container {
    position: relative;
}

.contact-form-container::after {
    content: '';
    display: block;
    height: 1px;
    clear: both;
}

/* Hide default reCAPTCHA badge and show custom notice */
@media (max-width: 768px) {
    .recaptcha-info {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}
