/* ========================================
   Contact Page – 迋斯生技 Figma 聯絡我們
   ======================================== */

.contact-main {
  margin-top: var(--header-height);
  background: var(--color-wants-dark);
}

/* ---------- Hero Zone ---------- */
.contact-hero-zone {
  background: var(--color-wants-dark);
}

/* ---------- Hero ---------- */
.contact-hero {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  text-align: center;
  color: #fff;
}

.contact-hero__title {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 26px;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.contact-hero__subtitle {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

/* ---------- Contact Cards ---------- */
.contact-cards {
  position: relative;
  z-index: 2;
  margin-top: 47px;
  padding: 0 20px 47px;
}

.contact-cards__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 992px;
  margin: 0 auto;
}

.contact-card {
  flex: 0 1 226px;
  min-width: min(226px, 100%);
  height: 130px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 21px 20px;
  overflow: hidden;
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 100%;
}

.contact-card__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.contact-card__icon-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 19px;
  flex-shrink: 0;
}

.contact-card--email .contact-card__icon-wrap {
  height: 16px;
}

.contact-card--store .contact-card__icon-wrap {
  width: 18px;
}

.contact-card__icon {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-card__title {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-wants-dark);
  margin: 0;
  white-space: nowrap;
}

.contact-card__value {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-wants-accent);
  margin: 0;
  white-space: nowrap;
}

.contact-card--email .contact-card__value,
.contact-card--line .contact-card__value {
  font-size: 14px;
}

.contact-card--store .contact-card__value {
  color: var(--color-brand-orange);
  font-size: 14px;
}

.contact-card__note {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 11px;
  font-weight: 400;
  line-height: normal;
  color: #888;
  margin: 0;
  white-space: nowrap;
}

/* ---------- Body / Form Section ---------- */
.contact-body {
  position: relative;
  background: var(--color-wants-cream);
  padding: 59px 20px 80px;
  overflow: hidden;
}

.contact-body__bg {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1920px;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  opacity: 1;
}

.contact-body__inner {
  position: relative;
  z-index: 1;
  max-width: 992px;
  margin: 0 auto;
}

.contact-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.contact-section-title {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  color: var(--color-wants-dark);
  margin: 0;
}

.contact-section-title-bar {
  display: block;
  width: 40px;
  height: 5px;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 51px;
}

/* ---------- Form ---------- */
.contact-form {
  flex: 0 1 441px;
  width: 100%;
  max-width: 441px;
}

.contact-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
}

.contact-form__field {
  margin-bottom: 16px;
}

.contact-form__field--half {
  flex: 1 1 207px;
  min-width: 0;
}

.contact-form__label {
  display: block;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-wants-dark);
  margin-bottom: 7px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  border: none;
  border-radius: 0;
  background: #d9d9d3;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #4a4a4a;
  outline: none;
}

.contact-form__input,
.contact-form__select {
  height: 45px;
  padding: 0 14px;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #8e8e8e;
}

.contact-form__select {
  appearance: none;
  background-color: #d9d9d3;
  background-image: none;
  color: #8e8e8e;
  cursor: pointer;
}

.contact-form__select:valid,
.contact-form__select option {
  color: #4a4a4a;
}

.contact-form__textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

.contact-form__textarea::placeholder {
  font-size: 13px;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  box-shadow: inset 0 0 0 2px var(--color-brand-orange);
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 162px;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 50px;
  background: var(--color-wants-accent, #847d6b);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.contact-form__submit:hover {
  opacity: 0.88;
}

.contact-form__required-note {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: #888;
  margin: 0;
}

/* ---------- Location Card ---------- */
.contact-location {
  flex: 0 1 500px;
  width: 100%;
  max-width: 500px;
  min-height: 537px;
  background: #fff;
  border: 1px solid var(--color-wants-accent);
  border-radius: 10px;
  overflow: hidden;
}

.contact-location__map-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 30px 16px;
}

.contact-location__map {
  display: block;
  width: 440px;
  max-width: 100%;
  height: 200px;
  border: 0;
  border-radius: 8px;
}

.contact-location__body {
  padding: 0 30px 21px;
}

.contact-location__info {
  margin-bottom: 24px;
}

.contact-location__name {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-wants-dark);
  margin: 0 0 12px;
}

.contact-location__address {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-wants-accent, #847d6b);
  margin: 0 0 14px;
}

.contact-location__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-location__meta p {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  color: #888;
  margin: 0;
}

.contact-location__divider {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 24px;
}

.contact-location__tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
}

.contact-location__tip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-wants-dark);
}

.contact-location__tip img {
  flex-shrink: 0;
}

.contact-location__map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 162px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--color-wants-accent, #847d6b);
  border-radius: 50px;
  background: transparent;
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-wants-accent, #847d6b);
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-location__map-btn:hover {
  background: var(--color-wants-accent, #847d6b);
  color: #fff;
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .contact-body__bg {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    height: 95px;
  }

  .contact-hero__content {
    gap: 5px;
  }

  .contact-hero__title {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.35;
  }

  .contact-hero__subtitle {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(11px, 3.3vw, 14px);
    line-height: 1.4;
  }

  .contact-cards {
    margin-top: 36px;
    padding: 0 16px 31px;
  }

  .contact-cards__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    width: 100%;
    max-width: 315px;
  }

  .contact-card {
    width: 100%;
    height: auto;
    min-height: 0;
    min-width: 0;
    aspect-ratio: 1.12 / 1;
    padding: clamp(12px, 4vw, 21px) clamp(6px, 2.5vw, 12px);
  }

  .contact-card__body {
    gap: clamp(6px, 2vw, 8px);
  }

  .contact-card__icon-title {
    gap: clamp(5px, 1.8vw, 8px);
  }

  .contact-card__title {
    font-size: clamp(12px, 3.7vw, 14px);
  }

  .contact-card__value,
  .contact-card--email .contact-card__value,
  .contact-card--line .contact-card__value,
  .contact-card--store .contact-card__value {
    max-width: 100%;
    font-size: clamp(10px, 3.25vw, 14px);
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .contact-card__note {
    max-width: 100%;
    font-size: clamp(9px, 2.85vw, 11px);
    line-height: 1.35;
    white-space: normal;
  }

  .contact-body {
    padding: 43px 0 60px;
    background: #fcfaf2;
  }

  .contact-body__bg {
    display: none;
  }

  .contact-body__inner {
    width: calc(100% - 40px);
    max-width: 340px;
  }

  .contact-section-header {
    gap: 4px;
    margin-bottom: 28px;
  }

  .contact-section-title {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 13px;
    line-height: 20px;
  }

  .contact-section-title-bar {
    width: 32px;
    height: 4px;
  }

  .contact-content {
    display: block;
    gap: 32px;
  }

  .contact-form {
    width: 100%;
    max-width: none;
  }

  .contact-form__row {
    display: contents;
  }

  .contact-form__field,
  .contact-form__field--half {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
  }

  .contact-form__label {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    color: #777;
    white-space: nowrap;
  }

  .contact-form__input,
  .contact-form__select {
    height: 33px;
    padding: 0 10px;
    font-size: 12px;
  }

  .contact-form__field--message {
    display: block;
  }

  .contact-form__field--message .contact-form__label {
    display: block;
    margin-bottom: 7px;
  }

  .contact-form__textarea {
    min-height: 155px;
    padding: 11px;
    font-size: 12px;
    resize: none;
  }

  .contact-form__textarea::placeholder {
    font-size: 12px;
  }

  .contact-form__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 25px;
  }

  .contact-form__submit {
    width: 100%;
    height: 38px;
    border-radius: 999px;
    font-size: 13px;
  }

  .contact-form__required-note {
    font-size: 10px;
    line-height: 14px;
  }

  .contact-location {
    width: 100%;
    max-width: 336px;
    min-height: 0;
    margin: 32px auto 0;
    border-radius: 10px;
  }

  .contact-location__map-wrap {
    padding: clamp(30px, 8.2vw, 35px) clamp(24px, 6.8vw, 30px) 0;
  }

  .contact-location__map {
    width: 100%;
    height: auto;
    aspect-ratio: 1.16 / 1;
    border-radius: 0;
  }

  .contact-location__body {
    padding: clamp(30px, 8.5vw, 36px) clamp(26px, 7.2vw, 31px) clamp(30px, 8.5vw, 36px);
  }

  .contact-location__info {
    margin-bottom: clamp(18px, 5.2vw, 22px);
  }

  .contact-location__name {
    margin-bottom: 4px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.45;
    white-space: nowrap;
  }

  .contact-location__address {
    margin-bottom: clamp(16px, 4.9vw, 21px);
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(10px, 3.1vw, 14px);
    line-height: 1.45;
    white-space: nowrap;
  }

  .contact-location__meta {
    gap: 3px;
  }

  .contact-location__meta p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(10px, 3.1vw, 14px);
    line-height: 1.45;
    white-space: nowrap;
  }

  .contact-location__divider {
    margin-bottom: clamp(18px, 5.2vw, 22px);
  }

  .contact-location__tips {
    gap: clamp(9px, 3vw, 13px);
    margin-bottom: clamp(20px, 6vw, 25px);
  }

  .contact-location__tip {
    gap: clamp(7px, 2.4vw, 10px);
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(10px, 3.1vw, 14px);
    line-height: 1.45;
    white-space: nowrap;
  }

  .contact-location__tip img {
    width: clamp(16px, 4.4vw, 19px);
    height: clamp(16px, 4.4vw, 19px);
    object-fit: contain;
  }

  .contact-location__map-btn {
    display: flex;
    width: clamp(150px, 48vw, 184px);
    height: clamp(34px, 9.5vw, 36px);
    margin: 0 auto;
    border-radius: 999px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(12px, 3.5vw, 14px);
    font-weight: 700;
  }
}

@media (max-width: 520px) {
  .contact-body__inner {
    width: calc(100% - 64px);
    max-width: 336px;
  }
}
