.cd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(16, 18, 33, 0.58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.cd-overlay.cd-open {
  opacity: 1;
}
.cd-overlay[hidden] {
  display: none;
}

.cd-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 94vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(16, 18, 33, 0.34), 0 4px 14px rgba(16, 18, 33, 0.12);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.cd-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #00a884, #1e66cc, #7c3aed);
  z-index: 2;
}
.cd-open .cd-modal {
  transform: translateY(0) scale(1);
}

.cd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.cd-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a2e;
}

.cd-sub {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #5a5f7a;
}
.cd-sub:empty {
  display: none;
}

.cd-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #f5f6f8;
  color: #5a5f7a;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cd-close:hover {
  background: #e9ebf0;
  color: #1a1a2e;
}

.cd-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #fafbfc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.cd-subnav[hidden] {
  display: none;
}

.cd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #5a5f7a;
  cursor: pointer;
}
.cd-back:hover {
  background: #e9ebf0;
  color: #1a1a2e;
}

.cd-done {
  padding: 7px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
}
.cd-done:hover {
  background: #f5f6f8;
}

.cd-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.cd-calendly {
  width: 100%;
  height: min(640px, 72vh);
  min-width: 320px;
}

.cd-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.cd-spin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(30, 102, 204, 0.18);
  border-top-color: #1e66cc;
  animation: cd-spin 0.7s linear infinite;
}

@keyframes cd-spin {
  to {
    transform: rotate(360deg);
  }
}
.cd-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 44px 36px;
}
.cd-panel[hidden] {
  display: none;
}
.cd-panel h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a2e;
}
.cd-panel p {
  margin: 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.6;
  color: #5a5f7a;
}

.cd-panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #f5f6f8;
  color: #5a5f7a;
}
.cd-panel-icon.ok {
  background: rgba(0, 168, 132, 0.12);
  color: #00a884;
}

.cd-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
}

.cd-btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.cd-btn:active {
  transform: translateY(1px);
}
.cd-btn.primary {
  background: #1e66cc;
  color: #fff;
}
.cd-btn.primary:hover {
  background: #1759b3;
}
.cd-btn.ghost {
  background: #fff;
  color: #1a1a2e;
  border-color: rgba(0, 0, 0, 0.12);
}
.cd-btn.ghost:hover {
  background: #f5f6f8;
}
.cd-btn.danger {
  background: #fff;
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.3);
}
.cd-btn.danger:hover {
  background: rgba(192, 57, 43, 0.06);
}
.cd-btn.block {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 10px;
}

.cd-link {
  margin-top: 16px;
  padding: 4px;
  border: none;
  background: none;
  font: inherit;
  font-size: 12.5px;
  color: #9a9fb5;
  text-decoration: underline;
  cursor: pointer;
}
.cd-link:hover {
  color: #5a5f7a;
}

.cd-close:focus-visible,
.cd-btn:focus-visible,
.cd-back:focus-visible,
.cd-done:focus-visible,
.cd-link:focus-visible {
  outline: 2px solid #1e66cc;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .cd-overlay {
    padding: 0;
  }
  .cd-modal {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .cd-calendly {
    height: 100%;
  }
  .cd-actions {
    flex-direction: column;
  }
  .cd-btn {
    width: 100%;
  }
}

/*# sourceMappingURL=demo-modal.css.map */
