/* css/contact.css */
/* ============================================================
 * 祥成企業｜聯絡我們專用樣式（scss/_contact.scss）
 * 輸出到 css/contact.css
 * ============================================================ */

.designer-tpl-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 3.4vw, 68px);
  align-items: start;
}
.contact-form .eforms-wrapper {
  display: grid;
  gap: 22px;
  max-width: 760px;
}
.contact-form .eforms-wrapper .form-row {
  display: grid;
  gap: 8px;
  margin: 0; /* 平台每列有 margin-top:25px，會和上面的 gap 疊在一起 */
}
/* 平台把標籤固定 150px、欄位寬 100% 減 150px（左右排）；這裡標籤在上，欄位要填滿 */
.contact-form .eforms-wrapper .form-col {
  width: 100%;
}
.contact-form .eforms-wrapper .form-tag {
  width: auto;
  font-size: max(16px, calc(var(--FontSizeBody, 1rem) - 2px));
  font-weight: 500;
  color: var(--TextColorTitle, #0c415a);
}
.contact-form .eforms-wrapper .main-red {
  color: #c0392b;
  margin-inline-start: 4px;
}
.contact-form .eforms-wrapper .form-style {
  width: 100%;
  font-family: inherit;
  font-size: max(16px, calc(var(--FontSizeBody, 1rem) - 2px));
  color: var(--TextColorPrimary, #15232b);
  border: 1px solid var(--BorderColorPrimary, #dde3e7);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}
.contact-form .eforms-wrapper .form-style:focus {
  outline: 2px solid var(--ColorAccent, #56bced);
  outline-offset: 1px;
  border-color: var(--ColorAccent, #56bced);
}
.contact-form .eforms-wrapper textarea.form-style {
  min-height: 170px;
  resize: vertical;
}
.contact-form .eforms-wrapper .form-require-alert {
  font-size: 15px;
  color: #c0392b;
}
.contact-form .eforms-wrapper .captcha-col {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.contact-form .eforms-wrapper .captcha-col .form-style {
  flex: 1 1 150px;
  min-width: 0;
}
.contact-form .eforms-wrapper .captcha-col .captcha-img {
  flex: 0 0 auto;
  width: 118px;
  height: 50px;
  border-radius: 10px;
}
.contact-form .eforms-wrapper .btn-group .submit-btn {
  width: var(--BtnWidth, 250px);
  height: var(--BtnHeight, 56px);
  border-radius: var(--BtnBorderRadius, 999px);
  border: 1px solid var(--ColorPrimary, #0c415a);
  background: var(--BtnOutlineBg, transparent);
  color: var(--BtnOutlineTextColor, #0c415a);
  font-size: var(--BtnFontSize, 17px);
  font-family: inherit;
  margin: 0; /* 平台把送出鈕往右推、上面留空 */
  cursor: pointer;
  transition: background var(--TransitionDefault, 0.3s ease), color var(--TransitionDefault, 0.3s ease);
}
@media (hover: hover) and (pointer: fine) {
.contact-form .eforms-wrapper .btn-group .submit-btn:hover {
    background: var(--BtnOutlineHoverBg, #0c415a);
    color: var(--BtnOutlineHoverTextColor, #fff);
  }
}
.contact-form .eforms-wrapper .btn-group .submit-btn:is(:active, :focus-visible) {
  background: var(--BtnOutlineHoverBg, #0c415a);
  color: var(--BtnOutlineHoverTextColor, #fff);
}
@media (max-width: 1023px) {
.designer-tpl-contact {
    grid-template-columns: 1fr;
  }
}
.designer-tpl-contact .block-main-title {
  color: var(--TextColorTitle, #0c415a);
  font-size: clamp(22px, 1.8vw, 32px);
  margin: 0 0 24px;
}
.designer-tpl-contact .info-table {
  width: 100%;
  border-collapse: collapse;
}
.designer-tpl-contact .info-table th,
.designer-tpl-contact .info-table td {
  text-align: start;
  padding: 16px 18px;
  border-bottom: 1px solid var(--BorderColorPrimary, #dde3e7);
  font-size: max(16px, calc(var(--FontSizeBody, 1rem) - 2px));
  vertical-align: top;
}
.designer-tpl-contact .info-table th {
  width: 120px;
  color: var(--TextColorTitle, #0c415a);
  font-weight: 700;
  background: var(--BgColorSoft, #f2f4f6);
}
.designer-tpl-contact .info-table td a {
  color: var(--ColorSecondary, #1e8cc4);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.designer-tpl-contact .contact-map {
  margin-top: 28px;
  border-radius: var(--BorderRadius, 14px);
  overflow: hidden;
  border: 1px solid var(--BorderColorPrimary, #dde3e7);
}
.designer-tpl-contact .contact-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}
/* ==================== 2026-11 新版調整 ==================== */

/* 聯絡表單的「確定送出」：實色按鈕，平常深藍底白字，滑鼠移入或按下時變成黃底深藍字（主要按鈕的顏色）。
   contact.css 原本把它做成外框按鈕，這裡用同樣的選擇器蓋掉；HTML 是公版結構，不改 class */
.contact-form .eforms-wrapper .btn-group .submit-btn {
  border-color: var(--BtnSecondaryBg, #0c415a);
  background: var(--BtnSecondaryBg, #0c415a);
  color: var(--BtnSecondaryTextColor, #fff);
  font-weight: 600;
  transition: background var(--TransitionDefault, 0.3s ease), border-color var(--TransitionDefault, 0.3s ease), color var(--TransitionDefault, 0.3s ease);
}
@media (hover: hover) and (pointer: fine) {
.contact-form .eforms-wrapper .btn-group .submit-btn:hover {
    border-color: var(--BtnPrimaryBg, #f8c400);
    background: var(--BtnPrimaryBg, #f8c400);
    color: var(--BtnPrimaryTextColor, #0c415a);
  }
}
.contact-form .eforms-wrapper .btn-group .submit-btn:is(:active, :focus-visible) {
  border-color: var(--BtnPrimaryBg, #f8c400);
  background: var(--BtnPrimaryBg, #f8c400);
  color: var(--BtnPrimaryTextColor, #0c415a);
}
/* ---------- 聯絡表單的淺色底 ---------- */
/* 表單整塊放在淺灰底的圓角區塊裡，和左邊的聯絡資訊分開；輸入框維持白底，在淺色底上才看得出來。
   原本表單限制最寬 760px，放進區塊後改成填滿區塊 */
.contact-form {
  padding: var(--Space2, max(2vw, 1.5rem));
  border-radius: var(--BorderRadius, 14px);
  background: var(--BgColorSoft, #f2f4f6);
}
.contact-form .eforms-wrapper {
  max-width: none;
}
.designer-tpl-contact .contact-note {
  margin: 28px 0 0;
}
.designer-tpl-contact .form-title {
  font-size: clamp(22px, 1.8vw, 32px);
  margin: 0 0 24px;
}
.contact-form .eforms-wrapper .captcha-col .captcha-img {
  width: auto;
}