:root {
  --cda-contact-primary: #0c4a6e;
  --cda-contact-primary-dark: #08334d;
  --cda-contact-accent: #10b981;
  --cda-contact-text: #102a43;
  --cda-contact-muted: #5a6c7d;
  --cda-contact-border: #dbe7f3;
  --cda-contact-surface: #ffffff;
  --cda-contact-soft: #f5f9ff;
  --cda-contact-shadow: 0 12px 35px rgba(12, 74, 110, 0.12);
}

.page-template-contact #maincontent {
  color: var(--cda-contact-text);
}

.page-template-contact .clSectionBox,
.page-template-contact-php .clSectionBox {
  padding: 3.25rem 0;
}

.page-template-contact .clContentSection .container,
.page-template-contact-php .clContentSection .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-template-contact .clSectionHeader,
.page-template-contact-php .clSectionHeader {
  margin-bottom: 1.5rem;
}

/* Utility fallback styles used by the contact template. */
.page-template-contact .text-danger,
.page-template-contact-php .text-danger {
  color: #dc2626;
}

.page-template-contact .mt-1,
.page-template-contact-php .mt-1 {
  margin-top: 0.25rem;
}

.page-template-contact .mt-2,
.page-template-contact-php .mt-2 {
  margin-top: 0.5rem;
}

.page-template-contact .mt-4,
.page-template-contact-php .mt-4 {
  margin-top: 1.5rem;
}

.page-template-contact .mb-5,
.page-template-contact-php .mb-5 {
  margin-bottom: 3rem;
}

.page-template-contact .d-flex,
.page-template-contact-php .d-flex {
  display: flex;
}

.page-template-contact .align-items-start,
.page-template-contact-php .align-items-start {
  align-items: flex-start;
}

.page-template-contact .gap-2,
.page-template-contact-php .gap-2 {
  gap: 0.5rem;
}

.page-template-contact .clHeaderH2,
.page-template-contact-php .clHeaderH2 {
  font-size: clamp(1.7rem, 2.1vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  color: var(--cda-contact-primary-dark);
}

.page-template-contact .clSectionHeader p,
.page-template-contact-php .clSectionHeader p {
  margin: 0;
  color: var(--cda-contact-muted);
  line-height: 1.7;
}

.page-template-contact .clBadge,
.page-template-contact-php .clBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(12, 74, 110, 0.1);
  color: var(--cda-contact-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

#stContact {
  background: linear-gradient(180deg, #f8fcff 0%, #eef6ff 100%);
  border: 1px solid rgba(12, 74, 110, 0.08);
  border-radius: 20px;
}

.page-template-contact .clContactInfo,
.page-template-contact-php .clContactInfo {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-template-contact .clContactCard,
.page-template-contact-php .clContactCard {
  height: 100%;
  padding: 1.6rem 1.45rem;
  border: 1px solid var(--cda-contact-border);
  background: var(--cda-contact-surface);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(12, 74, 110, 0.08);
}

.page-template-contact .clContactCard__icon,
.page-template-contact-php .clContactCard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 0.9rem;
  background: rgba(12, 74, 110, 0.09);
  color: var(--cda-contact-primary);
  font-size: 1.15rem;
}

.page-template-contact .clContactCard__title,
.page-template-contact-php .clContactCard__title {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--cda-contact-primary-dark);
}

.page-template-contact .clContactCard a,
.page-template-contact .clContactCard span,
.page-template-contact-php .clContactCard a,
.page-template-contact-php .clContactCard span {
  color: var(--cda-contact-muted);
  line-height: 1.6;
}

.page-template-contact .clContactCard a:hover,
.page-template-contact-php .clContactCard a:hover {
  color: var(--cda-contact-primary);
}

.page-template-contact .clContactHighlights,
.page-template-contact-php .clContactHighlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.page-template-contact .clContactHighlights li,
.page-template-contact-php .clContactHighlights li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  border: 1px solid var(--cda-contact-border);
  border-left: 4px solid var(--cda-contact-accent);
  background: #fff;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  color: #25455f;
}

.page-template-contact .clContactHighlights li i,
.page-template-contact-php .clContactHighlights li i {
  color: var(--cda-contact-accent);
  margin-top: 0.1rem;
}

#stContactContent {
  margin-top: 1.5rem;
}

.page-template-contact #stContactContent .row,
.page-template-contact-php #stContactContent .row {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
}

.page-template-contact .clContactExtra,
.page-template-contact-php .clContactExtra {
  padding: 1rem;
  border: 1px solid var(--cda-contact-border);
  border-radius: 12px;
  background: var(--cda-contact-soft);
}

.page-template-contact .clContactChecklist,
.page-template-contact-php .clContactChecklist {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.page-template-contact .clContactChecklist li,
.page-template-contact-php .clContactChecklist li {
  position: relative;
  padding-left: 1.35rem;
  color: #274862;
}

.page-template-contact .clContactChecklist li::before,
.page-template-contact-php .clContactChecklist li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cda-contact-accent);
}

.page-template-contact .clContactExtra p,
.page-template-contact-php .clContactExtra p {
  margin: 0 0 1rem;
}

.page-template-contact .btn,
.page-template-contact-php .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, var(--cda-contact-primary), #0f6a9f);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-template-contact .btn:hover,
.page-template-contact-php .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(12, 74, 110, 0.22);
  color: #fff;
}

.page-template-contact .clContactFormBox,
.page-template-contact-php .clContactFormBox {
  padding: 1.5rem;
  border: 1px solid var(--cda-contact-border);
  border-radius: 16px;
  background: var(--cda-contact-surface);
  box-shadow: var(--cda-contact-shadow);
}

.page-template-contact .clContactForm label,
.page-template-contact-php .clContactForm label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #1b3d57;
}

.page-template-contact .clContactForm .form-control,
.page-template-contact-php .clContactForm .form-control {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cfddec;
  background: #fff;
  padding: 0.7rem 0.8rem;
  color: #16364d;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-template-contact .clContactForm .form-control:focus,
.page-template-contact-php .clContactForm .form-control:focus {
  border-color: #58a6d4;
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 166, 212, 0.2);
}

.page-template-contact .clContactForm .row,
.page-template-contact-php .clContactForm .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.page-template-contact .clContactForm [class*="col-"],
.page-template-contact-php .clContactForm [class*="col-"] {
  width: 100%;
}

.page-template-contact #lbContactFormStatus,
.page-template-contact-php #lbContactFormStatus {
  margin: 0.75rem 0 0;
  min-height: 1.2rem;
  color: #1f4e6e;
  font-size: 0.95rem;
}

#stContactMap .clSectionHeader {
  text-align: center;
}

.page-template-contact .clContactMapWrapper,
.page-template-contact-php .clContactMapWrapper {
  margin-top: 1.1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--cda-contact-border);
  box-shadow: var(--cda-contact-shadow);
}

.page-template-contact .clContactMapWrapper iframe,
.page-template-contact-php .clContactMapWrapper iframe {
  display: block;
}

@media (max-width: 991px) {
  .page-template-contact #stContactContent .row,
  .page-template-contact-php #stContactContent .row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .page-template-contact .clContactForm .col-md-6,
  .page-template-contact-php .clContactForm .col-md-6 {
    grid-column: span 1;
  }

  .page-template-contact .clContactForm .row,
  .page-template-contact-php .clContactForm .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-template-contact .clContactForm .col-12,
  .page-template-contact-php .clContactForm .col-12 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .page-template-contact .clSectionBox,
  .page-template-contact-php .clSectionBox {
    padding: 2.1rem 0;
  }

  .page-template-contact .clContactFormBox,
  .page-template-contact-php .clContactFormBox,
  .page-template-contact .clContactCard,
  .page-template-contact-php .clContactCard {
    padding: 1.15rem;
  }
}
