/* 接待區、預約表單與地圖 */

#contact-section {
  position: relative;
  min-height: 100vh;
  padding: 25vh 0;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 14% 12%,
      rgba(52, 150, 96, 0.6) 0%,
      rgba(34, 118, 78, 0.4) 13%,
      rgba(18, 82, 56, 0.2) 28%,
      rgba(7, 48, 37, 0.1) 48%,
      rgba(2, 31, 25, 0) 100%
    ),
    radial-gradient(
      circle at 34% 42%,
      rgba(28, 105, 72, 0.34) 0%,
      rgba(10, 58, 43, 0.18) 32%,
      rgba(2, 31, 25, 0) 100%
    ),
    linear-gradient(135deg, #053325 0%, #021f19 48%, #011a15 100%);

  background-size:
    130% 130%,
    145% 145%,
    100% 100%;

  background-position:
    0% 0%,
    80% 75%,
    center;

  animation: contactGlow 2.6s ease-in-out infinite alternate;
}

@keyframes contactGlow {
  0% {
    background-position:
      0% 0%,
      38% 42%,
      center;

    background-size:
      130% 130%,
      145% 145%,
      100% 100%;
  }

  25% {
    background-position:
      4% 3%,
      42% 46%,
      center;

    background-size:
      134% 134%,
      148% 148%,
      100% 100%;
  }

  55% {
    background-position:
      9% 6%,
      47% 39%,
      center;

    background-size:
      138% 138%,
      200% 200%,
      100% 100%;
  }

  80% {
    background-position:
      14% 2%,
      52% 45%,
      center;

    background-size:
      136% 136%,
      150% 150%,
      100% 100%;
  }

  100% {
    background-position:
      24% 10%,
      56% 50%,
      center;

    background-size:
      142% 142%,
      155% 155%,
      100% 100%;
  }
}

.contact-container {
  max-width: 80%;
  position: relative;
  z-index: 2;
}

#contact-section .contact-border {
  position: absolute;
  inset: 4.2vw;
  z-index: 1;
  pointer-events: none;
  border: 1px solid var(--color-ritz-gold-line);
}

#contact-section .contact-border::before,
#contact-section .contact-border::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: var(--color-ritz-gold);
  border-style: solid;
}

#contact-section .contact-border::before {
  left: -1px;
  top: -1px;
  border-width: 1px 0 0 1px;
}

#contact-section .contact-border::after {
  right: -1px;
  top: -1px;
  border-width: 1px 1px 0 0;
}

#contact-section::before,
#contact-section::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  bottom: 4.2vw;
  border-color: var(--color-ritz-gold);
  border-style: solid;
  pointer-events: none;
}

#contact-section::before {
  left: 4.2vw;
  border-width: 0 0 1px 1px;
}

#contact-section::after {
  right: 4.2vw;
  border-width: 0 1px 1px 0;
}

.contact-head {
  margin-bottom: 5.5vw;
}

.contact-en {
  margin: 0 0 8px;
  font-family: "Abhaya Libre", "Noto Serif TC", var(--font-ritz-display), serif;
  font-size: clamp(24px, 1.5625vw, 30px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: white;
}

.contact-title {
  font-family: "Noto Serif TC", "Noto Serif SC", serif;
  margin: 0;
  font-size: clamp(28px, 2.604vw, 50px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: #fff;
}

.contact-copy {
  padding-top: 0;
  color: rgba(255, 255, 255, 0.92);
}

.contact-copy p {
  margin: 0;
  font-family: "Noto Sans TC", "Inter", sans-serif;
  font-size: clamp(15px, 1.04vw, 20px);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.contact-main {
  align-items: stretch;
  margin-bottom: 5.5vw;
}

.contact-info-box {
  height: 100%;
  min-height: 286px;
  padding: 44px 50px;
  border: 1px solid var(--color-ritz-gold-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  background: rgba(0, 0, 0, 0.03);
}

.info-group {
  color: rgba(255, 255, 255, 0.7);
}

.info-label {
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--color-ritz-gold);
}

.info-group h4 {
  font-family: "Noto Serif SC", serif;
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #fff;
}

.info-group p:last-child {
  font-family: "Noto Serif SC", serif;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.info-group a,
.tel-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tel-link .tel-area {
  font-size: 0.67em;
}

.info-group a:hover,
.info-group a:visited,
.info-group a:active,
.tel-link:hover {
  color: inherit;
  text-decoration: none;
}

.contact-form {
  width: 100%;
}

.contact-form .contact-field {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form select {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 0;
  background: #fff;
  color: #666;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.contact-form :is(input, select):focus-visible {
  outline: 2px solid var(--color-ritz-policy);
  outline-offset: 2px;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #999 50%),
    linear-gradient(135deg, #999 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

.contact-form input::placeholder {
  color: #777;
}

.form-note {
  margin: 28px 0 30px;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.95);
}

.form-note .policy-body {
  overflow: hidden;
}

.submit-btn {
  font-family: "Noto Serif SC", serif;
  width: 100%;
  height: 58px;
  border: 1px solid rgba(176, 145, 83, 0.35);
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.submit-btn:hover {
  background: rgba(176, 145, 83, 0.12);
  border-color: rgba(176, 145, 83, 0.75);
  color: #fff;
}

.map-box {
  width: 100%;
  aspect-ratio: 1391 / 509;
  overflow: hidden;
  background: #fff;
}

.map-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1366px) {
  .contact-container {
    max-width: 1000px;
  }

  #contact-section .contact-border,
  #contact-section::before,
  #contact-section::after {
    display: none;
  }
}

@media (max-width: 1024px) {
  #contact-section {
    padding: 15vh 2vh;
  }

  .contact-copy p {
    font-size: 1rem;
    line-height: 1.4;
  }
}

@media (width < 992px) {
  #contact-section {
    min-height: auto;
    padding: 90px 0 70px;
  }

  #contact-section .contact-container {
    max-width: 560px;
    padding-inline: 28px;
  }

  .contact-head {
    margin-bottom: 36px;
  }

  .contact-copy {
    padding-top: 24px;
  }

  .contact-copy p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
  }

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

  .contact-form-col {
    order: 1;
  }

  .contact-info-col {
    order: 2;
  }

  .contact-info-box {
    height: auto;
    min-height: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0;
    border: none;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .info-group {
    position: relative;
    min-height: 190px;
    padding: 48px 14px;
    border: 1px solid var(--color-ritz-gold-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  /* 將現有連結的觸控範圍延伸到卡片邊框。 */
  .info-group a::after {
    content: "";
    position: absolute;
    inset: -1px;
  }

  .map-box {
    width: 100%;
    height: 300px;
    aspect-ratio: 16 / 9;
  }
}

@media (width < 576px) {
  #contact-section {
    min-height: auto;
    padding: 12vh 0;
  }

  #contact-section .contact-container {
    padding-inline: clamp(20px, 9.3vw, 40px);
  }

  .contact-head {
    margin-bottom: 32px;
  }

  .contact-en {
    margin-bottom: 10px;
    font-size: clamp(22px, 7.2vw, 29px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .contact-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.1em;
  }

  .contact-copy {
    padding-top: 26px;
  }

  .contact-copy p {
    margin-bottom: 0;
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.06em;
  }

  .contact-main {
    margin-bottom: 10px;
  }

  .contact-form .contact-field {
    margin-bottom: 12px;
  }

  .contact-form input,
  .contact-form select {
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    letter-spacing: 0.03em;
  }

  .contact-form select {
    background-position:
      calc(100% - 14px) 12px,
      calc(100% - 9px) 12px;
    background-size:
      5px 5px,
      5px 5px;
  }

  .form-note {
    margin: 22px 0 20px;
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: 0.02em;
  }

  .submit-btn {
    height: 52px;
    font-size: 14px;
    letter-spacing: 0.18em;
  }

  .contact-info-box {
    gap: clamp(14px, 6.5vw, 28px);
  }

  .info-group {
    min-height: 190px;
    padding: 56px 10px;
  }

  .info-label {
    margin-bottom: 9px;
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .info-group h4 {
    margin-bottom: 6px;
    line-height: 1.25;
    letter-spacing: 0.04em;
    font-size: clamp(14px, 4.18vw, 18px);
  }

  .info-group p:last-child {
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.05em;
  }

  .map-box {
    width: 100%;
    height: 205px;
    aspect-ratio: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #contact-section {
    animation: none;
  }

  .submit-btn {
    transition: none;
  }
}
#contact-section {
  background-color: #5e0000 !important;
}
#contact-section .submit-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(201, 169, 110, 0.25);
}
#contact-section .submit-btn:hover {
  background: rgba(201, 169, 110, 0.12);
  border-color: rgba(201, 169, 110, 0.65);
  color: #fff;
}
#contact-section .contact-form input,
#contact-section .contact-form select {
  background: #fff;
  color: #231815;
}
#contact-section .text-ritz-policy {
  color: #f3d9b1;
}
