/* ===== Hero block (建物 + 地址) ===== */
.ct-hero {
  position: relative;
  background: var(--accent-2);
  overflow: hidden;
  width: 100%;
}

.ct-hero__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1140;
  max-width: 1440px;
  margin: 0 auto;
}

.ct-hero__img-entrance {
  position: absolute;
  left: 26.9%;   /* 387/1440 */
  top: 21.1%;    /* 241/1140 */
  width: 62.8%;  /* 904/1440 */
  aspect-ratio: 904 / 516;
  background: url('../../assets/ct-entrance.png') center/cover;
  border-radius: 15px;
  overflow: hidden;
  z-index: 1;
}

.ct-hero__img-building {
  position: absolute;
  left: 8.3%;
  top: 50%;
  width: 26.4%;  /* 22% × 1.2 */
  aspect-ratio: 375 / 459;
  background: url('../../assets/building.webp') center/cover;
  border-radius: 15px;
  overflow: hidden;
  z-index: 2;
}

.ct-hero__copy {
  position: absolute;
  left: 47.6%;
  top: 70%;
  width: 28.3%;
  max-width: 408px;
  z-index: 3;
}

.ct-hero__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: #8a827a;
}

.ct-hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--svc-ink);
}

.ct-hero__address {
  margin: 0;
  font-size: 14px;
  line-height: 2.05;
  letter-spacing: 0.06em;
  color: #5c5650;
}

.ct-hero__address strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

/* ===== Map block ===== */
.ct-map {
  width: min(calc(100% - 62px), 1378px);
  margin: -40px auto 0;
  aspect-ratio: 1378 / 970;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  z-index: 4;
  box-shadow: 0 10px 30px rgba(60, 50, 45, .08);
}

.ct-map__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Detail sections (自行開車/公車/捷運) ===== */
.ct-details {
  width: min(calc(100% - 40px), 1000px);
  margin: clamp(60px, 8vw, 110px) auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}

.ct-detail__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--svc-ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--svc-rail);
}

.ct-detail__body {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #5c5650;
}

.ct-detail__body p {
  margin: 0 0 14px;
}

.ct-detail__body p:last-child {
  margin-bottom: 0;
}

.ct-detail__body strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--svc-ink);
}

/* 公車/捷運的橫向欄(站名 + 路線) */
.ct-routes {
  display: grid;
  gap: 24px 60px;
}

.ct-routes--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ct-routes--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ct-route__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--svc-ink);
  margin: 0 0 6px;
}

.ct-route__lines {
  font-size: 13px;
  line-height: 1.85;
  color: #5c5650;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .ct-hero__inner {
    aspect-ratio: auto;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .ct-hero__img-entrance,
  .ct-hero__img-building {
    position: static;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .ct-hero__img-entrance {
    aspect-ratio: 16 / 9;
  }

  .ct-hero__img-building {
    aspect-ratio: 4 / 5;
    max-width: 320px;
  }

  .ct-hero__copy {
    position: static;
    width: 100%;
    max-width: none;
    text-align: center;
    margin-top: 6px;
  }

  .ct-map {
    margin-top: 0;
    width: calc(100% - 32px);
  }

  .ct-routes--2,
  .ct-routes--3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== 預約表單 ===== */
.ct-form-section {
  background: var(--soft);
  padding: clamp(48px, 6vw, 72px) var(--gutter);
}

.ct-form-shell {
  max-width: 720px;
  margin: 0 auto;
}

.ct-form-head {
  text-align: center;
  margin-bottom: 32px;
}

.ct-form-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.ct-form-lead {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.ct-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  display: grid;
  gap: 18px;
  box-shadow: 0 4px 20px rgba(60, 50, 45, 0.05);
}

.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ct-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-form__label {
  font-size: 14px;
  color: var(--dark);
  font-weight: 500;
}

.ct-form__label em {
  color: #b3261e;
  font-style: normal;
  margin-left: 2px;
}

.ct-form input[type="text"],
.ct-form input[type="tel"],
.ct-form input[type="email"],
.ct-form input[type="date"],
.ct-form select,
.ct-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ct-form input:focus,
.ct-form select:focus,
.ct-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 90, 40, 0.15);
  outline: none;
}

.ct-form textarea {
  resize: vertical;
  min-height: 96px;
}

.ct-form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ct-form__btn {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 32px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.ct-form__btn:hover {
  filter: brightness(1.05);
}

.ct-form__btn:active {
  transform: translateY(1px);
}

.ct-form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ct-form__msg {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.ct-form__msg.is-error {
  color: #b3261e;
}

.ct-form__success {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(60, 50, 45, 0.05);
}

.ct-form__success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  margin: 0 0 12px;
}

.ct-form__success p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 600px) {
  .ct-form {
    padding: 24px 20px;
  }
  .ct-form__row {
    grid-template-columns: 1fr;
  }
}
