/* Bond Insurance — contact form modal */
.cf-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 220ms ease;
}
.cf-overlay.is-open { display: flex; opacity: 1; }

.cf-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 18px;
  padding: 36px 36px 32px;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.45);
  transform: translateY(12px) scale(0.98);
  transition: transform 240ms cubic-bezier(.2,.7,.2,1);
  font-family: 'Manrope', 'Onest', system-ui, -apple-system, sans-serif;
  color: #193155;
}
.cf-overlay.is-open .cf-modal { transform: translateY(0) scale(1); }

.cf-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(25, 49, 85, 0.1);
  background: #fff;
  color: #475569;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.cf-close:hover { border-color: #193155; color: #193155; transform: rotate(90deg); }

.cf-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8a9c;
  margin: 0 0 10px;
}
.cf-title {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.cf-sub {
  font-size: 14px;
  color: #475569;
  margin: 0 0 24px;
  line-height: 1.5;
}

.cf-field { margin-bottom: 14px; }
.cf-field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a8a9c;
  margin-bottom: 6px;
}
.cf-field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #193155;
  background: #f6f8fb;
  border: 1px solid rgba(25, 49, 85, 0.08);
  border-radius: 10px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
  box-sizing: border-box;
}
.cf-field input:focus {
  border-color: #3A619B;
  background: #fff;
}
.cf-field input::placeholder { color: #a8b3c0; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.cf-submit {
  width: 100%;
  padding: 15px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #193155;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 180ms ease, transform 180ms ease;
}
.cf-submit:hover { background: #0f1f3a; transform: translateY(-1px); }
.cf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.cf-error {
  font-size: 13px;
  color: #c0392b;
  margin: 8px 0 0;
  min-height: 18px;
}

.cf-fineprint {
  font-size: 11px;
  color: #7a8a9c;
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}

/* Success state */
.cf-success {
  text-align: center;
  padding: 8px 0;
}
.cf-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #34a76b 0%, #1f8a5b 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  animation: cf-pop 460ms cubic-bezier(.2,.9,.3,1.2);
}
@keyframes cf-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.cf-success-title {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 8px;
  color: #193155;
}
.cf-success-sub {
  font-size: 14px;
  color: #475569;
  margin: 0 0 24px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .cf-modal { padding: 28px 22px 24px; border-radius: 14px; }
  .cf-title { font-size: 22px; }
  .cf-row { grid-template-columns: 1fr; }
}
