/* 1. 確保 html 和 body 佔滿整個視窗高度，並改為垂直 Flex 佈局 */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-footer {
    margin-top: auto; /* 關鍵：利用 margin-top auto 把 footer 自動推到最下方 */
}

/* =========================================
   Contact Form 7 - 寬版柔和質感風格
   ========================================= */

div.wpcf7 {
    max-width: 800px; /* 調整這裡的數值來決定表單的最大寬度，想要再寬一點可以改成 900px */
    width: 100%;       /* 確保在小螢幕時會自動縮放填滿 */
    margin: 20px auto 10px auto;
    padding: 30px 40px; /* 增加左右內距，讓畫面呼吸感更好 */
    background-color: #f7f8f9;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

/* 欄位標籤 (Label) 樣式 */
div.wpcf7 form p label {
    display: block;
    margin-bottom: 16px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

/* 輸入框與文字區域 */
div.wpcf7 input[type="text"],
div.wpcf7 input[type="email"],
div.wpcf7 textarea {
    width: 100%;
    margin-top: 6px;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    color: #2d3748;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* 輸入框聚焦 (Focus) 時的狀態 */
div.wpcf7 input[type="text"]:focus,
div.wpcf7 input[type="email"]:focus,
div.wpcf7 textarea:focus {
    outline: none;
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

/* 送出按鈕設計 */
div.wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 14px 20px;
    background-color: #2d3748;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* 按鈕 Hover 懸停效果 */
div.wpcf7 input[type="submit"]:hover {
    background-color: #1a202c;
}

/* 按鈕點擊互動 */
div.wpcf7 input[type="submit"]:active {
    transform: scale(0.99);
}

/* 錯誤提示與成功訊息微調 */
div.wpcf7 .wpcf7-not-valid-tip {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
}

div.wpcf7 .wpcf7-response-output {
    margin: 15px 0 0 0;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    border: 1px solid #cbd5e0;
    background-color: #fff;
    color: #2d3748;
}