
/* ... (您現有的 style.css 內容，包括 :root, *, body, .container, a, ul, header 等基礎樣式) ... */

/* 聯絡我們頁面主要佈局 */
.contact-page {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 頂部對齊，而不是垂直居中，讓內容多時不會被擠壓 */
    min-height: calc(100vh - 120px); /* 扣除 header 和 footer 的高度 */
    padding: 60px 20px; /* 上下內距和左右內距 */
    background-color: var(--light-gray);
}

.contact-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px; /* 限制容器的最大寬度 */
    text-align: left; /* 表單元素靠左對齊 */
}

.contact-container h2 {
    font-size: 36px;
    color: var(--dark-gray);
    margin-bottom: 20px;
    text-align: center; /* 標題居中 */
}

.contact-intro {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center; /* 簡介居中 */
    line-height: 1.8;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-form label .required {
    color: #dc3545; /* 必填項目的星號顏色 */
    margin-left: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical; /* 允許 textarea 垂直拖動改變大小 */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-submit-btn {
    width: auto; /* 按鈕寬度根據內容自動調整 */
    min-width: 150px; /* 最小寬度 */
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    margin-top: 15px;
    display: block; /* 讓按鈕獨佔一行 */
    margin-left: auto; /* 右對齊，或者用 text-align: center 在父元素 */
    margin-right: auto; /* 居中 */
}

.contact-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
    text-align: center;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* RWD 響應式調整 */
@media (max-width: 768px) {
    .contact-page {
        padding: 40px 15px;
    }

    .contact-container {
        padding: 30px 25px;
    }

    .contact-container h2 {
        font-size: 30px;
    }

    .contact-intro {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .contact-form label,
    .contact-info p {
        font-size: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px 12px;
        font-size: 15px;
    }

    .contact-submit-btn {
        padding: 10px 25px;
        font-size: 16px;
    }

    .contact-info h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 30px 10px;
    }

    .contact-container {
        padding: 25px 20px;
    }

    .contact-container h2 {
        font-size: 26px;
    }

    .contact-intro {
        margin-bottom: 20px;
    }

    .contact-submit-btn {
        min-width: 120px;
        font-size: 15px;
    }
}