/* ── Floating contact widget ── */
.contact-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Toggle pill */
.cw-toggle {
  background: #2D4A5A;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: background 0.15s;
}
.cw-toggle:hover { background: #3a5d70; }

/* Panel */
.cw-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(0,0,0,0.16);
  padding: 20px;
  width: 296px;
  display: none;
}
.cw-panel.open { display: block; }

/* Header row */
.cw-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.cw-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1a2a35;
  line-height: 1.3;
  margin: 0;
}
.cw-sub {
  font-size: 0.7rem;
  color: #7a8a95;
  margin: 2px 0 0;
}
.cw-close {
  background: none;
  border: none;
  color: #aab8c2;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0 0 0 8px;
  cursor: pointer;
}
.cw-close:hover { color: #1a2a35; }

/* Textarea */
#cw-form textarea {
  width: 100%;
  border: 1.5px solid #d0d8df;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  color: #1a2a35;
  resize: vertical;
  display: block;
  box-sizing: border-box;
}
#cw-form textarea:focus { outline: none; border-color: #2D4A5A; }

/* Email + send row */
.cw-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.cw-row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #d0d8df;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.73rem;
  color: #1a2a35;
  box-sizing: border-box;
}
.cw-row input[type="email"]:focus { outline: none; border-color: #2D4A5A; }

.cw-send {
  background: #2D4A5A;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.cw-send:hover { background: #3a5d70; }
.cw-send:disabled { opacity: 0.55; cursor: default; }

/* Status messages */
.cw-success {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2D4A5A;
  margin: 0 0 4px;
}
.cw-error {
  font-size: 0.73rem;
  color: #c0392b;
  margin: 8px 0 0;
}

/* Mobile */
@media (max-width: 400px) {
  .contact-widget { right: 12px; bottom: 12px; }
  .cw-panel { width: calc(100vw - 48px); }
}
