﻿/* 聯絡表單容器 */
.contact-container {
    display: flex;
    width: 100%;
    max-width: 1200px; /* 調整最大寬度 */
    margin: 80px auto; /* 上下 80px，左右自動居中 */
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 陰影加深 */
    height: auto; /* 移除固定高度 */
    padding: 20px; /* 增加內邊距 */
}

/* 左邊藍色區塊 */
.contact-left {
    background: linear-gradient(to bottom, #007bff, #0056b3);
    color: white;
    padding: 40px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

    .contact-left h2 {
        font-size: 2em;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .contact-left p {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

.highlight {
    color: #ffdd57; /* 高亮文字顏色 */
    font-weight: bold;
}

.contact-left img {
    max-width: 80%;
    height: auto;
    margin-top: 20px;
}

/* 右邊白色表單 */
.contact-right {
    background: white;
    padding: 40px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* 表單欄位 */
.input-field {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

    .input-field:focus {
        border-color: #007bff;
        outline: none;
    }

textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
    resize: vertical; /* 允許垂直調整大小 */
    min-height: 120px; /* 最小高度 */
    transition: border-color 0.3s ease;
}

    textarea:focus {
        border-color: #007bff;
        outline: none;
    }

/* 主要按鈕 */
.btn-primary {
    background: #ff4081;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

    .btn-primary:hover {
        background: #e91e63;
    }

/* 次要按鈕 */
.btn-secondary {
    background: none;
    border: 1px solid #ccc;
    color: #666;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease, color 0.3s ease;
}

    .btn-secondary:hover {
        background: #f1f1f1;
        color: #333;
    }

/* 浮動按鈕（電話 & 聊天） */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.consult-btn {
    background: #ff6600;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    transition: background 0.3s ease;
}

    .consult-btn:hover {
        background: #e65c00;
    }

/* 🔹 RWD 設計：小螢幕適配 */
@media screen and (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        margin: 40px 20px; /* 調整邊距 */
        padding: 20px;
    }

    .contact-left {
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 30px;
    }

    .contact-right {
        width: 100%;
        border-radius: 0 0 20px 20px;
        padding: 30px;
    }

    .contact-left h2 {
        font-size: 1.8em;
    }

    .contact-left p {
        font-size: 1em;
    }
}
