/* ── Contact Modal — shared across all pages ─────────── */

.cm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 58, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cm-overlay.cm-open {
  opacity: 1;
  visibility: visible;
}

.cm-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 48px;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.cm-overlay.cm-open .cm-modal {
  transform: translateY(0);
}

.cm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 8px;
  line-height: 1;
  font-size: 18px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.cm-close:hover { color: #1c1c1c; background: #f5f5f5; }

.cm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cm-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #060a3a;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cm-subtext {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 28px;
}

.cm-links { display: flex; flex-direction: column; gap: 10px; }

.cm-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f7f7f7;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.cm-link:hover {
  border-color: #0057D9;
  background: rgba(0, 87, 217, 0.04);
  transform: translateX(3px);
}

.cm-link-icon {
  width: 36px;
  height: 36px;
  background: #0057D9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}
.cm-link-text strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #060a3a;
  margin-bottom: 1px;
}
.cm-link-text span { font-size: 12px; color: #666; }

/* ── Form side ──────────────────────────────────────── */
.cm-form-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #060a3a;
  margin-bottom: 20px;
}
.cm-form-group { margin-bottom: 16px; }
.cm-form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1c1c1c;
  margin-bottom: 6px;
}
.cm-form-group input,
.cm-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #1c1c1c;
  background: #f7f7f7;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.cm-form-group input:focus,
.cm-form-group textarea:focus {
  border-color: #0057D9;
  background: #ffffff;
}
.cm-form-group textarea { min-height: 100px; resize: vertical; }

.cm-form-submit {
  width: 100%;
  padding: 12px;
  background: #0057D9;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.03em;
}
.cm-form-submit:hover { background: #004ab8; }

@media (max-width: 640px) {
  .cm-modal { padding: 32px 20px; }
  .cm-grid { grid-template-columns: 1fr; gap: 32px; }
}
