/*///////////////////////////////////////////////////
/* 聯絡鼎川 */
#contact {
    background-color:#063b71;
    text-align: center;
    padding: 20px;
}

#consultationForm{
    text-align: left; /* 讓表單內容靠左對齊 */
}
.font1{
    font-size: 250%;

}
.font2{
    font-size: 200%;

}
.container{
    background: #F8F5F1;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    color:#1a1a1a;
    margin: 0 auto; /* 讓內容區塊水平置中 */
}

/* 表單行（讓兩個欄位排在同一列） */
.form-row {
    display: flex;
    gap: 10px;
}

/* 讓每個欄位在同一列時佔 50% */
.form-group.half {
    flex:1;
   /* width: 50%;  讓兩個輸入框平均分配寬度 */
   
}

/* 表單欄位 */
.form-group {
    display: flex;
    flex-direction: column;
    /*align-items: flex-start;  讓標籤與輸入框靠左 */
    margin-bottom: 15px;
}

.form{
    padding: 10px;
}

/* 標籤 */
label {
    font-size: 16px;
    color:#1a1a1a;
    margin-bottom: 5px;
    font-weight: bold;
}
form{
    padding: 10px;
}
/* 輸入框 */
input {
    width: 80%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}
/* 下拉選單 */
select {
    width: 90%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}
/* 詢問內容 */
textarea {
    width: 100%;
    height: auto;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    /*resize: none;  /* 禁止手動拖曳 */
    overflow-y: auto; /* 隱藏滾動條 */
    min-height: 80px;  /* 初始高度 */
    resize: vertical; /* 允許垂直調整 */
    box-sizing: border-box;
}
textarea::placeholder{
    color: rgba(0, 0, 0, 0.3); /* 透明度 0.3 */
}
.required{
    color: red;
}
/* 提交按鈕 */
.submit-btn {
    width: 100%;
    background-color: #2D5B91;
    color: white;
    padding: 10px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.submit-btn:hover {
    background-color: #1E4A7A;
}

/* Modal外層 */
.custom-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Modal內框 */
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

/* 確定按鈕 */
.modal-content button {
    background-color: #2D5B91;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 15px;
    transition: background-color 0.3s ease-in-out;
}

.modal-content button:hover {
    background-color: #1E4A7A;
}

.form{
    margin-top: 10px;
}

/* 淡入動畫 */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 500px) {
    .form-row{
        /*display: none;*/
        flex-direction: column;
        gap:0px;
    }
    .form-group.half {
        width: 100%; /* 在手機版時，讓欄位佔滿整行 */
    }
    input{width:94%;}
    select, textarea{
        width:100%
    }
    .submit-btn{
        padding: 14px;
    }

}
