/* Booking widget: a port of GrowDVM BookMyVet's widget.module.css (embedded look), classes prefixed "bmv-". */
.bmv {
  --brand: #232359;
  --on-brand: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --field: #d1d5db;
  --soft: #f6f7f9;
  --ink: #334155;
  --brand-soft: color-mix(in srgb, var(--brand) 9%, white);
  --brand-line: color-mix(in srgb, var(--brand) 45%, white);
  --brand-ink: color-mix(in srgb, var(--brand) 78%, black);
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --note: #c2410c;
  --note-soft: #fff7ed;
  --info: #1e40af;
  --info-soft: #eff6ff;

  color-scheme: light;
  box-sizing: border-box;
  background: #fff;
  color: var(--text);
  font: 16px/1.5 "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  text-align: left;
}
.bmv *,
.bmv *::before,
.bmv *::after {
  box-sizing: inherit;
}
.bmv :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, white);
  outline-offset: 2px;
}
.bmv button {
  font: inherit;
  cursor: pointer;
}
.bmv button:disabled {
  cursor: default;
}
.bmv h1,
.bmv h2,
.bmv h3 {
  color: var(--text);
  font-family: inherit;
  letter-spacing: 0;
}

/* Top row: back · step count */
.bmv-top {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  max-width: 512px;
  height: 44px;
  margin: 0 auto;
  padding: 0 8px;
}
.bmv-back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
}
.bmv-back:hover {
  background: var(--soft);
}
.bmv-count {
  grid-column: 3;
  margin: 0;
  text-align: right;
  font-size: 14px;
  color: var(--muted);
}
.bmv-count strong {
  color: var(--text);
}

.bmv-body {
  max-width: 512px;
  margin: 0 auto;
  padding: 8px 16px 8px;
}

.bmv-h1 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
.bmv-h1:focus {
  outline: none;
}
.bmv-h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.bmv-h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  font-weight: 600;
}
.bmv-lead {
  margin: -12px 0 20px;
  color: var(--muted);
}
.bmv-srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.bmv-muted {
  color: var(--muted);
}
.bmv-small {
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}
.bmv-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bmv-warn,
.bmv-info {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
}
.bmv-warn {
  background: var(--danger-soft);
  color: var(--danger);
}
.bmv-info {
  background: var(--info-soft);
  color: var(--info);
}

/* Fields */
.bmv-field {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.bmv-label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-weight: 600;
}
.bmv-input,
.bmv-select,
.bmv-textarea {
  width: 100%;
  border: 1px solid var(--field);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit; /* 16px stops iOS zooming in */
}
.bmv-input,
.bmv-select {
  height: 52px;
  padding: 0 14px;
}
.bmv-select {
  appearance: none;
  padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
}
.bmv-textarea {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
}
.bmv-input::placeholder,
.bmv-textarea::placeholder {
  color: #9ca3af;
}
.bmv-input:focus,
.bmv-select:focus,
.bmv-textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, white);
}
.bmv-invalid .bmv-input,
.bmv-invalid .bmv-select,
.bmv-invalid .bmv-textarea {
  border-color: var(--danger);
}
.bmv-error {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--danger);
}
.bmv-hint {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--note-soft);
  color: var(--note);
  font-size: 14px;
}
.bmv-age {
  max-width: 180px;
}

/* Pet type cards */
.bmv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bmv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 500;
}
.bmv-petImage {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.bmv-card:hover {
  border-color: var(--brand-line);
}
.bmv-card[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

/* Buttons */
.bmv-primary,
.bmv-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.bmv-primary {
  border: 0;
  background: var(--brand);
  color: var(--on-brand);
}
.bmv-primary:disabled {
  background: #c7cdd4;
  color: #fff;
}
.bmv-secondary {
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

/* Date & time */
.bmv-monthRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bmv-month {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}
.bmv-arrows {
  display: flex;
  gap: 8px;
}
.bmv-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.bmv-arrow:disabled {
  color: #c7cdd4;
}
.bmv-days {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.bmv-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.bmv-day:hover {
  border-color: var(--brand-line);
}
.bmv-days--4 {
  grid-template-columns: repeat(4, 1fr);
}
.bmv-day[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.bmv-dayName {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.bmv-dayNum {
  font-size: 22px;
  line-height: 1.3;
}

/* Two-way toggle: "No, I'm new | Yes" */
.bmv-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.bmv-toggle button {
  min-height: 48px;
  padding: 10px 8px;
  border: 0;
  background: #fff;
  color: var(--text);
}
.bmv-toggle button + button {
  border-left: 1px solid var(--line);
}
.bmv-toggle button[aria-pressed="true"] {
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--ink);
  font-weight: 600;
}
.bmv-rule {
  margin: 20px 0 16px;
  border: 0;
  border-top: 1px solid var(--line);
}
.bmv-note {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--note-soft);
  color: var(--note);
  font-size: 14px;
}
.bmv-infoIcon {
  flex: none;
  margin-top: 1px;
}
.bmv-period {
  margin-bottom: 4px;
}
.bmv-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bmv-time {
  min-height: 48px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.bmv-time:hover {
  border-color: var(--brand-line);
}
.bmv-time[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--ink);
  font-weight: 600;
}

/* What's chosen, at the bottom of the time step */
.bmv-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 28px -8px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
}
.bmv-barText {
  flex: 1;
  min-width: 0;
}
.bmv-barTitle,
.bmv-barWhen,
.bmv-barTodo {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bmv-barWhen {
  color: var(--muted);
}
.bmv-barTodo {
  color: var(--brand-ink);
  font-weight: 500;
}
.bmv-barNext {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
}
.bmv-barNext:disabled {
  background: #c7cdd4;
  color: #fff;
}

/* Review */
.bmv-summary {
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bmv-summaryTop {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
  background: var(--brand);
  color: var(--on-brand);
}
.bmv-summaryPet,
.bmv-summaryTitle,
.bmv-summaryWhen {
  margin: 0;
}
.bmv-summaryPet {
  font-size: 14px;
  opacity: 0.9;
}
.bmv-summaryTitle {
  margin: 2px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.bmv-summaryWhen {
  font-size: 14px;
}
.bmv-badge {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  min-width: 56px;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, var(--on-brand) 16%, transparent);
}
.bmv-badge span {
  width: 100%;
  padding: 2px 0;
  background: color-mix(in srgb, var(--on-brand) 14%, transparent);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.bmv-badge strong {
  padding: 2px 8px 4px;
  font-size: 24px;
  line-height: 1.2;
}
.bmv-summaryBottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 16px;
}
.bmv-summaryBottom p {
  margin: 0;
  white-space: pre-line;
}
.bmv-offerTag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff1ec;
  color: #b43c20;
  font-size: 13px;
  font-weight: 700;
}
.bmv-sectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bmv-edit {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px !important;
}
.bmv-table {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.bmv-table div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 16px;
}
.bmv-table div + div {
  border-top: 1px solid var(--line);
}
.bmv-table dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}
.bmv-table dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Honeypot: off-screen for people, still in the form for bots. */
.bmv-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Done */
.bmv-done {
  text-align: center;
}
.bmv-done .bmv-h1 {
  margin-bottom: 8px;
}
.bmv-done p {
  margin: 0 0 12px;
}
.bmv-tick {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 8px auto 16px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 28px;
}
.bmv-doneWhen {
  font-size: 18px;
  font-weight: 600;
}

.bmv-footer {
  margin: 32px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}
.bmv-poweredBy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 4px;
  font-size: 12px;
  color: var(--muted);
}
.bmv-poweredBy img {
  display: inline-block;
  border-radius: 4px;
}

@media (max-width: 380px) {
  .bmv-days {
    gap: 6px;
  }
  .bmv-dayNum {
    font-size: 19px;
  }
  .bmv-times {
    grid-template-columns: repeat(2, 1fr);
  }
}
