/* contact.css */



/* 容器通用樣式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 聯繫方式與表單區 */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #fff 0%, #b2d8ff 100%);
    position: relative;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

/* 左側聯絡資訊 */
.contact-info {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    position: relative;
}

.contact-info h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #2563eb;
    margin-top: 0.5rem;
    border-radius: 2px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f9ff;
    margin-right: 1rem;
    flex-shrink: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px;
}

.address-icon {
    background-image: url('/assets/svg/map-pin.svg');
}

.phone-icon {
    background-image: url('assets/svg/icon/phone.svg');
}

.email-icon {
    background-image: url('assets/svg/icon/email.svg');
}
.line-icon {
    background-image: url('assets/svg/icon/line.svg');
}

.info-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.info-text p {
    color: #666;
    font-size: 0.95rem;
}

/* 社群媒體連結 */
.social-links {
    margin-top: 2rem;
}

.social-links h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f9ff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    transition: all 0.3s;
    display: block;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: #e0f2ff;
}

.facebook {
    background-image: url('/assets/svg/facebook.svg');
}

.instagram {
    background-image: url('/assets/svg/instagram.svg');
}

.linkedin {
    background-image: url('/assets/svg/linkedin.svg');
}

/* 右側聯絡表單 */
/* 確保表單在所有視窗尺寸下都有正確的寬度 */
.contact-form-container {
    flex: 2;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%; /* 確保容器始終填滿可用空間 */
}

.contact-form-container h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    position: relative;
}

.contact-form-container h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #2563eb;
    margin-top: 0.5rem;
    border-radius: 2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

/* 改進輸入框和文本區域的樣式，確保它們在各種屏幕尺寸上的一致性 */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #2563eb;
}

.submit-btn {
    align-self: flex-start;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

/* 地圖區域 */
.map-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #b2d8ff 0%, #f8f9fa 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2563eb;
    margin: 1rem auto 0;
    border-radius: 2px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 常見問題區 */
.faq-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

/* 按鈕樣式 (繼承自主頁) */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn.primary {
    background: #2563eb;
    color: white;
}

.btn.primary:hover {
    background: #1d4ed8;
}

/* 響應式設計 */
@media (max-width: 768px) {


    .contact-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info,
    .contact-form-container {
        min-width: 100%;
        flex: none; /* 防止彈性布局在小屏幕上造成問題 */
    }
    /* 確保表單元素在小屏幕上也能正確顯示 */
    .form-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box; /* 確保padding不會增加元素實際寬度 */
    }
    
    /* 調整提交按鈕在小屏幕上的樣式 */
    .submit-btn {
        width: 100%; /* 在小屏幕上讓按鈕佔滿整行 */
        align-self: center;
    }
    .section-title {
        font-size: 2rem;
    }

    .map-container {
        height: 300px;
    }
}
/* 確保所有表單元素使用 border-box 盒模型 */
* {
    box-sizing: border-box;
}