{% extends "base.html" %}

{% block title %}{{ t('pricing') if t('pricing') else '收费' }}{% endblock %}

{% block content %}
<section class="hero">
    <div class="container">
        <h2>{{ t('contact_us') if t('contact_us') else '联系我们' }}</h2>
        <p>{{ t('contact_description') if t('contact_description') else '富泽国际，竭诚为您服务!' }}</p>
    </div>
</section>

<section class="contact">
    <div class="container">
        {% if success %}
        <div class="success-message">
            <p>感谢您的留言！我们会尽快与您联系。</p>
        </div>
        {% endif %}

        <div class="contact-grid">
            <div class="contact-info">
                <h3>联系方式</h3>
                <p><strong>地址：</strong>{{ company.contact.address }}</p>
                <p><strong>电话：</strong>{{ company.contact.Tel }}</p>
                <p><strong>邮箱：</strong>{{ company.contact.Email }}</p>

                <h3>工作时间</h3>
                <p>周一至周五: 9:00 - 18:00</p>
                <p>周六至周日: 休息</p>
            </div>

            <div class="contact-form">
                <h3>发送消息</h3>
                <form method="POST" action="{{ url_for('contact') }}">
                    <div class="form-group">
                        <label for="name">姓名</label>
                        <input type="text" id="name" name="name" required>
                    </div>
                    <div class="form-group">
                        <label for="email">邮箱</label>
                        <input type="email" id="email" name="email" required>
                    </div>
                    <div class="form-group">
                        <label for="message">消息</label>
                        <textarea id="message" name="message" rows="5" required></textarea>
                    </div>
                    <button type="submit" class="btn">发送消息</button>
                </form>
            </div>
        </div>
    </div>
</section>
{% endblock %}