.cib-booking {
  display: grid;
  gap: 16px;
}

.cib-booking .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.cib-booking .btn svg {
  width: 18px;
  height: 18px;
}

.cib-booking .btn-primary {
  color: #fff;
  background: #0071e3;
  border-color: #0071e3;
}

.cib-booking .btn-dark {
  color: #fff;
  background: #000;
  border-color: #000;
}

.cib-booking .btn-soft {
  color: #1d1d1f;
  background: rgba(232, 232, 237, 0.76);
  border-color: rgba(210, 210, 215, 0.72);
}

.cib-booking .booking-note {
  padding: 14px 16px;
  border-radius: 24px;
  color: #5c4300;
  background: #fff7d6;
  font-size: 14px;
  line-height: 1.48;
}

.cib-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cib-booking-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 32px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.94), rgba(17, 17, 19, 0.96)),
    #111113;
}

.cib-booking-head > div {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.cib-booking-head .cib-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.cib-booking-head h2,
.cib-booking-head p {
  margin: 0;
}

.cib-booking-head h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.cib-booking-head p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.cib-booking-head .btn {
  flex: 0 0 auto;
  color: #1d1d1f;
  background: #fff;
  border-color: #fff;
}

.cib-flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 7px;
  margin: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  list-style: none;
}

.cib-flow-steps li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  padding: 0 10px;
  border-radius: 999px;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 850;
}

.cib-flow-steps li span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #1d1d1f;
  background: #f5f5f7;
  font-size: 11px;
  font-weight: 900;
}

.cib-flow-steps li.is-active {
  color: #fff;
  background: #0071e3;
}

.cib-flow-steps li.is-active span {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.cib-flow-steps li.is-complete {
  color: #165d33;
  background: #d8f7e5;
}

.cib-flow-steps li.is-complete span {
  color: #165d33;
  background: rgba(22, 93, 51, 0.1);
}

.cib-flow-form {
  display: grid;
  gap: 14px;
}

.cib-flow-screen {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 36px;
  background: #f5f5f7;
}

.cib-flow-screen[hidden] {
  display: none;
}

.cib-screen-copy {
  display: grid;
  gap: 8px;
}

.cib-kicker {
  color: #0066cc;
  font-size: 13px;
  font-weight: 850;
}

.cib-screen-copy h3,
.cib-confirmation h3 {
  margin: 0;
  color: #1d1d1f;
  font-size: 28px;
  line-height: 1.12;
}

.cib-screen-copy p,
.cib-gpt-card p,
.cib-summary p,
.cib-confirmation p {
  margin: 0;
  color: #6e6e73;
  line-height: 1.5;
}

.cib-gpt-card,
.cib-summary {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.cib-gpt-guide {
  display: grid;
  gap: 12px;
}

.cib-gpt-guide .cib-gpt-card {
  grid-template-columns: 46px 1fr;
  align-items: start;
}

.cib-gpt-card strong {
  display: block;
  margin-bottom: 4px;
  color: #1d1d1f;
  font-size: 16px;
}

.cib-gpt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.cib-chat-panel,
.cib-insight-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.cib-gpt-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  max-height: 320px;
  padding: 14px;
  overflow: auto;
  border-radius: 24px;
  background: #f5f5f7;
}

.cib-gpt-message {
  display: grid;
  gap: 5px;
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 20px;
  color: #1d1d1f;
  background: #fff;
  line-height: 1.45;
}

.cib-gpt-message strong {
  font-size: 12px;
  color: #0066cc;
}

.cib-gpt-message span {
  color: #424245;
}

.cib-gpt-message.user {
  justify-self: end;
  color: #fff;
  background: #0071e3;
}

.cib-gpt-message.user strong,
.cib-gpt-message.user span {
  color: #fff;
}

.cib-prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cib-prompt-row button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(210, 210, 215, 0.92);
  border-radius: 999px;
  color: #1d1d1f;
  background: #fbfbfd;
  font-weight: 800;
  cursor: pointer;
}

.cib-gpt-composer {
  display: grid;
  gap: 10px;
}

.cib-gpt-composer textarea,
.cib-result-field textarea {
  width: 100%;
  min-height: 112px;
  padding: 15px 16px;
  border: 1px solid rgba(210, 210, 215, 0.92);
  border-radius: 24px;
  color: #1d1d1f;
  background: #fff;
  resize: vertical;
  line-height: 1.5;
}

.cib-gpt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cib-insight-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cib-insight-head h4 {
  margin: 0;
  color: #1d1d1f;
  font-size: 22px;
}

.cib-insight-panel > p {
  margin: 0;
  color: #6e6e73;
  line-height: 1.5;
}

.cib-result-field {
  display: grid;
  gap: 8px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 850;
}

.cib-result-field textarea {
  min-height: 210px;
}

.cib-file-field {
  display: grid;
  gap: 8px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 850;
}

.cib-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cib-file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px dashed rgba(0, 113, 227, 0.45);
  border-radius: 20px;
  background: #fbfbfd;
}

.cib-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  background: #1d1d1f;
  font-weight: 850;
}

.cib-file-button svg {
  width: 17px;
  height: 17px;
}

.cib-file-name {
  min-width: 0;
  color: #424245;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cib-file-help {
  color: #6e6e73;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.cib-project-preview p {
  white-space: pre-line;
}

.cib-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 18px;
  color: #0071e3;
  background: #e8f4ff;
}

.cib-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 22px;
  background: #fff;
  font-weight: 800;
}

.cib-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.cib-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cib-field-grid label,
.cib-schedule-layout label,
.cib-date-picker {
  display: grid;
  gap: 7px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 800;
}

.cib-field-grid input,
.cib-field-grid select,
.cib-field-grid textarea,
.cib-schedule-layout input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(210, 210, 215, 0.92);
  border-radius: 999px;
  color: #1d1d1f;
  background: #fff;
}

.cib-field-grid textarea {
  min-height: 112px;
  padding: 15px 16px;
  border-radius: 24px;
  resize: vertical;
  line-height: 1.5;
}

.cib-full-field {
  grid-column: 1 / -1;
}

.cib-schedule-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.cib-date-picker {
  position: relative;
  align-self: start;
  align-content: start;
}

.cib-date-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  width: 100%;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(210, 210, 215, 0.92);
  border-radius: 26px;
  color: #1d1d1f;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.cib-date-toggle > span {
  display: grid;
  gap: 3px;
}

.cib-date-toggle strong {
  font-size: 18px;
  line-height: 1.2;
  text-transform: capitalize;
}

.cib-date-toggle small {
  color: #6e6e73;
  font-size: 13px;
}

.cib-date-toggle svg {
  width: 22px;
  height: 22px;
  color: #0071e3;
}

.cib-date-toggle[aria-expanded="true"] {
  border-color: rgba(0, 113, 227, 0.48);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.cib-date-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  width: min(360px, 92vw);
  padding: 16px;
  border: 1px solid rgba(210, 210, 215, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
}

.cib-date-head,
.cib-date-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cib-date-head strong {
  text-transform: capitalize;
}

.cib-date-head button,
.cib-date-foot button {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #1d1d1f;
  background: #f5f5f7;
  cursor: pointer;
}

.cib-date-head button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cib-date-weekdays,
.cib-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cib-date-weekdays {
  margin: 14px 0 8px;
  color: #6e6e73;
  font-size: 12px;
  text-align: center;
}

.cib-date-day {
  display: grid;
  min-height: 52px;
  place-items: center;
  gap: 1px;
  padding: 6px 3px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #1d1d1f;
  background: #f5f5f7;
  cursor: pointer;
}

.cib-date-day span {
  font-size: 16px;
  font-weight: 850;
}

.cib-date-day small {
  color: #6e6e73;
  font-size: 9px;
  font-weight: 700;
}

.cib-date-day.is-muted {
  opacity: 0.46;
}

.cib-date-day.is-today {
  border-color: rgba(0, 113, 227, 0.38);
}

.cib-date-day.is-selected {
  color: #fff;
  background: #0071e3;
}

.cib-date-day.is-selected small {
  color: rgba(255, 255, 255, 0.82);
}

.cib-date-day:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.cib-date-foot {
  margin-top: 12px;
  color: #6e6e73;
  font-size: 12px;
}

.cib-date-foot button {
  width: auto;
  padding: 0 12px;
  color: #0071e3;
  font-weight: 850;
}

.cib-slot-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.cib-slot-panel strong {
  color: #1d1d1f;
}

.cib-slot-panel p {
  margin: 0;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.45;
}

.cib-slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cib-slot {
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 11px 13px;
  border: 1px solid rgba(210, 210, 215, 0.92);
  border-radius: 20px;
  color: #1d1d1f;
  background: #fbfbfd;
  text-align: left;
  cursor: pointer;
}

.cib-slot span {
  color: #6e6e73;
  font-size: 12px;
}

.cib-slot.is-selected {
  color: #fff;
  border-color: #0071e3;
  background: #0071e3;
}

.cib-slot.is-selected span {
  color: rgba(255, 255, 255, 0.82);
}

.cib-flow-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.cib-flow-controls .btn {
  min-width: 150px;
}

.cib-confirmation {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
}

.cib-confirmation > svg {
  width: 58px;
  height: 58px;
  color: #2baa5b;
}

.cib-booking .form-message {
  min-height: 22px;
  margin: 0;
  color: #165d33;
  font-size: 14px;
  font-weight: 800;
}

.cib-booking .form-message.is-error {
  color: #b42318;
}

.cib-booking .is-invalid {
  outline: 4px solid rgba(180, 35, 24, 0.16);
  border-color: #b42318 !important;
}

.cib-booking button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 980px) {
  .cib-flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 24px;
  }

  .cib-booking-head,
  .cib-gpt-layout {
    grid-template-columns: 1fr;
  }

  .cib-booking-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cib-schedule-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cib-flow-steps,
  .cib-field-grid,
  .cib-slot-list {
    grid-template-columns: 1fr;
  }

  .cib-flow-steps {
    border-radius: 24px;
  }

  .cib-flow-steps li {
    justify-content: flex-start;
  }

  .cib-flow-screen {
    padding: 18px;
    border-radius: 28px;
  }

  .cib-flow-controls,
  .cib-gpt-actions {
    flex-direction: column;
  }

  .cib-flow-controls .btn,
  .cib-gpt-actions .btn,
  .cib-booking-head .btn {
    width: 100%;
  }

  .cib-chat-panel,
  .cib-insight-panel {
    padding: 16px;
    border-radius: 24px;
  }

  .cib-gpt-message {
    max-width: 100%;
  }

  .cib-date-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.1);
  }
}
