/* contact.css - Contact page specific styles */

/* 
 * CONTACT HERO
 */
 .contact-hero {
    text-align: center;
    padding: calc(var(--space-3xl) + var(--header-height)) 0 var(--space-2xl);
}

.contact-hero h1 {
    margin-bottom: var(--space-md);
}

.contact-hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 50ch;
    margin-inline: auto;
}

/* 
 * CONTACT LAYOUT
 */
.contact-content {
    padding: var(--space-3xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* 
 * CONTACT INFO
 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.info-card {
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    text-align: center;
}

.info-icon {
    width: 48px;
    height: 48px;
    margin-inline: auto;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-background);
    border-radius: var(--radius-lg);
    color: var(--accent-primary);
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-title {
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.info-details {
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-details a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all var(--transition-base);
}

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

/* Social links */
.social-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-background);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--accent-primary);
    color: var(--button-primary-bg);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* 
 * CONTACT FORM
 */
.contact-form-card {
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
}

.form-header {
    margin-bottom: var(--space-2xl);
}

.form-title {
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.form-subtitle {
    color: var(--text-secondary);
}

/* Form elements */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.form-label {
    font-size: 0.875rem;
    font-weight: var(--font-medium);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.required {
    color: var(--error);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--glass-background-solid);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

/* Select dropdown styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: calc(var(--space-lg) + 24px);
}

/* Help text */
.form-help {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

/* Error state */
.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: var(--error);
}

.form-error {
    font-size: 0.8125rem;
    color: var(--error);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.form-error svg {
    width: 14px;
    height: 14px;
}

/* Checkbox and radio */
.form-checkbox,
.form-radio {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"],
.form-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.form-checkbox label,
.form-radio label {
    cursor: pointer;
    color: var(--text-secondary);
}

/* Submit section */
.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.submit-btn {
    padding: var(--space-md) var(--space-2xl);
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Success message */
.form-success {
    padding: var(--space-lg);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-lg);
    color: var(--success);
    text-align: center;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.form-success svg {
    width: 24px;
    height: 24px;
}

/* 
 * FAQ SECTION
 */
.faq-section {
    padding: var(--space-4xl) 0;
    border-top: 1px solid var(--glass-border);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.faq-header h2 {
    margin-bottom: var(--space-md);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
    max-width: 1000px;
    margin-inline: auto;
}

.faq-item {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.faq-question::before {
    content: 'Q:';
    color: var(--accent-primary);
    font-weight: var(--font-bold);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: calc(var(--space-sm) + 1.5rem);
}

/* 
 * RESPONSE TIME INDICATOR
 */
.response-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-background);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-top: var(--space-lg);
}

.response-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-status 2s ease-in-out infinite;
}

/* 
 * RESPONSIVE
 */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .contact-info {
        order: 2;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: var(--space-2xl);
    }
    
    .form-submit {
        flex-direction: column;
        align-items: stretch;
    }
    
    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .info-card {
        min-width: 100%;
    }
    
    .social-links {
        gap: var(--space-sm);
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
}