/* Contact Page - Preview2 Theme (Redesigned) */
/* Based on reference design with preview2 aesthetic */

:root {
    --primary: #0EA5E9;
    --primary-hover: #0284C7;
    --cta: #14B8A6;
    --navy: #0F172A;
    --navy-soft: #1E293B;
    --surface: #FFFFFF;
    --bg: #F8FAFC;
    --border: #E2E8F0;
    --text: #475569;
}

body.dark-mode {
    --bg: #020617;
    --surface: #0F172A;
    --navy: #E2E8F0;
    --navy-soft: #CBD5E1;
    --primary: #38BDF8;
    --cta: #2DD4BF;
    --border: #334155;
    --text: #94A3B8;
}

/* Header Logo Section Fix */
.logo-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-section .site-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-section h1 {
    font-size: 20px;
    margin: 0;
    color: white;
    font-weight: 700;
}

body.dark-mode .logo-section h1 {
    color: white;
}

/* Contact Hero Section */
.contact-hero {
    text-align: center;
    color: white;
    margin: 50px 0 40px 0;
    padding: 20px;
}

.contact-hero h1 {
    font-size: 40px;
    margin-bottom: 16px;
    font-weight: 700;
    color: white;
}

.contact-hero p {
    font-size: 18px;
    opacity: .9;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

/* Contact Info Card */
.contact-info {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    color: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-info h2 {
    color: white;
    font-size: 26px;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Benefits */
.benefit {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    align-items: flex-start;
}

.benefit span {
    font-size: 24px;
    line-height: 1;
}

.benefit > div {
    flex: 1;
}

.benefit strong {
    display: block;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.benefit p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Card */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-card h2 {
    color: var(--navy);
    font-size: 22px;
    margin: 0 0 24px 0;
    font-weight: 700;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: system-ui;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

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

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

/* Submit Button */
.submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px 24px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}

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

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

/* Alert Messages */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-success {
    background: #DCFCE7;
    border: 1px solid #86EFAC;
    color: #166534;
}

.alert-error {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

.alert-icon {
    font-size: 18px;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.faq-item {
    background: var(--surface);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--navy);
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.faq-item p {
    color: var(--text);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Dark Mode Overrides */
body.dark-mode .contact-hero h1,
body.dark-mode .contact-hero p {
    color: #F1F5F9;
}

body.dark-mode .contact-info {
    background: linear-gradient(135deg, #1E3A8A, #0F172A);
}

body.dark-mode .form-card {
    background: var(--surface);
    border-color: var(--border);
}

body.dark-mode .form-card h2,
body.dark-mode .form-group label {
    color: var(--navy);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .faq-section h2 {
    color: #F1F5F9;
}

body.dark-mode .faq-item {
    background: var(--surface);
    border-color: var(--border);
}

body.dark-mode .faq-item h3 {
    color: var(--navy);
}

body.dark-mode .faq-item p {
    color: var(--text);
}

body.dark-mode .alert-success {
    background: #064E3B;
    border-color: #047857;
    color: #D1FAE5;
}

body.dark-mode .alert-error {
    background: #7F1D1D;
    border-color: #DC2626;
    color: #FEE2E2;
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-hero h1 {
        font-size: 28px;
    }

    .contact-hero p {
        font-size: 16px;
    }

    .contact-info,
    .form-card {
        padding: 24px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-section h2 {
        font-size: 24px;
    }
}