* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.public-demo {
  background: #d8e0e8;
  color: #111;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-demo-page {
  width: min(100%, 393px);
  margin: 0 auto;
  padding: 22px 16px 36px;
  background: #fff;
  min-height: 100vh;
  counter-reset: demo-step;
}

#public-demo-experience {
  counter-reset: demo-step;
}

.public-demo-brand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin: 0 0 14px;
}

.public-demo-brand img {
  display: block;
  height: 32px;
  width: auto;
}

.public-demo-back {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: transparent;
  color: #5b6573;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.public-demo-header {
  margin: 0 0 10px;
  text-align: center;
}

.public-demo-title {
  margin: 0;
  color: #111;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
}

.public-demo-step-title {
  display: block;
  margin: 16px 0 8px;
  padding: 0;
  border: 0;
  color: #111;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.public-demo-step-title::before {
  counter-increment: demo-step;
  content: counter(demo-step) ". ";
}

#public-demo-verify-heading.public-demo-step-title::before {
  content: none;
  counter-increment: none;
}

.public-demo-kicker {
  margin: 0 0 10px;
  color: #5b6573;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: center;
}

.public-demo-profile-label {
  margin: 0 0 10px;
  color: #5b6573;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

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

.public-demo-hero {
  margin: 0 0 16px;
}

.public-demo-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.public-demo-profile {
  margin: 8px 0 0;
}

.public-demo-profile-row {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.4;
}

.public-demo-profile-row strong {
  font-weight: 800;
}

.public-demo-mode-readout {
  margin: 16px 0 0;
  font-size: 1rem;
  font-weight: 700;
}

#public-demo-mode-label {
  color: #4b9adf;
}

#public-demo-time-label {
  color: #35c043;
}

.public-demo-welcome,
.public-demo-region,
.public-demo-controls {
  margin: 0 0 18px;
}

.public-demo-welcome .public-demo-title {
  margin-bottom: 10px;
  text-align: center;
}

.public-demo-copy {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.public-demo-form {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.public-demo-form label,
.public-demo-fieldset legend,
.public-demo-scenarios legend {
  font-size: 0.86rem;
  font-weight: 700;
}

.public-demo-form input:not([type="checkbox"]),
.public-demo-form select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 8px;
  font: inherit;
}

.public-demo-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  margin: 2px 0 0;
  color: #111;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}

.public-demo-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: #222;
  flex-shrink: 0;
}

.public-demo-consent-note {
  margin: 0;
  color: #5b6573;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
}

.public-demo-consent-legal {
  margin: 0 0 2px;
  color: #5b6573;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
}

.public-demo-consent-legal a {
  color: inherit;
  text-decoration: underline;
}

.public-demo-secondary-btn {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #222;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.public-demo-secondary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#public-demo-send-code:not(:disabled),
#public-demo-verify-code:not(:disabled) {
  background: #35c043;
  color: #fff;
}

.public-demo-contacts,
.public-demo-scenarios {
  margin: 0;
  min-width: 0;
  padding: 0;
  border: 0;
}

.public-demo-contact-card {
  padding: 12px 10px 10px;
  border-radius: 22px;
  background: #f4f5f7;
}

.public-demo-contact-header {
  margin: 0 0 12px;
  text-align: center;
}

.public-demo-jill-avatar {
  display: block;
  width: 74px;
  height: 74px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background:
    url("/images/receptionist-hero-541.jpg") center 18% / cover,
    linear-gradient(180deg, #8eb7d8, #4f7fa8);
}

.public-demo-jill-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.public-demo-jill-role {
  margin: 2px 0 0;
  color: #5b6573;
  font-size: 0.78rem;
}

.public-demo-contact-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.public-demo-contact-row {
  min-width: 0;
}

.public-demo-contact-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 1;
}

.public-demo-contact-face {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 12px 9px;
  border: 0;
  border-radius: 10px;
  background: #cfdceb;
  color: #243040;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.public-demo-contact-row.is-info-only .public-demo-contact-face,
.public-demo-contact-row.is-info-only .public-demo-contact-title,
.public-demo-contact-row.is-info-only .public-demo-contact-number {
  opacity: 1;
  filter: none;
  color: inherit;
}

.public-demo-contact-row:has(.public-demo-contact-radio:checked) .public-demo-contact-face {
  background: #4b9adf;
  color: #fff;
}

.public-demo-contact-title,
.public-demo-contact-number {
  display: block;
}

.public-demo-contact-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.public-demo-contact-number {
  margin-top: 1px;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
}

.public-demo-contact-explain {
  display: block;
  height: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #16321f;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 0;
  pointer-events: none;
  transition:
    max-height 0.28s ease,
    opacity 0.28s ease,
    margin 0.28s ease,
    padding 0.28s ease,
    line-height 0.28s ease;
}

.public-demo-contact-explain.is-open {
  height: auto;
  max-height: 14rem;
  margin: 6px 6px 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #d8f3dc;
  line-height: 1.35;
  opacity: 1;
}

.public-demo-scenario-list {
  display: flex;
  gap: 8px;
}

.public-demo-scenario {
  flex: 1 1 0;
  margin: 0;
}

.public-demo-scenario input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.public-demo-scenario span {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 999px;
  background: #bfe8c4;
  color: #13351a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.public-demo-scenario:has(input:checked) span {
  background: #35c043;
  color: #06240b;
}

.public-demo-remaining {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.public-demo-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e3e7ec;
}

.public-demo-cta .public-demo-step-title {
  margin-top: 0;
}

.public-demo-dial {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.public-demo-status {
  min-height: 1.2em;
  margin: 0 0 12px;
  color: #8a1f1f;
  font-size: 0.86rem;
}

.is-hidden {
  display: none;
}

.public-demo-calls {
  display: flex;
  margin: 0 0 22px;
}

.public-demo-call-btn {
  flex: 1 1 0;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 0;
  border-radius: 999px;
  background: #f5c400;
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.public-demo-call-btn.is-unavailable {
  background: #f7e28a;
  color: #333;
  cursor: not-allowed;
}

.public-demo-note {
  margin: 0;
  color: #222;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.public-demo-purchase {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e3e7ec;
}

.public-demo-purchase-title {
  margin: 0 0 10px;
  color: #111;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.public-demo-purchase-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 12px;
  row-gap: 3px;
  margin: 0 0 14px;
  align-items: baseline;
}

.public-demo-purchase-label {
  color: #5b6573;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.public-demo-purchase-amount {
  color: #111;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.public-demo-purchase-rule {
  grid-column: 2;
  margin: 1px 0 0;
  border-top: 1px solid #111;
}

.public-demo-purchase-total {
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.public-demo-purchase-ongoing-rule {
  grid-column: 1 / -1;
  margin: 5px 0 2px;
  border-top: 1px solid #e3e7ec;
}

.public-demo-purchase-ongoing {
  color: #5b6573;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.public-demo-purchase-btn {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 0;
  border-radius: 999px;
  background: #1C705E;
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.public-demo-purchase-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.public-demo-purchase-form {
  display: grid;
  gap: 12px;
  width: 100%;
}

.public-demo-purchase .sms-consent-title {
  margin: 8px 0 0;
  color: #102433;
  font-size: 1.05rem;
  font-weight: 800;
}

.public-demo-purchase .sms-consent-copy,
.public-demo-purchase .sms-consent-legal,
.public-demo-purchase .sms-consent-granted,
.public-demo-purchase .sms-consent-declined,
.public-demo-purchase .sms-consent-verified-label,
.public-demo-purchase .sms-consent-verified-value {
  margin: 0;
  color: #335065;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.public-demo-purchase .sms-consent-verified {
  display: grid;
  gap: 2px;
}

.public-demo-purchase .sms-consent-verified[hidden] {
  display: none;
}

.public-demo-purchase .sms-consent-verified-label {
  font-weight: 700;
}

.public-demo-purchase .sms-consent-verified-value {
  color: #102433;
  font-weight: 700;
}

.public-demo-purchase .sms-consent-verified-mark {
  color: #155f52;
  font-weight: 800;
  margin-left: 8px;
}

.public-demo-purchase .sms-consent-edit-btn,
.public-demo-purchase .sms-consent-edit-cancel {
  margin-left: 10px;
  border: 0;
  background: none;
  padding: 0;
  color: #155f52;
  font: inherit;
  font-size: 0.85em;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.public-demo-purchase .sms-consent-edit-panel {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.public-demo-purchase .sms-consent-edit-panel[hidden],
.public-demo-purchase .sms-consent-edit-code[hidden] {
  display: none;
}

.public-demo-purchase .sms-consent-edit-label {
  margin: 0;
  color: #335065;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
}

.public-demo-purchase .sms-consent-edit-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #c9d6dd;
  border-radius: 14px;
  background: #fff;
  color: #102433;
  font: inherit;
}

.public-demo-purchase .sms-consent-edit-status {
  margin: 0;
  color: #335065;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
}

.public-demo-purchase .sms-consent-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.public-demo-purchase .sms-consent-edit-actions .sms-consent-edit-btn,
.public-demo-purchase .sms-consent-edit-actions .sms-consent-edit-cancel {
  margin-left: 0;
}

.public-demo-purchase .sms-consent-legal a {
  color: #155f52;
  font-weight: 800;
}

.public-demo-purchase .sms-consent-choices {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.public-demo-purchase .sms-consent-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.public-demo-purchase .sms-consent-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid #c9d6dd;
  border-radius: 14px;
  background: #fff;
  color: #102433;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.public-demo-purchase .sms-consent-granted {
  color: #155f52;
}

.public-demo-purchase .sms-consent-declined {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #efc8b0;
  border-radius: 16px;
  background: #fff6f0;
  color: #8a3b12;
  text-align: left;
}

.public-demo-purchase .sms-consent-declined[hidden],
.public-demo-purchase [data-sms-consent-question][hidden],
.public-demo-purchase [data-sms-consent-required][hidden] {
  display: none;
}

.public-demo-purchase .sms-consent-declined-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.public-demo-purchase .sms-consent-declined p {
  margin: 0;
}

@media (min-width: 720px) {
  body.public-demo {
    padding: 24px 0;
  }

  .public-demo-page {
    min-height: auto;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(20, 40, 60, 0.16);
  }
}
