/* style5.css */

/* --- 基礎設定 --- */
* {
    box-sizing: border-box;
    font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

.contact-section {
    padding: 60px 0;
    background-color: #f8f9fa; /* 淺灰背景，突顯白色的表單卡片 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

/* --- 版面佈局 (Grid) --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr; /* 左邊表單較寬(3)，右邊資訊較窄(2) */
    gap: 40px;
}

/* --- 左側表單樣式 --- */
.contact-form-area {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    gap: 20px;
}

.input-group {
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.required {
    color: #e74c3c;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: #007bff; /* 聚焦時變藍色 */
    outline: none;
}

/* --- 需求類別 Checkbox 美化 --- */
.checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #555;
    background: #f1f3f5;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.2s;
}

.checkbox-item:hover {
    background: #e9ecef;
}

/* 隱藏原生 checkbox，這裡只是為了簡單示範，實際可用更進階 CSS */
.checkbox-item input {
    margin-right: 8px;
    accent-color: #007bff; /* 現代瀏覽器支援的 checkbox 顏色設定 */
    width: 16px;
    height: 16px;
}

/* 發送按鈕 */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* --- 右側資訊區 --- */
.contact-info-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    margin-bottom: 20px;
    color: #555;
}

.info-list i {
    width: 25px;
    color: #007bff;
    margin-top: 4px; /* 對齊文字頂部 */
    font-size: 1.1rem;
}

.info-list a {
    color: #555;
    text-decoration: none;
}

.info-list a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Line 按鈕 */
.line-cta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.line-cta p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #666;
}

.btn-line {
    display: block;
    background-color: #06C755; /* Line 官方綠色 */
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-line:hover {
    background-color: #05a546;
}

.btn-line i {
    margin-right: 5px;
}

/* --- Google Maps RWD --- */
.map-responsive {
    overflow: hidden;
    padding-bottom: 75%; /* 4:3 比例 */
    position: relative;
    height: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* --- 手機版 RWD --- */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* 改為單欄 */
    }
    
    .form-row {
        flex-direction: column; /* 姓名電話改為直排 */
        gap: 0;
    }
    
    .contact-info-area {
        order: -1; /* 手機版想讓地圖先顯示的話可加這行，不然請移除 */
    }
}