/* contact.css - Styling for Contact Us form */
/* Matches existing site theme with dark mode support */

.contact-wrapper {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #e5e7eb;
}

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

/* Toggle Button */
.contact-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.dark .contact-toggle {
    background: #1f2937;
    border-color: #374151;
    color: #93c5fd;
}

.contact-toggle:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.dark .contact-toggle:hover {
    border-color: #0ea5e9;
    background: #1e293b;
}

.contact-toggle i:first-child {
    font-size: 1.25rem;
    color: #0ea5e9;
}

.contact-toggle i:last-child {
    margin-left: auto;
    font-size: 0.875rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.dark .contact-toggle i:last-child {
    color: #9ca3af;
}

.contact-toggle.expanded i:last-child {
    transform: rotate(180deg);
}

/* Collapsible Content */
.contact-content {
    margin-top: 1.5rem;
    animation: slideDown 0.3s ease;
}

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

.contact-header {
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.dark .contact-title {
    color: #93c5fd;
}

.contact-subtitle {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
}

.dark .contact-subtitle {
    color: #9ca3af;
}

/* Contact Form */
.contact-form-container {
    padding: 2rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.dark .contact-form-container {
    background: #1f2937;
    border-color: #374151;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9375rem;
}

.dark .form-label {
    color: #d1d5db;
}

.form-label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .form-input,
.dark .form-textarea {
    background: #111827;
    border-color: #4b5563;
    color: #f3f4f6;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

/* Checkbox for urgent */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .checkbox-group {
    background: #111827;
    border-color: #4b5563;
}

.checkbox-group:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.dark .checkbox-group:hover {
    border-color: #0ea5e9;
    background: #1e293b;
}

.checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #0ea5e9;
}

.checkbox-label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark .checkbox-label {
    color: #d1d5db;
}

.urgent-icon {
    color: #f59e0b;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.submit-btn {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-message i {
    font-size: 1.25rem;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.dark .form-message.success {
    background: #064e3b;
    color: #6ee7b7;
    border-color: #047857;
}

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

.dark .form-message.error {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #b91c1c;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .contact-wrapper {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-message {
    animation: fadeIn 0.3s ease;
}
