/* Contact Page Specific Styles */

.page-header {
    background: var(--gradient-hero);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--surface-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

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

.form-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form {
    max-width: none;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
}

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

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.form-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.form-note small {
    color: var(--text-light);
    line-height: 1.4;
}

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

/* Button Loading State */
.btn .btn-spinner {
    margin-left: 0.5rem;
}

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

.btn.loading .btn-spinner {
    display: inline-block;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card,
.faq-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

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

.info-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-header p {
    color: var(--text-secondary);
    margin: 0;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: white;
    font-size: 1.25rem;
}

.info-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-content small {
    color: var(--text-light);
}

/* FAQ Links */
.faq-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.faq-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.faq-link:hover {
    background: var(--surface-color);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.faq-link i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Form Messages */
.form-messages {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.message-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
}

.message-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.message-icon i {
    color: white;
    font-size: 2rem;
}

.message-text h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.message-text p {
    color: var(--text-secondary);
    margin: 0;
}

.message-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
}

.message-close:hover {
    color: var(--text-primary);
}

/* Navigation Active State */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content p {
        font-size: 1.125rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .info-card,
    .faq-card {
        padding: 1.5rem;
    }
    
    .message-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 5rem 0 2rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .contact-form-container {
        padding: 1rem;
    }
    
    .info-card,
    .faq-card {
        padding: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto;
    }
}

/* Print Styles */
@media print {
    .page-header {
        background: white;
        color: var(--text-primary);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .form-messages {
        display: none;
    }
    
    .contact-form-container {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #000;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .form-group input,
    .form-group select,
    .form-group textarea,
    .faq-link {
        transition: none;
    }
}

