/* Native demo-booking widget (components/marketing/booking-widget.tsx).
   Namespaced cbw- and linked with a content-hash query by the pages that use
   it (/book-a-demo, /lp/demo). Tokens from the Webflow root: Mulish headings,
   Poppins body, #2a7953 buttons hover #143927, mint #8ed7b4 accents, canvas
   #1d1e1d, .4rem button radius / .8rem card radius. */

.cbw-card {
  background: #232423;
  border: 1px solid #303230;
  border-radius: 0.8rem;
  padding: 1.5rem;
  color: #f2f3f2;
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  max-width: 34rem;
  margin: 0 auto;
}

.cbw-card * {
  box-sizing: border-box;
}

.cbw-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: #8a8c8a;
  flex-wrap: wrap;
}

.cbw-steps button {
  background: none;
  border: 0;
  padding: 0;
  color: #8a8c8a;
  font: inherit;
  cursor: pointer;
}

.cbw-steps button:disabled {
  cursor: default;
}

.cbw-steps .cbw-step-active {
  color: #8ed7b4;
  font-weight: 600;
}

.cbw-title {
  font-family: Mulish, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #f2f3f2;
}

.cbw-muted {
  color: #a1a3a1;
  font-size: 0.85rem;
}

.cbw-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cbw-month-nav span {
  font-family: Mulish, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.cbw-nav-btn {
  background: #1d1e1d;
  border: 1px solid #303230;
  border-radius: 0.4rem;
  color: #f2f3f2;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cbw-nav-btn:hover:not(:disabled) {
  background: #303230;
}

.cbw-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.cbw-day-head,
.cbw-day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.cbw-day-head {
  margin-bottom: 0.25rem;
}

.cbw-day-head div {
  text-align: center;
  font-size: 0.7rem;
  color: #8a8c8a;
  padding: 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cbw-day {
  aspect-ratio: 1;
  border-radius: 0.4rem;
  border: 0;
  background: transparent;
  color: #4a4c4a;
  font: inherit;
  font-size: 0.9rem;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.cbw-day-open {
  background: #1d1e1d;
  border: 1px solid #303230;
  color: #f2f3f2;
  cursor: pointer;
  font-weight: 600;
}

.cbw-day-open:hover {
  border-color: #8ed7b4;
}

.cbw-day-selected {
  background: #2a7953;
  border-color: #2a7953;
  color: #fff;
}

.cbw-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 1rem;
  color: #8ed7b4;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.cbw-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (max-width: 30rem) {
  .cbw-slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cbw-slot {
  background: #1d1e1d;
  border: 1px solid #303230;
  border-radius: 0.4rem;
  color: #f2f3f2;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 0.25rem;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.cbw-slot:hover {
  border-color: #8ed7b4;
}

.cbw-field {
  display: block;
  margin-bottom: 0.85rem;
}

.cbw-field span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d5d6d5;
  margin-bottom: 0.3rem;
}

.cbw-field input,
.cbw-field textarea {
  width: 100%;
  background: #1d1e1d;
  border: 1px solid #303230;
  border-radius: 0.4rem;
  color: #f2f3f2;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
}

.cbw-field input:focus,
.cbw-field textarea:focus {
  outline: none;
  border-color: #8ed7b4;
}

.cbw-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.cbw-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.75rem;
}

@media (max-width: 30rem) {
  .cbw-2col {
    grid-template-columns: 1fr;
  }
}

.cbw-summary {
  background: #1d1e1d;
  border: 1px solid #303230;
  border-radius: 0.4rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cbw-summary strong {
  color: #8ed7b4;
}

.cbw-submit {
  display: block;
  width: 100%;
  background: #2a7953;
  border: 0;
  border-radius: 0.4rem;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cbw-submit:hover:not(:disabled) {
  background: #143927;
}

.cbw-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.cbw-error {
  background: rgba(220, 90, 90, 0.12);
  border: 1px solid rgba(220, 90, 90, 0.4);
  border-radius: 0.4rem;
  color: #f0b3b3;
  font-size: 0.85rem;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
}

.cbw-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  color: #a1a3a1;
  font-size: 0.9rem;
}

.cbw-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #303230;
  border-top-color: #8ed7b4;
  border-radius: 50%;
  margin-right: 0.6rem;
  animation: cbw-spin 0.8s linear infinite;
}

@keyframes cbw-spin {
  to {
    transform: rotate(360deg);
  }
}

.cbw-success {
  text-align: center;
  padding: 2rem 0.5rem;
}

.cbw-success-check {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #2a7953;
  color: #fff;
  font-size: 1.5rem;
  line-height: 3rem;
  margin: 0 auto 1rem;
}

.cbw-tz-note {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: #8a8c8a;
  text-align: center;
}
