/* Contact Page Styles */

.contact-page {
    padding-top: 100px;
    padding-bottom: 4rem;
    min-height: 100vh;
    background: var(--gray-50);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 0 2rem;
    background: white;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Contact Form Container */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Form Section */
.contact-form-section {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2 {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-form-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding-top: 80px;
    }
    
    .page-header {
        padding: 2rem 0 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .contact-form-section h2 {
        font-size: 1.5rem;
    }
    
    .btn-large {
        font-size: 1rem;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .contact-form-section {
        padding: 1.25rem;
    }
}

/* Form Validation States */
.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown),
.form-textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Loading State */
.contact-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.contact-form.loading .btn-primary::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus visible for accessibility */
.form-input:focus-visible,
.form-textarea:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .contact-form-section {
        display: none;
    }
    
    .contact-page {
        padding-top: 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}