@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --ct-bg: #0f0f0f;
  --ct-bg-alt: #111111;
  --ct-surface: #171717;
  --ct-surface-soft: #1d1d1d;
  --ct-border: #2d2d2d;
  --ct-text: #f5f5f5;
  --ct-muted: #a7aea7;
  --ct-accent: #2f9b48;
  --ct-accent-strong: #14d842;
  --ct-accent-soft: rgba(47, 155, 72, 0.12);
}

body.page-template-template-contact {
  background: var(--ct-bg);
  color: var(--ct-text);
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
}

#contact-page {
  background: var(--ct-bg);
  color: var(--ct-text);
}

#contact-page * {
  box-sizing: border-box;
}

#contact-page a {
  color: inherit;
  text-decoration: none;
}

#contact-page .ct-container {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}

#contact-page .ct-hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 96px;
  background:
    radial-gradient(circle at top left, rgba(20, 216, 66, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(47, 155, 72, 0.16), transparent 28%),
    linear-gradient(180deg, #070707 0%, #0f0f0f 50%, #141414 100%);
}

#contact-page .ct-hero::before,
#contact-page .ct-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(47, 155, 72, 0.14);
  pointer-events: none;
}

#contact-page .ct-hero::before {
  top: 90px;
  right: min(8vw, 120px);
  width: 220px;
  height: 220px;
}

#contact-page .ct-hero::after {
  bottom: 60px;
  left: min(6vw, 80px);
  width: 120px;
  height: 120px;
}

#contact-page .ct-hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent 35%, rgba(0, 0, 0, 0.25));
}

#contact-page .ct-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: center;
}

#contact-page .ct-eyebrow,
#contact-page .ct-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(47, 155, 72, 0.4);
  background: var(--ct-accent-soft);
  color: var(--ct-accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#contact-page .ct-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

#contact-page .ct-hero-desc,
#contact-page .ct-section-desc,
#contact-page .ct-info-card p,
#contact-page .ct-card p,
#contact-page .ct-dot-list li,
#contact-page .ct-branch-item span {
  color: var(--ct-muted);
  line-height: 1.75;
}

#contact-page .ct-hero-desc {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: 1.05rem;
}

#contact-page .ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

#contact-page .ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 2px solid var(--ct-accent);
  background: var(--ct-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: 0.3s ease;
}

#contact-page .ct-btn:hover {
  background: #2fb74f;
  border-color: #2fb74f;
  color: #fff;
}

#contact-page .ct-btn-outline {
  background: transparent;
  color: #38c95b;
  border-color: #38c95b;
}

#contact-page .ct-btn-outline:hover {
  background: rgba(56, 201, 91, 0.12);
  border-color: #4cda6e;
  color: #4cda6e;
}

#contact-page .ct-card,
#contact-page .ct-hero-card,
#contact-page .ct-info-card {
  border: 1px solid var(--ct-border);
  background: var(--ct-surface);
  transition: 0.3s ease;
}

#contact-page .ct-hero-card,
#contact-page .ct-card {
  padding: 32px;
}

#contact-page .ct-hero-card:hover,
#contact-page .ct-card:hover,
#contact-page .ct-info-card:hover {
  border-color: rgba(47, 155, 72, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
  transform: translateY(-4px);
}

#contact-page .ct-hero-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(47, 155, 72, 0.12), rgba(47, 155, 72, 0.04)),
    var(--ct-surface);
}

#contact-page .ct-hero-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(47, 155, 72, 0.18), transparent 68%);
}

#contact-page .ct-hero-card h2,
#contact-page .ct-card h3,
#contact-page .ct-section-title,
#contact-page .ct-info-card h3 {
  margin: 0 0 14px;
  color: #fff;
  font-weight: 700;
}

#contact-page .ct-section-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

#contact-page .ct-hero-card h2,
#contact-page .ct-card h3,
#contact-page .ct-info-card h3 {
  font-size: 1.35rem;
}

#contact-page .ct-check-list,
#contact-page .ct-dot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#contact-page .ct-check-list {
  display: grid;
  gap: 14px;
}

#contact-page .ct-check-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: #e7efe7;
}

#contact-page .ct-check-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border: 1px solid rgba(47, 155, 72, 0.7);
}

#contact-page .ct-check-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 9px;
  border-right: 1.7px solid var(--ct-accent-strong);
  border-bottom: 1.7px solid var(--ct-accent-strong);
  transform: rotate(45deg);
}

#contact-page .ct-contact-strip {
  margin-top: -40px;
  position: relative;
  z-index: 2;
  padding: 0 0 36px;
}

#contact-page .ct-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

#contact-page .ct-info-card {
  padding: 28px 24px;
  text-align: center;
  background: rgba(23, 23, 23, 0.96);
}

#contact-page .ct-info-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 155, 72, 0.35);
  background: rgba(47, 155, 72, 0.14);
  color: var(--ct-accent-strong);
  font-size: 22px;
}

#contact-page .ct-info-card p {
  margin: 0;
}

#contact-page .ct-info-card a:hover,
#contact-page .ct-office-item a:hover {
  color: var(--ct-accent-strong);
}

#contact-page .ct-section {
  padding: 88px 0;
}

#contact-page .ct-section-alt {
  background: var(--ct-bg-alt);
}

#contact-page .anchor-offset {
  scroll-margin-top: 120px;
}

#contact-page .ct-form-layout,
#contact-page .ct-map-layout {
  display: grid;
  gap: 24px;
}

#contact-page .ct-form-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
}

#contact-page .ct-side-stack {
  display: grid;
  gap: 20px;
}

#contact-page .ct-section-desc p {
  margin: 0 0 12px;
}

#contact-page .ct-section-desc p:last-child {
  margin-bottom: 0;
}

#contact-page .ct-form-slot {
  margin-top: 26px;
}

#contact-page .ct-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#contact-page .ct-field {
  display: grid;
  gap: 8px;
}

#contact-page .ct-field-full {
  grid-column: 1 / -1;
}

#contact-page label {
  color: #eef5ef;
  font-size: 14px;
  font-weight: 600;
}

#contact-page input:not([type="checkbox"]):not([type="radio"]),
#contact-page select,
#contact-page textarea,
#contact-page .ct-form-slot .ff-el-form-control,
#contact-page .ct-form-slot .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio) {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid var(--ct-border);
  background: var(--ct-surface-soft);
  color: #fff;
  font: inherit;
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contact-page textarea,
#contact-page .ct-form-slot textarea {
  min-height: 160px;
  resize: vertical;
}

#contact-page input:focus,
#contact-page select:focus,
#contact-page textarea:focus,
#contact-page .ct-form-slot .ff-el-form-control:focus,
#contact-page .ct-form-slot .wpcf7-form-control:focus {
  outline: none;
  border-color: rgba(47, 155, 72, 0.75);
  box-shadow: 0 0 0 1px rgba(47, 155, 72, 0.2);
}

#contact-page input::placeholder,
#contact-page textarea::placeholder {
  color: #7f887f;
}

#contact-page .ct-form-slot button,
#contact-page .ct-form-slot input[type="submit"],
#contact-page .ct-form-slot .ff-btn-submit,
#contact-page .ct-form-slot .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 2px solid var(--ct-accent);
  background: var(--ct-accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: 0.3s ease;
}

#contact-page .ct-form-slot button:hover,
#contact-page .ct-form-slot input[type="submit"]:hover,
#contact-page .ct-form-slot .ff-btn-submit:hover,
#contact-page .ct-form-slot .wpcf7-submit:hover {
  background: #2fb74f;
  border-color: #2fb74f;
}

#contact-page .ct-form-note,
#contact-page .ct-form-slot .ff-el-is-error,
#contact-page .ct-form-slot .wpcf7-not-valid-tip,
#contact-page .ct-form-slot .wpcf7-response-output {
  margin-top: 14px;
  color: var(--ct-muted);
  font-size: 14px;
}

#contact-page .ct-dot-list {
  display: grid;
  gap: 12px;
}

#contact-page .ct-dot-list li {
  position: relative;
  padding-left: 18px;
}

#contact-page .ct-dot-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--ct-accent);
}

#contact-page .ct-map-layout {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
}

#contact-page .ct-office-items,
#contact-page .ct-branch-list {
  display: grid;
  gap: 14px;
}

#contact-page .ct-office-item,
#contact-page .ct-branch-item {
  padding: 16px 18px;
  border: 1px solid var(--ct-border);
  background: var(--ct-surface-soft);
}

#contact-page button.ct-branch-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}

#contact-page button.ct-branch-item:hover,
#contact-page button.ct-branch-item.is-active {
  border-color: rgba(36, 241, 83, 0.45);
  background: rgba(36, 241, 83, 0.08);
  transform: translateY(-2px);
}

#contact-page .ct-office-item strong,
#contact-page .ct-branch-item strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

#contact-page .ct-office-item span,
#contact-page .ct-office-item a,
#contact-page .ct-branch-item span {
  color: var(--ct-muted);
  line-height: 1.7;
}

#contact-page .ct-office-branches {
  margin-top: 26px;
}

#contact-page .ct-office-branches h3 {
  margin: 0 0 14px;
}

#contact-page .ct-map-frame {
  overflow: hidden;
  min-height: 100%;
  padding: 0;
}

#contact-page .ct-map-frame iframe {
  display: block;
  width: 100%;
  min-height: 100%;
  height: 100%;
  border: 0;
}

#contact-page .cta-section {
  background-image: linear-gradient(to bottom right, var(--ct-surface), var(--ct-bg));
  padding: 88px 0;
}

#contact-page .cta-content {
  margin: 0 auto;
  max-width: 100%;
  padding: 0 16px;
}

#contact-page .cta-card {
  position: relative;
  width: 80rem;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 50px 40px;
  text-align: center;
  border: 1px solid var(--ct-border);
  background: linear-gradient(180deg, rgba(47, 155, 72, 0.08), rgba(47, 155, 72, 0.02)), var(--ct-surface);
}

#contact-page .cta-block {
  position: absolute;
  inset: 0;
  opacity: 0.12;
}

#contact-page .cta-card-2,
#contact-page .cta-card-3 {
  position: absolute;
  width: 16rem;
  height: 16rem;
  filter: blur(64px);
}

#contact-page .cta-card-2 {
  top: 0;
  left: 0;
  background: rgba(47, 155, 72, 0.28);
}

#contact-page .cta-card-3 {
  right: 0;
  bottom: 0;
  background: rgba(20, 216, 66, 0.28);
}

#contact-page .cta-block-2 {
  position: relative;
  z-index: 1;
}

#contact-page .cta-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 700;
}

#contact-page .cta-text {
  max-width: 760px;
  margin: 0 auto 40px;
  color: var(--ct-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

#contact-page .cta-layout {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

#contact-page .cta-button-primary,
#contact-page .cta-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--ct-accent);
  transition: 0.3s ease;
}

#contact-page .cta-button-primary {
  background: var(--ct-accent);
  color: #fff !important;
}

#contact-page .cta-button-primary:hover {
  background: #2fb74f;
  border-color: #2fb74f;
}

#contact-page .cta-button-secondary {
  border-color: #f5f5f5;
  background: transparent;
  color: #f5f5f5;
}

#contact-page .cta-button-secondary:hover {
  background: #f5f5f5;
  color: #0f0f0f;
}

#contact-page .cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

#contact-page .cta-card-4 {
  padding: 22px;
  border: 1px solid rgba(47, 155, 72, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

#contact-page .cta-card-4:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(47, 155, 72, 0.34);
}

#contact-page .cta-card-5 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  color: var(--ct-accent-strong);
  background: rgba(47, 155, 72, 0.12);
}

#contact-page .cta-title-2,
#contact-page .cta-text-2,
#contact-page .cta-text-3 {
  margin: 0;
}

#contact-page .cta-title-2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

#contact-page .cta-text-2 {
  margin-bottom: 6px;
  color: #eef5ef;
  font-weight: 600;
}

#contact-page .cta-text-3 {
  color: var(--ct-muted);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  #contact-page .ct-hero-grid,
  #contact-page .ct-form-layout,
  #contact-page .ct-map-layout {
    grid-template-columns: 1fr;
  }

  #contact-page .ct-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #contact-page .ct-hero {
    padding: 136px 0 72px;
  }

  #contact-page .ct-section,
  #contact-page .cta-section {
    padding: 72px 0;
  }

  #contact-page .ct-contact-strip {
    margin-top: -28px;
  }

  #contact-page .ct-contact-grid,
  #contact-page .ct-field-grid,
  #contact-page .cta-grid {
    grid-template-columns: 1fr;
  }

  #contact-page .ct-hero-card,
  #contact-page .ct-card,
  #contact-page .ct-info-card,
  #contact-page .cta-card {
    padding: 24px;
  }

  #contact-page .ct-actions,
  #contact-page .cta-layout {
    flex-direction: column;
  }

  #contact-page .ct-btn,
  #contact-page .cta-button-primary,
  #contact-page .cta-button-secondary,
  #contact-page .ct-form-slot button,
  #contact-page .ct-form-slot input[type="submit"],
  #contact-page .ct-form-slot .ff-btn-submit,
  #contact-page .ct-form-slot .wpcf7-submit {
    width: 100%;
  }

  #contact-page .ct-map-frame {
    min-height: 320px;
  }

  #contact-page .ct-map-frame iframe {
    min-height: 320px;
    height: 320px;
  }

  #contact-page .ct-hero::before {
    width: 160px;
    height: 160px;
  }

  #contact-page .ct-hero::after {
    width: 90px;
    height: 90px;
  }
}

/* CTA contact cards: match About partner cards */
.cta-grid {
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.cta-card-4,
.cta-card-4--link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 220px;
  padding: clamp(24px, 3vw, 34px) clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--kgx-page-border-soft, rgba(255, 255, 255, 0.12));
  background: var(--kgx-page-surface-subtle, rgba(255, 255, 255, 0.04));
  border-radius: 0 !important;
  color: #f5f5f5;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: none;
}

.cta-card-4:hover,
.cta-card-4--link:hover {
  border-color: #6fbf4b;
  background: var(--kgx-page-surface-subtle, rgba(255, 255, 255, 0.05));
  transform: translateY(-3px);
}

.cta-card-5 {
  width: 76px;
  height: 76px;
  margin: 0 auto clamp(18px, 2.5vw, 26px);
  border: 1px solid rgba(111, 191, 75, 0.18);
  border-radius: 0 !important;
  background: radial-gradient(circle at 30% 30%, rgba(111, 191, 75, 0.28), rgba(111, 191, 75, 0.08));
  color: var(--color-primary, #34ea61);
  box-shadow: inset 0 0 0 1px rgba(111, 191, 75, 0.06);
}

.cta-card-5 .fa,
.cta-card-5 svg {
  color: currentColor;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  font-size: 26px !important;
  line-height: 1;

}

.cta-title-2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.18;
  font-weight: 700;
}

.cta-text-2 {
  max-width: 100%;
  margin: 0 0 10px;
  color: #f5f5f5;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cta-text-3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .cta-grid {
    gap: 18px;
  }

  .cta-card-4,
  .cta-card-4--link {
    min-height: 0;
    padding: 24px 16px 26px;
  }

  .cta-card-5 {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
  }
}

/* CTA contact cards: keep page-scoped overrides aligned */
#about-page .cta-grid,
#contact-page .cta-grid {
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

#about-page .cta-card-4,
#about-page .cta-card-4--link,
#contact-page .cta-card-4,
#contact-page .cta-card-4--link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 220px;
  padding: clamp(24px, 3vw, 34px) clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--kgx-page-border-soft, rgba(255, 255, 255, 0.12));
  background: var(--kgx-page-surface-subtle, rgba(255, 255, 255, 0.04));
  border-radius: 0 !important;
  color: #f5f5f5;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: none;
}

#about-page .cta-card-4:hover,
#about-page .cta-card-4--link:hover,
#contact-page .cta-card-4:hover,
#contact-page .cta-card-4--link:hover {
  border-color: #6fbf4b;
  background: var(--kgx-page-surface-subtle, rgba(255, 255, 255, 0.05));
  transform: translateY(-3px);
}

#about-page .cta-card-5,
#contact-page .cta-card-5 {
  width: 76px;
  height: 76px;
  margin: 0 auto clamp(18px, 2.5vw, 26px);
  border: 1px solid rgba(111, 191, 75, 0.18);
  border-radius: 0 !important;
  background: radial-gradient(circle at 30% 30%, rgba(111, 191, 75, 0.28), rgba(111, 191, 75, 0.08));
  color: var(--color-primary, #34ea61);
  box-shadow: inset 0 0 0 1px rgba(111, 191, 75, 0.06);
}

#about-page .cta-title-2,
#contact-page .cta-title-2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.18;
  font-weight: 700;
}

#about-page .cta-text-2,
#contact-page .cta-text-2 {
  max-width: 100%;
  margin: 0 0 10px;
  color: #f5f5f5;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#about-page .cta-text-3,
#contact-page .cta-text-3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.5;
}

@media (max-width: 640px) {
  #about-page .cta-card-4,
  #about-page .cta-card-4--link,
  #contact-page .cta-card-4,
  #contact-page .cta-card-4--link {
    min-height: 0;
    padding: 24px 16px 26px;
  }

  #about-page .cta-card-5,
  #contact-page .cta-card-5 {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
  }
}
