/* ==========================================================================
   Tunas Muda — Contact / Hubungi Kami
   Trust-forward layout matching Visi & Misi / Media Sosial pages
   Brand tokens: navy #1d365c, gold #ffc736, teal #2a9d8f
   ========================================================================== */

.contact-page {
  --ct-navy: var(--tm-primary);
  --ct-navy-deep: var(--tm-primary-dark);
  --ct-teal: #2a9d8f;
  --ct-gold: var(--tm-secondary);
  --ct-bg: #f8f9fa;
  --ct-card: #ffffff;
  --ct-body: #4b5563;
  --ct-muted: #6b7280;
  --ct-line: rgba(29, 54, 92, 0.12);
  --ct-radius: 14px;
  --ct-shadow: 0 4px 24px rgba(15, 30, 53, 0.06);
  --ct-shadow-hover: 0 14px 40px rgba(29, 54, 92, 0.11);
  --ct-gap: clamp(2.5rem, 4vw, 3.5rem);
  --ct-section-pad: clamp(3rem, 6vw, 4.5rem);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.contact-page.tm-theme-bg-page,
.contact-page.tm-theme-bg-page .main {
  background: transparent;
}

.contact-page.tm-theme-bg-page .ct-page.section {
  background: transparent;
  --background-color: transparent;
}

/* —— Skip link —— */
.contact-page .tm-skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 100050;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ct-navy-deep);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(15, 30, 53, 0.12);
  transition: top 0.2s ease;
}

.contact-page .tm-skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--ct-gold);
  outline-offset: 3px;
}

/* —— Transparent header on hero (desktop) —— */
@media (min-width: 1200px) {
  .contact-page:not(.scrolled) #header.header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .contact-page:not(.scrolled) .navmenu > ul > li > a {
    color: rgba(255, 255, 255, 0.92) !important;
    background: transparent !important;
  }

  .contact-page:not(.scrolled) .navmenu > ul > li > a:hover,
  .contact-page:not(.scrolled) .navmenu > ul > li > a:focus-visible {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  .contact-page:not(.scrolled) .navmenu > ul > li > a.active {
    color: var(--ct-gold) !important;
    background: rgba(255, 199, 54, 0.18) !important;
  }

  .contact-page:not(.scrolled) .tm-header-cta {
    background: var(--ct-gold);
    color: var(--ct-navy-deep) !important;
    box-shadow: 0 4px 20px rgba(255, 199, 54, 0.35);
  }
}

.contact-page:not(.scrolled) #header .mobile-nav-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

/* —— Hero: full-bleed photo, left typography, brand diamond —— */
/* Distinct from other pages’ centered floating card pattern */

.tm-ct-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  /* Tall enough for presence; angled bottom via clip */
  min-height: clamp(340px, 52svh, 520px);
  padding:
    calc(var(--tm-header-h, 72px) + 1.25rem + env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    clamp(3.5rem, 7vw, 5rem)
    max(1.25rem, env(safe-area-inset-left, 0px));
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  /* Soft diagonal cut into the page below */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.75rem), 0 100%);
}

.tm-ct-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Top fade so transparent header stays readable */
.tm-ct-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: calc(var(--tm-header-h, 72px) + 4rem);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 24, 41, 0.78) 0%,
    rgba(12, 24, 41, 0.4) 55%,
    transparent 100%
  );
}

.tm-ct-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias photo toward the open right side */
  object-position: 62% 40%;
  /* Keep color in the photo — heavy grayscale looked washed-out / muddy */
  filter: grayscale(0.08) contrast(1.1) brightness(0.7) saturate(0.92);
  transform: scale(1.06);
  animation: tm-ct-hero-photo 18s ease-out forwards;
}

@keyframes tm-ct-hero-photo {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.01);
  }
}

/*
  Left-weighted navy + teal overlay (brand #1D365C / #2A9D8F).
  No white / light page-bg bottom wash — that made the hero look flat.
  Photo stays readable on the right; text sits on the dark left.
*/
.tm-ct-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      105deg,
      rgba(12, 24, 41, 0.94) 0%,
      rgba(29, 54, 92, 0.9) 22%,
      rgba(29, 54, 92, 0.62) 46%,
      rgba(42, 157, 143, 0.28) 68%,
      rgba(12, 24, 41, 0.32) 100%
    ),
    linear-gradient(
      180deg,
      rgba(12, 24, 41, 0.42) 0%,
      transparent 38%,
      rgba(12, 24, 41, 0.55) 100%
    ),
    radial-gradient(
      ellipse 70% 55% at 88% 28%,
      rgba(255, 199, 54, 0.1) 0%,
      transparent 62%
    );
}

.tm-ct-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.22;
  background-image:
    linear-gradient(135deg, rgba(255, 199, 54, 0.14) 1px, transparent 1px),
    linear-gradient(-135deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  pointer-events: none;
}

/* Brand diamond watermark — large, quiet, right side */
.tm-ct-hero__mark {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: clamp(-2rem, 4vw, 2rem);
  width: clamp(180px, 28vw, 320px);
  height: clamp(180px, 28vw, 320px);
  transform: translateY(-42%);
  pointer-events: none;
  opacity: 0;
  animation: tm-ct-hero-mark 1.1s 0.35s var(--tm-ease, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}

.tm-ct-hero__mark-diamond {
  display: block;
  width: 100%;
  height: 100%;
  /* Gold/white watermark — avoid muddy gray borders on dark wash */
  border: 1.5px solid rgba(255, 199, 54, 0.42);
  border-radius: 4px;
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(
      135deg,
      rgba(255, 199, 54, 0.14) 0%,
      transparent 42%,
      transparent 58%,
      rgba(42, 157, 143, 0.12) 100%
    );
}

/* Inner diamond ring */
.tm-ct-hero__mark-diamond::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* Tiny gold core */
.tm-ct-hero__mark-diamond::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14%;
  height: 14%;
  transform: translate(-50%, -50%);
  background: rgba(255, 199, 54, 0.72);
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(255, 199, 54, 0.35);
}

@keyframes tm-ct-hero-mark {
  from {
    opacity: 0;
    transform: translateY(-42%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(-42%) scale(1);
  }
}

.tm-ct-hero__inner {
  position: relative;
  z-index: 4;
  display: flex;
  flex: 1;
  align-items: center;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  min-height: 0;
}

/* No card — typography sits directly on the wash */
.tm-ct-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: min(36rem, 100%);
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* Entrance motion */
  opacity: 0;
  transform: translateY(18px);
  animation: tm-ct-hero-in 0.85s 0.12s var(--tm-ease, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}

.tm-ct-hero__content::before {
  display: none !important;
  content: none !important;
}

@keyframes tm-ct-hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tm-ct-hero h1 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  /* Strong WCAG-friendly contrast on navy wash */
  text-shadow:
    0 1px 2px rgba(12, 24, 41, 0.85),
    0 2px 18px rgba(12, 24, 41, 0.55),
    0 8px 36px rgba(12, 24, 41, 0.35);
  text-wrap: balance;
}

/* Remove old centered underline — replaced by .tm-ct-hero__rule */
.tm-ct-hero h1::after {
  display: none;
}

/* Gold accent line — left-aligned brand gesture (highly visible) */
.tm-ct-hero__rule {
  display: block;
  width: 3.75rem;
  height: 3px;
  margin: 1.1rem 0 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #ffc736 0%,
    rgba(255, 199, 54, 0.75) 55%,
    rgba(42, 157, 143, 0.45) 100%
  );
  box-shadow: 0 0 12px rgba(255, 199, 54, 0.35);
  transform-origin: left center;
  animation: tm-ct-hero-rule 0.7s 0.45s var(--tm-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

@keyframes tm-ct-hero-rule {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.tm-ct-hero__crumb {
  margin: 0 0 1.1rem;
  padding: 0;
}

.tm-ct-hero__crumb ol {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  /* Flat breadcrumb — no pill glass card */
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.tm-ct-hero__crumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.25s ease;
}

.tm-ct-hero__crumb a:hover,
.tm-ct-hero__crumb a:focus-visible {
  color: var(--ct-gold);
}

.tm-ct-hero__crumb a:focus-visible {
  outline: 2px solid var(--ct-gold);
  outline-offset: 3px;
}

.tm-ct-hero__crumb li + li::before {
  content: "/";
  padding-right: 0.35rem;
  color: rgba(255, 255, 255, 0.4);
}

.tm-ct-hero__crumb li[aria-current="page"] {
  color: var(--ct-gold);
  font-weight: 600;
}

.tm-ct-hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffc736;
  margin: 0 0 0.7rem;
  text-shadow:
    0 1px 2px rgba(12, 24, 41, 0.75),
    0 1px 16px rgba(12, 24, 41, 0.45);
}

.tm-ct-hero__lead {
  margin: 1.05rem 0 0;
  max-width: 32rem;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 12px rgba(12, 24, 41, 0.45);
  text-wrap: pretty;
}

/* Quiet bounce scroll cue */
.tm-ct-hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  animation: tm-ct-hero-bob 2.4s ease-in-out 1.2s infinite;
}

.tm-ct-hero__scroll:hover,
.tm-ct-hero__scroll:focus-visible {
  color: var(--ct-navy-deep);
  background: var(--ct-gold);
  border-color: var(--ct-gold);
}

.tm-ct-hero__scroll:focus-visible {
  outline: 2px solid var(--ct-gold);
  outline-offset: 3px;
}

.tm-ct-hero__scroll i {
  font-size: 1.15rem;
  line-height: 1;
}

@keyframes tm-ct-hero-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Mobile: still left-aligned, slightly tighter; photo recenters */
@media (max-width: 767.98px) {
  .tm-ct-hero {
    min-height: clamp(300px, 48svh, 440px);
    padding-top: calc(var(--tm-header-h, 72px) + 1.1rem + env(safe-area-inset-top, 0px));
    padding-bottom: clamp(3rem, 10vw, 4rem);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.75rem), 0 100%);
  }

  .tm-ct-hero__photo {
    object-position: center 38%;
  }

  .tm-ct-hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(12, 24, 41, 0.78) 0%,
        rgba(29, 54, 92, 0.82) 42%,
        rgba(12, 24, 41, 0.9) 100%
      ),
      linear-gradient(
        105deg,
        rgba(29, 54, 92, 0.7) 0%,
        rgba(42, 157, 143, 0.22) 55%,
        transparent 85%
      );
  }

  .tm-ct-hero__mark {
    right: -18%;
    width: clamp(140px, 42vw, 220px);
    height: clamp(140px, 42vw, 220px);
  }

  .tm-ct-hero__mark-diamond {
    opacity: 0.5;
  }

  .tm-ct-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-ct-hero__photo,
  .tm-ct-hero__content,
  .tm-ct-hero__mark,
  .tm-ct-hero__rule,
  .tm-ct-hero__scroll {
    animation: none !important;
  }

  .tm-ct-hero__photo {
    transform: scale(1.02);
  }

  .tm-ct-hero__content,
  .tm-ct-hero__mark {
    opacity: 1;
    transform: none;
  }

  .tm-ct-hero__rule {
    transform: none;
    opacity: 1;
  }
}

/* —— Content section + ambient orbs —— */
.ct-page {
  position: relative;
  isolation: isolate;
  /* Tuck under the hero’s diagonal cut */
  margin-top: clamp(-2.5rem, -5vw, -1.5rem);
  padding: var(--ct-section-pad) 0 clamp(4rem, 8vw, 5.5rem);
  overflow: hidden;
}

.tm-ct-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tm-ct-canvas__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

.tm-ct-canvas__orb--1 {
  width: min(38vw, 360px);
  height: min(38vw, 360px);
  top: 4%;
  left: -6%;
  background: radial-gradient(circle, rgba(255, 199, 54, 0.14) 0%, transparent 70%);
}

.tm-ct-canvas__orb--2 {
  width: min(34vw, 320px);
  height: min(34vw, 320px);
  top: 48%;
  right: -8%;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.12) 0%, transparent 72%);
}

.tm-ct-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

/* —— Intro —— */
.tm-ct-intro {
  text-align: center;
  margin-bottom: var(--ct-gap);
  scroll-margin-top: calc(var(--tm-header-h, 72px) + 1.25rem);
}

.tm-ct-intro__tagline {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ct-teal);
  margin: 0 0 0.65rem;
}

.tm-ct-intro h2 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: var(--ct-navy);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tm-ct-intro__lead {
  margin: 0.85rem auto 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ct-body);
}

.tm-ct-intro__divider {
  display: block;
  width: 48px;
  height: 3px;
  margin: 1.35rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ct-teal), var(--ct-gold));
}

/* —— Two-column grid: channels + form —— */
.tm-ct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.tm-ct-grid.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 992px) {
  .tm-ct-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 2rem;
  }
}

/* —— Contact channels panel —— */
.tm-ct-info {
  background: var(--ct-card);
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  box-shadow: var(--ct-shadow);
}

.tm-ct-info__title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ct-navy);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.tm-ct-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.tm-ct-channel {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.tm-ct-channel__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(42, 157, 143, 0.12), rgba(255, 199, 54, 0.14));
  color: var(--ct-navy);
  font-size: 1.15rem;
}

.tm-ct-channel__body {
  min-width: 0;
  flex: 1;
}

.tm-ct-channel__body h4 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ct-navy);
  margin: 0.15rem 0 0.25rem;
  letter-spacing: 0.02em;
}

.tm-ct-channel__body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ct-body);
}

.tm-ct-channel__muted {
  margin-top: 0.2rem !important;
  color: var(--ct-muted) !important;
  font-size: 0.875rem !important;
}

.tm-ct-channel__link {
  color: var(--ct-navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 54, 92, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tm-ct-channel__link:hover,
.tm-ct-channel__link:focus-visible {
  color: var(--ct-teal);
  border-bottom-color: var(--ct-teal);
  outline: none;
}

.tm-ct-social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: rgba(29, 54, 92, 0.06);
  color: var(--ct-navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.tm-ct-social:hover,
.tm-ct-social:focus-visible {
  background: var(--ct-navy);
  color: #fff;
  outline: none;
}

.tm-ct-social:active {
  transform: scale(0.98);
}

/* —— Form panel —— */
.tm-ct-form-panel {
  background: var(--ct-card);
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  box-shadow: var(--ct-shadow);
}

.tm-ct-form-panel__head {
  margin-bottom: 1.35rem;
}

.tm-ct-form-panel__head h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ct-navy);
  margin: 0 0 0.4rem;
}

.tm-ct-form-panel__head p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ct-muted);
}

.tm-ct-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .tm-ct-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.tm-ct-field {
  margin-bottom: 1rem;
}

.tm-ct-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ct-navy);
}

.tm-ct-required {
  color: #c45c26;
  margin-left: 0.15rem;
}

.tm-ct-form .form-control {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(29, 54, 92, 0.18);
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--ct-navy-deep);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tm-ct-form textarea.form-control {
  min-height: 9rem;
  resize: vertical;
}

.tm-ct-form .form-control:hover {
  border-color: rgba(29, 54, 92, 0.32);
}

.tm-ct-form .form-control:focus {
  outline: none;
  border-color: var(--ct-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.18);
}

.tm-ct-form .form-control.is-invalid {
  border-color: #c45c26;
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.15);
}

.tm-ct-form .form-control.is-valid {
  border-color: var(--ct-teal);
}

.tm-ct-field__error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a33d12;
}

.tm-ct-field__error[hidden] {
  display: none;
}

.tm-ct-form__status {
  min-height: 1.25rem;
  margin: 0.25rem 0 0.85rem;
}

.tm-ct-form .loading,
.tm-ct-form .error-message,
.tm-ct-form .sent-message {
  display: none;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.tm-ct-form .loading.d-block,
.tm-ct-form .error-message.d-block,
.tm-ct-form .sent-message.d-block {
  display: block;
}

.tm-ct-form .loading {
  color: var(--ct-navy);
  background: rgba(29, 54, 92, 0.06);
}

.tm-ct-form .error-message {
  color: #7a2e0e;
  background: rgba(196, 92, 38, 0.1);
  border: 1px solid rgba(196, 92, 38, 0.25);
}

.tm-ct-form .sent-message {
  color: #0f5c52;
  background: rgba(42, 157, 143, 0.12);
  border: 1px solid rgba(42, 157, 143, 0.28);
}

.tm-ct-form__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.tm-ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ct-navy) 0%, #274a73 100%);
  color: #fff;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(29, 54, 92, 0.22);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tm-ct-submit:hover {
  background: linear-gradient(135deg, #274a73 0%, var(--ct-navy-deep) 100%);
  box-shadow: 0 10px 28px rgba(29, 54, 92, 0.28);
}

.tm-ct-submit:active {
  transform: scale(0.98);
}

.tm-ct-submit:focus-visible {
  outline: 2px solid var(--ct-gold);
  outline-offset: 3px;
}

.tm-ct-form__note {
  margin: 0;
  max-width: 28rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ct-muted);
}

/* —— Map —— */
.tm-ct-map {
  margin-top: var(--ct-gap);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.tm-ct-map.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tm-ct-map__title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--ct-navy);
  margin: 0 0 1rem;
  text-align: center;
}

.tm-ct-map__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--ct-radius);
  border: 1px solid var(--ct-line);
  box-shadow: var(--ct-shadow);
  background: #e8eef5;
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

.tm-ct-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* External Maps link — under embed (short link OK here; not for iframe src) */
.tm-ct-map__actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.tm-ct-map__open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  background: rgba(29, 54, 92, 0.06);
  color: var(--ct-navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.tm-ct-map__open:hover,
.tm-ct-map__open:focus-visible {
  background: var(--ct-navy);
  color: #fff;
  outline: none;
}

.tm-ct-map__open:active {
  transform: scale(0.98);
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  .tm-ct-grid,
  .tm-ct-map,
  .tm-ct-submit,
  .tm-ct-social,
  .tm-ct-map__open,
  .tm-ct-form .form-control {
    transition: none !important;
  }

  .tm-ct-grid,
  .tm-ct-map {
    opacity: 1;
    transform: none;
  }
}

/* —— Small phones —— */
@media (max-width: 374.98px) {
  .tm-ct-hero h1 {
    font-size: clamp(1.5rem, 8vw, 1.75rem);
  }

  .tm-ct-hero__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .ct-page .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .tm-ct-submit {
    width: 100%;
  }
}
