
/* ==========================================================================
   Contact Page Specific Styles (本地開發時請移至 styles.css)
   ========================================================================== */

/* Section 1: Hero Banner (半屏綠色遮罩) */
.hero-half {
  position: relative; height: 55vh; min-height: 450px; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-overlay-teal { position: absolute; inset: 0; background: rgba(30, 92, 84, 0.7); }
.hero-half-content { position: relative; z-index: 2; padding-top: 4rem; }
.hero-half-title { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.15; color: var(--white); max-width: 800px; }

/* Section 2: Contact Grid */
.contact-grid-wrapper { padding: 5rem 0; background-color: var(--bg-light); }

.contact-info-panel {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--primary-teal-light);
  height: 100%;
}
.contact-info-panel .info-icon { font-size: 1.5rem; color: var(--primary-teal-dark); margin-bottom: 0.5rem; }
.contact-info-panel h5 { font-family: var(--font-headline); font-weight: 600; color: var(--primary-teal-dark); font-size: 1.2rem; }
.contact-info-panel p { color: var(--text-dark); font-size: 0.95rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.6; }

.contact-form-panel {
  padding: 4rem;
  background-color: var(--white);
  height: 100%;
}

/* Custom Floating Labels Style */
.form-floating > .form-control,
.form-floating > .form-select {
  border: none;
  border-bottom: 2px solid #e0e0e0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none !important;
  background-color: transparent;
  font-size: 1rem;
}
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-bottom-color: var(--primary-teal);
}
.form-floating > label {
  padding-left: 0;
  color: var(--text-muted);
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--primary-teal);
  transform: scale(.85) translateY(-1.2rem) translateX(-.1rem);
}

textarea.form-control { min-height: 120px; resize: none; }

@media (max-width: 991.98px) {
  .contact-info-panel, .contact-form-panel { padding: 3rem 2rem; }
  .contact-info-panel { border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; }
  .contact-form-panel { border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg); }
}

/* Section 3: Google Map */
.map-wrapper { line-height: 0; }
.map-iframe {
  width: 100%;
  height: 450px;
  border: 0;
  /* CSS Filter 達到灰階及增加對比，融入深色高級視覺 */
  filter: grayscale(100%) contrast(1.1) brightness(0.9);
  transition: var(--transition-smooth);
}
.map-iframe:hover { filter: grayscale(0%); } /* Hover 時恢復色彩 */
