/*
 * Contact Page Styles
 * Tekvera Initiative Theme
 * Matches tekvera-contact-preview.html
 */

/* ── Sticky enquiry tabs bar ─────────────────────────────────────────────── */
.tv-contact-tabs {
  background: #fff;
  border-bottom: 1px solid var(--tv-border);
  position: sticky;
  top: var(--tv-nav-height, 68px);
  z-index: 50;
}

.tv-ct-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tv-ct-inner::-webkit-scrollbar {
  display: none;
}

.tv-ct-tab {
  padding: 1.1rem 1.6rem;
  font-family: var(--tv-font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--tv-text-tertiary);
  border: none;
  border-bottom: 2.5px solid transparent;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}

.tv-ct-tab:hover {
  color: var(--tv-green-700);
}

.tv-ct-tab.is-active {
  color: var(--tv-green-700);
  border-bottom-color: var(--tv-green-700);
}

/* ── Main contact grid ──────────────────────────────────────────────────── */
.tv-contact-main {
  background: var(--tv-cream);
}

.tv-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5.5rem;
  align-items: start;
}

.tv-contact-info h2 {
  font-family: var(--tv-font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: var(--tv-tracking-tight);
  margin: 1rem 0 1rem;
}

.tv-contact-info > p {
  font-size: 1rem;
  color: var(--tv-text-secondary);
  line-height: 1.55;
  margin-bottom: 2rem;
}

/* ── Contact method cards ────────────────────────────────────────────────── */
.tv-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tv-cm-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid var(--tv-border);
  border-radius: 16px;
  transition:
    border-color 0.22s,
    box-shadow 0.22s;
}

.tv-cm-card:hover {
  border-color: var(--tv-green-200);
  box-shadow:
    0 4px 20px rgba(6, 28, 19, 0.09),
    0 2px 8px rgba(6, 28, 19, 0.05);
}

.tv-cm-ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-cm-ico--green {
  background: var(--tv-green-50);
}
.tv-cm-ico--amber {
  background: var(--tv-amber-50);
  border: 1px solid var(--tv-amber-100);
}

.tv-cm-body {
  flex: 1;
  min-width: 0;
}

.tv-cm-body h4 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--tv-text-primary);
  margin-bottom: 0.25rem;
}

.tv-cm-body p {
  font-size: 0.92rem;
  color: var(--tv-text-tertiary);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.tv-cm-body a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--tv-green-700);
  text-decoration: none;
  transition: color 0.2s;
}

.tv-cm-body a:hover {
  color: var(--tv-green-500);
}

.tv-cm-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tv-green-600);
  background: var(--tv-green-50);
  border: 1px solid var(--tv-green-100);
  border-radius: 9999px;
  padding: 0.22rem 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-left: auto;
}

.tv-cm-badge--amber {
  color: var(--tv-amber-600);
  background: var(--tv-amber-50);
  border-color: var(--tv-amber-100);
}

/* ── Office card ─────────────────────────────────────────────────────────── */
.tv-office-card {
  background: var(--tv-green-800);
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.tv-office-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  pointer-events: none;
}

.tv-oc-inner {
  position: relative;
  z-index: 1;
}

.tv-office-card__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 1rem;
}

.tv-oc-name {
  font-family: var(--tv-font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.35rem;
}

.tv-oc-detail {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.75;
  font-style: normal;
  margin-bottom: 0;
}

.tv-oc-detail a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tv-oc-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.tv-oc-soc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  transition:
    background 0.2s,
    color 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.tv-oc-soc:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ── Contact form panel ─────────────────────────────────────────────────── */
.tv-contact-form-panel {
  background: #fff;
  border: 1px solid var(--tv-border);
  border-radius: 24px;
  padding: 2.8rem 2.35rem;
  box-shadow:
    0 4px 20px rgba(6, 28, 19, 0.09),
    0 2px 8px rgba(6, 28, 19, 0.05);
}

.tv-cfp-header {
  margin-bottom: 2rem;
}

.tv-cfp-header h3 {
  font-family: var(--tv-font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--tv-text-primary);
  margin-bottom: 0.4rem;
}

.tv-cfp-header p {
  font-size: 0.95rem;
  color: var(--tv-text-tertiary);
  line-height: 1.35;
}

/* Enquiry type chips — 3-column grid */
.tv-enquiry-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.85rem;
}

.tv-et-btn {
  font-family: var(--tv-font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.5rem;
  border: 1.5px solid var(--tv-border);
  border-radius: 8px;
  background: var(--tv-cream);
  color: var(--tv-text-secondary);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}

.tv-et-btn:hover {
  border-color: var(--tv-green-400);
  color: var(--tv-green-700);
}

.tv-et-btn.is-active {
  border-color: var(--tv-green-700);
  background: var(--tv-green-50);
  color: var(--tv-green-700);
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.tv-f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}

.tv-f-field {
  margin-bottom: 5px;
}

.tv-f-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tv-text-secondary);
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.tv-f-input,
.tv-f-select,
.tv-f-textarea {
  width: 100%;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--tv-border);
  border-radius: 10px;
  font-family: var(--tv-font-sans);
  font-size: 0.95rem;
  color: var(--tv-text-primary);
  background: var(--tv-cream);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
}

.tv-f-input::placeholder,
.tv-f-textarea::placeholder {
  color: var(--tv-text-muted, #9bb0a8);
}

.tv-f-input:focus,
.tv-f-select:focus,
.tv-f-textarea:focus {
  border-color: var(--tv-green-600);
  background: #fff;
}

/* Invalid state — empty required fields or invalid email after submit attempt */
.tv-f-input.is-invalid,
.tv-f-select.is-invalid,
.tv-f-textarea.is-invalid {
  border-color: #d04a4a;
  background: #fff5f5;
}
.tv-f-input.is-invalid::placeholder,
.tv-f-textarea.is-invalid::placeholder {
  color: #d04a4a;
}

.tv-f-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

.tv-f-check-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.tv-f-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--tv-green-700);
  cursor: pointer;
}

.tv-f-check-label {
  font-size: 0.88rem;
  color: var(--tv-text-secondary);
  line-height: 1.55;
  cursor: pointer;
}

.tv-f-note {
  font-size: 0.85rem;
  color: var(--tv-text-tertiary);
  margin-top: 0.85rem;
  line-height: 1.32;
  text-align: center;
}

/* Form states */
.tv-form-success,
.tv-form-error {
  margin-top: 1.0rem;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  text-align: center;
}

.tv-form-success {
  background: var(--tv-green-50);
  border: 1px solid var(--tv-green-100);
}

.tv-form-success svg {
  margin: 0 auto 0.65rem;
  display: block;
}
.tv-form-success p {
  font-size: 0.9rem;
  color: var(--tv-green-700);
  font-weight: 500;
}

.tv-form-error {
  background: #fff0f0;
  border: 1px solid #fcc;
}

.tv-form-error p {
  font-size: 0.875rem;
  color: #c00;
}

/* ── Enquiry topics grid ─────────────────────────────────────────────────── */
.tv-enq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.tv-enq-card {
  background: #fff;
  border: 1px solid var(--tv-border);
  border-radius: 18px;
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.22s,
    box-shadow 0.22s,
    transform 0.22s;
}

.tv-enq-card:hover {
  border-color: var(--tv-green-200);
  box-shadow:
    0 4px 20px rgba(6, 28, 19, 0.09),
    0 2px 8px rgba(6, 28, 19, 0.05);
  transform: translateY(-2px);
}

.tv-enq-ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--tv-green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.tv-enq-card h4 {
  font-family: var(--tv-font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--tv-text-primary);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.tv-enq-card p {
  font-size: 0.98rem;
  color: var(--tv-text-secondary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.1rem;
}

.tv-enq-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tv-green-700);
  text-decoration: none;
  transition: all 0.2s;
}

.tv-enq-card a:hover {
  color: var(--tv-green-500);
  gap: 0.52rem;
}

/* ── Media section ──────────────────────────────────────────────────────── */
.tv-contact-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5rem;
  align-items: center;
}

.tv-contact-media h2 {
  font-family: var(--tv-font-serif);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 300;
  color: #fff;
  margin: 1rem 0 1.25rem;
}

.tv-contact-media p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Eyebrow green variant on dark bg */
.tv-eyebrow--green {
  color: var(--tv-green-400);
}

.tv-eyebrow--green::before {
  background: var(--tv-green-400);
}

/* Media contact items — card style */
.tv-media-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0;
}

.tv-mc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  transition: background 0.2s;
}

.tv-mc-item:hover {
  background: rgba(255, 255, 255, 0.09);
}

.tv-mci-ico {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-mci-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.18rem;
}

.tv-mci-val {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.5;
}

.tv-mci-val a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Media guidelines */
.tv-media-guide-hd {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.25rem;
}

.tv-media-guide {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tv-mg-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.tv-mg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tv-amber-400);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* ── Location section ───────────────────────────────────────────────────── */
.tv-contact-location {
  background: var(--tv-cream);
  border-top: 1px solid var(--tv-border);
}

.tv-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5rem;
  align-items: center;
}

.tv-contact-location h2 {
  font-family: var(--tv-font-serif);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 300;
  margin: 1rem 0 1.25rem;
}

.tv-contact-location > .tv-wrap > .tv-location-grid > div > p {
  font-size: 0.98rem;
  color: var(--tv-text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* Address rows */
.tv-addr-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tv-addr-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border: 1px solid var(--tv-border);
  border-radius: 12px;
}

.tv-addr-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--tv-green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-addr-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tv-text-primary);
  margin-bottom: 0.15rem;
}

.tv-addr-text p,
.tv-addr-text address {
  font-size: 0.92rem;
  color: var(--tv-text-tertiary);
  line-height: 1.5;
  font-style: normal;
}

.tv-addr-text a {
  color: var(--tv-green-600);
  text-decoration: none;
}

.tv-addr-text a:hover {
  color: var(--tv-green-500);
}

/* Map container */
.tv-map-container {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--tv-green-100), var(--tv-green-50));
  border: 1px solid var(--tv-border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Real iframe fills the container */
.tv-map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Placeholder pin */
.tv-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 48px;
  height: 48px;
  z-index: 2;
}

.tv-map-pin-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tv-green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 48px rgba(6, 28, 19, 0.14),
    0 4px 16px rgba(6, 28, 19, 0.07);
  position: relative;
  z-index: 2;
}

.tv-map-pin-pulse {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--tv-green-400);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: tvMapPulse 2s ease-out infinite;
  opacity: 0;
  z-index: 1;
}

@keyframes tvMapPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.tv-map-placeholder-text {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 2rem;
  margin-top: 3rem;
}

.tv-map-placeholder-text p:first-child {
  font-family: var(--tv-font-serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--tv-text-tertiary);
  font-style: italic;
}

.tv-map-placeholder-text p:last-child {
  font-size: 0.78rem;
  color: var(--tv-text-muted, #9bb0a8);
  margin-top: 0.5rem;
}

/* Map "Wakiso, Uganda" label pinned to bottom */
.tv-map-label {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 28, 19, 0.82);
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  z-index: 3;
}

/* Quick actions below map — 2-column grid */
.tv-map-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ── Hidden state (for elements toggled by JS) ───────────────────────────── */
.is-hidden { display: none; }

/* ── Contact helpers (extracted from inline styles) ──────────────────────── */
.tv-cta-row {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.tv-contact-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: .95rem;
}
.tv-bg-gradient-green-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #030F09 0%, #061C13 30%, #0C3D2E 65%, #1E7254 100%);
}
.tv-contact-topics-section { border-top: 1px solid var(--tv-border); }
.tv-contact-topics-hd { margin-bottom: 2.75rem; }
.tv-contact-topics-title {
  margin-top: .85rem;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 300;
}
.tv-contact-topics-desc {
  font-size: .94rem;
  color: var(--tv-text-secondary);
  max-width: 560px;
  margin-top: .75rem;
  line-height: 1.78;
}
.tv-contact-address-note {
  font-size: .84rem;
  color: var(--tv-text-tertiary);
  line-height: 1.72;
  margin-top: 1.5rem;
}
.tv-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tv-btn-center-content { justify-content: center; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tv-contact-grid,
  .tv-contact-media-grid,
  .tv-location-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .tv-enq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tv-enquiry-types {
    grid-template-columns: repeat(2, 1fr);
  }
  .tv-f-row {
    grid-template-columns: 1fr;
  }
  .tv-enq-grid {
    grid-template-columns: 1fr;
  }
  .tv-contact-form-panel {
    padding: 1.75rem;
  }
  /* Larger tap targets on touch devices */
  .tv-et-btn {
    font-family: var(--tv-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.65rem 0.5rem;
    min-height: 44px;
  }
}

/* Mobile: icon beside title; desc + link stack below */
@media (max-width: 768px) {
  .tv-enq-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon title"
      "desc desc"
      "link link";
    column-gap: 1rem;
    row-gap: 0.55rem;
    align-items: center;
  }
  .tv-enq-ico    { grid-area: icon; margin-bottom: 0; }
  .tv-enq-card h4 { grid-area: title; margin-bottom: 0; font-size: 1.08rem; letter-spacing: 0.15px; }
  .tv-enq-card p  { grid-area: desc; margin-bottom: 0; }
  .tv-enq-card a  { grid-area: link; justify-self: start; }
}

/* ── Overflow safeguards — prevent long emails / URLs from blowing out rows ── */
@media (max-width: 768px) {
  /* Email addresses and long single-word links: allow wrapping anywhere */
  .tv-cm-body a,
  .tv-oc-detail a,
  .tv-mci-val a,
  .tv-addr-text a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  /* Ensure flex items can shrink properly inside narrow rows */
  .tv-cm-body,
  .tv-mc-item > div:not(.tv-mci-ico),
  .tv-addr-text {
    min-width: 0;
    flex: 1;
  }
  /* Prevent map label from overflowing the container at narrow widths */
  .tv-map-label {
    max-width: calc(100% - 2rem);
    white-space: normal;
    text-align: center;
    bottom: 1rem;
    padding: 0.5rem 0.9rem;
  }
  /* Ensure form inputs never overflow the panel */
  .tv-f-input,
  .tv-f-select,
  .tv-f-textarea {
    max-width: 100%;
  }
  /* Keep the contact form panel within viewport */
  .tv-contact-form-panel {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  /* Office card social icons: allow wrap if ever too many */
  .tv-oc-socials {
    flex-wrap: wrap;
  }
  .tv-contact-info > p {
    font-size: 1rem;
    color: var(--tv-text-secondary);
    line-height: 1.35;
    margin-bottom: 2rem;
  }
  .tv-f-check-label {
    font-size: 0.98rem;
    color: var(--tv-text-secondary);
    line-height: 1.35;
    cursor: pointer;
  }
  .tv-f-note {
    font-size: 0.98rem;
    color: var(--tv-text-tertiary);
    margin-top: 0.85rem;
    line-height: 1.22;
    text-align: center;
  }
  .tv-contact-location > .tv-wrap > .tv-location-grid > div > p {
    font-size: 1rem;
    color: var(--tv-text-tertiary);
    line-height: 1.45;
    margin-top: 1.5rem;
  }
  .tv-contact-info h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 560px) {
  .tv-contact-grid,
  .tv-contact-media-grid,
  .tv-location-grid {
    gap: 2.25rem;
  }
  .tv-enquiry-types {
    grid-template-columns: 1fr;
  }
  .tv-map-actions {
    grid-template-columns: 1fr;
  }
  .tv-contact-form-panel {
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }
  /* Tighten the main contact section on small screens */
  .tv-cm-card {
    padding: 1rem 1.1rem;
    gap: 0.85rem;
    flex-wrap: wrap;
  }
  /* Let the badge wrap below the body on very narrow screens */
  .tv-cm-badge {
    margin-left: 0;
  }
  /* Sticky tabs: prevent over-tall bar on mobile */
  .tv-ct-tab {
    padding: 0.85rem 1.1rem;
    font-size: 0.85rem;
  }
  /* Office card tighter padding */
  .tv-office-card {
    padding: 1.5rem;
  }
}
