/* --- contacts.php 專屬樣式 --- */

.nice-select {
  width: 100%;
}

.contact-page-area .address-wrap .single-contact-address .lnr {
  color: #545454;
}

/* --- 通用按鈕/背景樣式 (提醒：建議移至 main.css) --- */
.gradient-bg,
.registration-area .course-form-section .btn,
.course-details-left .course-list li .btn:hover,
.right-contents .btn.enroll,
.contact-page-area .form-area .btn, /* 這個會影響本頁的按鈕 */
.top-category-widget-area .single-cat-widget:hover .overlay-bg,
.post-content-area .single-post .primary-btn:hover,
.blog-pagination .page-item.active .page-link,
.blog-pagination .page-link:hover,
.widget-wrap .newsletter-widget .bbtns,
.comment-form .btn,
.footer-area .single-footer-widget .click-btn,
.footer-area .footer-bottom .footer-social a:hover {
  background: #545454;
  /* 如果是按鈕，可能還需要設定文字顏色、邊框等 */
  color: #fff; /* 假設按鈕文字為白色 */
  border: none; /* 假設按鈕無邊框 */
}
/* --- contacts.php 行內樣式轉換 --- */
.contact-info-heading {
  font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif; /* 提供備用字型 */
  /* 其他 h5 預設樣式會繼承 */
}

.contact-info-link {
  color: #545454;
  text-decoration: none; /* 移除連結底線 (可選) */
}
.contact-info-link:hover {
  color: #333; /* 滑鼠移過時的顏色 (可選) */
}

.form-alert-left {
  text-align: left;
}

.form-submit-right {
  float: right;
  /* 如果按鈕樣式需要更多調整，可以在這裡或 .contact-page-area .form-area .btn 補充 */
}

.nice-select {
  line-height: 30px;
}
/* --- contacts.php (聯絡我們) - 全新淺色專業風格樣式 --- */

/* --- 全局背景與字體 --- */
.contact-page-redesign {
    background-color: #f8f9fa; /* 非常淺的灰色作為底色，比純白更有層次感 */
    color: #495057; /* 預設的深灰色文字 */
    font-family: 'Noto Sans TC', Arial, sans-serif;
    padding-bottom: 3rem;
}

/* --- Hero Section --- */
.hero-contact-section {
    background: linear-gradient(135deg, rgba(233, 247, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%), url('../img/contact/contact-hero-bg-light.jpg'); /* << 請準備一張明亮的背景圖 */
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    border-bottom: 1px solid #dee2e6; /* 細分隔線 */
}
.hero-contact-title {
    font-size: 3rem;
    font-weight: 700;
    color: #004a99; /* 更沉穩的專業藍 */
    text-shadow: none;
}
.hero-contact-subtitle {
    font-size: 1.25rem;
    color: #495057;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- 區塊標題 (通用於此頁面) --- */
.contact-info-header,
.contact-form-header {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212529; /* 深色標題 */
    margin-bottom: 2rem !important;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #007bff; /* 專業藍色底線 */
    display: inline-block;
}

/* --- 左側聯絡資訊 --- */
.contact-info-wrapper {
    background: #ffffff; /* 白色背景 */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.1); /* 柔和的藍色陰影 */
    height: 100%; /* 確保與右側表單等高 (如果需要) */
}
.contact-item-card {
    background-color: transparent; /* 背景透明，融入 wrapper */
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    padding-left: 1rem !important; /* 增加左側內距 */
    margin-left: -1rem; /* 抵銷增加的內距，讓文字對齊 */
}
.contact-item-card:hover {
    background-color: rgba(0, 123, 255, 0.05); /* 非常淡的藍色背景 */
    transform: translateX(5px);
    border-left-color: #007bff;
}
.contact-item-icon .lnr {
    font-size: 1.8rem;
    color: #007bff; /* 專業藍色 */
    width: 40px;
    text-align: center;
}
.contact-item-label {
    font-size: 0.8rem;
    color: #6c757d; /* 中性灰色 */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-item-value,
.contact-item-value a.contact-info-value-link {
    font-size: 1.05rem;
    color: #212529; /* 深色文字 */
    font-weight: 500;
    word-break: break-all;
    text-decoration: none;
}
.contact-item-value a.contact-info-value-link:hover {
    color: #0056b3;
    text-decoration: underline;
}
.map-responsive-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.map-responsive-wrapper iframe {
    border: 0;
    width: 100%;
    height: 220px; /* 您在 HTML 中設定的高度 */
    display: block;
}


/* --- 右側聯絡表單 --- */
.contact-form-wrapper {
    background: #ffffff; /* 白色背景 */
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.1);
    padding: 2.5rem; /* 增加內邊距 */
}
.form-label {
    color: #495057; /* 深灰色 */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600; /* 加粗標籤 */
    display: block;
}
.form-control-dark { /* 現在是淺色主題，class 名稱可以考慮改成 .form-control-custom */
    background-color: #f8f9fa; /* 淺灰色背景 */
    color: #212529; /* 深色文字 */
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: calc(1.5em + 1.5rem + 2px); /* 統一高度 */
}
.form-control-dark::placeholder {
    color: #6c757d;
}
.form-control-dark:focus {
    background-color: #ffffff;
    color: #212529;
    border-color: #80bdff; /* Bootstrap 預設的 focus 藍色 */
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    outline: none;
}
textarea.form-control-dark {
    height: auto;
}

/* Nice Select Light Theme */
.nice-select-dark.form-select-dark { /* class 名稱可以考慮改成 .nice-select-light */
    width: 100%;
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #ced4da;
    border-radius: 6px;
    height: calc(1.5em + 1.5rem + 2px); /* 統一高度 */
    padding: 0;
    line-height: normal;
}
.nice-select-dark .current {
    color: #212529;
    padding: 0.75rem 1rem;
    height: 100%;
    line-height: 1.5;
    display: block;
}
.nice-select-dark:after {
    border-bottom: 2px solid #6c757d;
    border-right: 2px solid #6c757d;
}
.nice-select-dark.open {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.nice-select-dark.open:after {
     border-bottom: 2px solid #007bff;
    border-right: 2px solid #007bff;
}
.nice-select-dark .list {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.nice-select-dark .option {
    color: #212529;
    padding: 0.75rem 1rem;
    line-height: 1.5;
}
.nice-select-dark .option:hover,
.nice-select-dark .option.focus,
.nice-select-dark .option.selected.focus {
    background-color: #007bff;
    color: #ffffff;
}

/* 提交按鈕 */
.btn-contact-submit {
    background: #007bff; /* 專業藍 */
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}
.btn-contact-submit:hover {
    background: #0056b3; /* 深一點的藍 */
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    transform: translateY(-3px);
}
.alert-msg-contact {
    min-height: 20px;
}

/* --- 響應式調整 --- */
/* (原有的響應式調整大部分依然適用，這裡僅列出因顏色改變可能需要微調的部分) */
@media (max-width: 767px) {
    .hero-contact-section { padding: 3.5rem 0; }
    .hero-contact-title { font-size: 2rem; }
    .hero-contact-subtitle { font-size: 1.05rem; }
    .contact-info-wrapper, .contact-form-wrapper { padding: 1.5rem; }
    .contact-info-header, .contact-form-header { font-size: 1.5rem; }
}