.appointment-intake-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.appointment-intake-shell {
  width: min(760px, 100%);
  margin: 0 auto 56px;
  color: #1d3152;
}

.appointment-intake-success > span {
  color: #3975d6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}

.appointment-intake-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 18px;
  padding: 0 34px;
  list-style: none;
}

.appointment-intake-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #91a0b7;
}

.appointment-intake-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 54px;
  right: 14px;
  height: 2px;
  background: #dbe4f1;
}

.appointment-intake-steps li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 2px solid #d4deec;
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.appointment-intake-steps li div { display: grid; line-height: 1.15; }
.appointment-intake-steps li strong { color: inherit; font-size: 13px; }
.appointment-intake-steps li small { margin-top: 3px; font-size: 11px; }
.appointment-intake-steps li.active,
.appointment-intake-steps li.complete { color: #2d6fd4; }
.appointment-intake-steps li.active > span { border-color: #3e7fe2; background: #3e7fe2; color: #fff; box-shadow: 0 5px 15px rgba(62, 127, 226, .26); }
.appointment-intake-steps li.complete > span { border-color: #4eb079; background: #eaf8f0; color: #23834e; }
.appointment-intake-steps li.complete:not(:last-child)::after { background: #8dd0aa; }

.appointment-intake-panel {
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(39, 69, 112, .08);
}

.appointment-intake-panel-head {
  padding: 25px 28px 21px;
  border-bottom: 1px solid #e8eef6;
  background: #fbfdff;
}

.appointment-intake-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.appointment-intake-panel-head span {
  color: #4d83d6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.appointment-intake-panel-head h3 {
  margin: 4px 0 0;
  color: #1d365d;
  font-size: 23px;
}

.appointment-intake-panel-head p {
  margin: 8px 0 0;
  color: #6d7d95;
  font-size: 13px;
}

.appointment-intake-schedule-hint {
  margin: 18px 28px 0;
  padding: 14px 16px;
  border: 1px solid #aec6ec;
  border-left: 4px solid #356fd0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f9ff, #eaf2ff);
  color: #173f88;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
  box-shadow: 0 7px 18px rgba(47, 104, 196, .09);
}

.appointment-intake-grid {
  display: grid;
  gap: 17px;
  padding: 24px 28px;
}
.appointment-intake-grid + .appointment-intake-grid { padding-top: 0; }

.appointment-intake-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.appointment-intake-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.appointment-intake-grid label { display: grid; align-content: start; gap: 7px; min-width: 0; }
.appointment-intake-grid label.wide { grid-column: 1 / -1; }
.appointment-intake-grid label > span:first-child,
.appointment-template-fieldset legend {
  color: #304867;
  font-size: 12px;
  font-weight: 900;
}
.appointment-intake-grid label > span small { color: #8997aa; font-size: 10px; font-weight: 700; }
.appointment-utility-suggestion {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  color: #2d6b55;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.appointment-utility-suggestion::before { content: "✓"; }

.appointment-intake-grid input,
.appointment-intake-grid select,
.appointment-intake-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cad7e8;
  border-radius: 11px;
  background: #fff;
  color: #243b5c;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.appointment-intake-grid input,
.appointment-intake-grid select { min-height: 45px; padding: 0 12px; }
.appointment-intake-grid textarea { resize: vertical; min-height: 105px; padding: 12px; line-height: 1.45; }
.appointment-intake-grid input:focus,
.appointment-intake-grid select:focus,
.appointment-intake-grid textarea:focus { border-color: #4381df; box-shadow: 0 0 0 3px rgba(67, 129, 223, .12); }

.appointment-intake-section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 6px 28px -9px;
  padding-top: 18px;
  border-top: 1px solid #edf1f6;
}
.appointment-message-receipt + .appointment-intake-section-title { border-top: 0; }
.appointment-intake-section-title > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: #edf4ff; color: #3678d8; font-size: 12px; font-weight: 900; }
.appointment-intake-section-title div { display: grid; gap: 2px; }
.appointment-intake-section-title strong { color: #284464; font-size: 14px; }
.appointment-intake-section-title small { color: #8090a6; font-size: 11px; }

.appointment-message-receipt {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 28px 0;
  padding: 11px 13px;
  border: 1px solid #cce8d8;
  border-radius: 11px;
  background: #f0fbf5;
  color: #2a754d;
  font-size: 12px;
  font-weight: 800;
}
.appointment-message-receipt.warning { border-color: #f0d89b; background: #fff8e8; color: #7c5b13; }

.appointment-details-warning {
  margin: 14px 28px 0;
  padding: 13px 15px;
  border: 1px solid #efb9bd;
  border-left: 4px solid #c94b56;
  border-radius: 11px;
  background: #fff3f4;
  color: #8c2630;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.appointment-intake-grid .appointment-field-invalid {
  border-color: #cf4c58 !important;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(207, 76, 88, .12) !important;
}

.appointment-date-warning {
  display: grid;
  gap: 3px;
  margin: -7px 28px 22px;
  padding: 12px 14px;
  border: 1px solid #edc36b;
  border-radius: 11px;
  background: #fff8e8;
  color: #72500d;
  font-size: 12px;
  line-height: 1.4;
}

.appointment-date-warning strong { color: #8a5c00; font-size: 13px; }

.appointment-intake-contact-summary { padding: 9px 12px; border: 1px solid #dae4f1; border-radius: 11px; background: #fff; color: #5d6f88; font-size: 12px; text-align: right; }
.appointment-intake-contact-summary strong { display: block; color: #294665; font-size: 13px; }
.appointment-money-input { position: relative; display: block; }
.appointment-money-input b { position: absolute; z-index: 1; top: 50%; left: 13px; transform: translateY(-50%); color: #72839a; font-size: 14px; }
.appointment-money-input input { padding-left: 28px; }
.appointment-audio-field { display: grid; gap: 8px; padding: 15px; border: 1px dashed #9db9df; border-radius: 13px; background: #f7faff; }
.appointment-audio-field > span { color: #304867; font-size: 12px; font-weight: 900; }
.appointment-audio-field p { margin: 0; color: #5f7190; font-size: 12px; }
.appointment-audio-mode { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.appointment-intake-grid .appointment-audio-mode label { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid #c8d8ec; border-radius: 10px; background: #fff; color: #385477; font-size: 12px; font-weight: 800; cursor: pointer; }
.appointment-intake-grid .appointment-audio-mode label:has(input:checked) { border-color: #4381df; background: #edf4ff; color: #285fae; }
.appointment-intake-grid .appointment-audio-mode input { width: auto; min-height: auto; margin: 0; accent-color: #3677d6; }
.appointment-audio-row { display: grid; grid-template-columns: 65px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; }
.appointment-audio-row > span { color: #526987; font-size: 12px; font-weight: 800; }
.appointment-audio-row input { padding: 9px 10px; background: #fff; }
.appointment-audio-add, .appointment-audio-remove { border: 1px solid #c5d6ee; border-radius: 9px; background: #fff; color: #326fc7; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.appointment-audio-add { justify-self: start; margin-top: 12px; padding: 9px 12px; }
.appointment-audio-remove { padding: 8px 10px; }
.appointment-audio-add:hover, .appointment-audio-remove:hover { background: #edf4ff; }
.appointment-audio-add:disabled { opacity: .5; cursor: default; }
.appointment-audio-field > small { color: #71829a; font-size: 11px; }

.appointment-intake-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  border-top: 1px solid #e5ecf5;
  background: #fbfdff;
}
.appointment-intake-status { min-height: 18px; color: #62748f; font-size: 12px; font-weight: 700; }
.appointment-intake-status.error { color: #aa3640; }
.appointment-intake-status.success { color: #23774a; }
.appointment-intake-footer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.appointment-intake-primary,
.appointment-intake-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.appointment-intake-primary { background: linear-gradient(135deg, #3d7ddd, #2f68c4); color: #fff; box-shadow: 0 8px 18px rgba(47, 104, 196, .22); }
.appointment-intake-primary:hover { filter: brightness(1.04); }
.appointment-intake-primary:disabled { opacity: .6; cursor: wait; }
.appointment-intake-secondary { border: 1px solid #cad7e7; background: #fff; color: #355272; }

.appointment-intake-success {
  display: grid;
  justify-items: center;
  padding: 62px 28px;
  border: 1px solid #d8e7df;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 0%, #e9fbf1, #fff 48%);
  box-shadow: 0 14px 38px rgba(39, 91, 63, .08);
  text-align: center;
}
.appointment-success-mark { display: grid; width: 62px; height: 62px; margin-bottom: 18px; place-items: center; border-radius: 50%; background: #3ca36b; color: #fff; font-size: 29px; font-weight: 900; box-shadow: 0 10px 24px rgba(60, 163, 107, .24); }
.appointment-intake-success > span { color: #32905c; }
.appointment-intake-success h3 { margin: 7px 0 8px; color: #224b36; font-size: 27px; }
.appointment-intake-success p { max-width: 600px; margin: 0; color: #667a6e; line-height: 1.5; }
.appointment-intake-success-meta { margin-top: 19px; padding: 10px 14px; border-radius: 10px; background: #f3f7f5; color: #52675a; font-size: 12px; font-weight: 800; }
.appointment-intake-success-actions { display: flex; gap: 10px; margin-top: 26px; }

body.appointment-confirm-open { overflow: hidden; }

.appointment-confirm-backdrop {
  position: fixed;
  z-index: 3500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 25, 54, .56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.appointment-confirm-card {
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid rgba(202, 216, 237, .95);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 24px 68px rgba(13, 35, 72, .28);
  text-align: center;
  animation: appointment-confirm-enter .2s ease-out both;
}

.appointment-confirm-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a8bea, #2e68c5);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 10px 23px rgba(47, 104, 196, .24);
}

.appointment-confirm-card > span {
  color: #3975d6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
}

.appointment-confirm-card h3 {
  margin: 7px 0 18px;
  color: #1d365d;
  font-size: 23px;
  line-height: 1.2;
}

.appointment-confirm-summary {
  display: grid;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid #cdddf1;
  border-radius: 13px;
  background: #f3f7fd;
  text-align: left;
}

.appointment-confirm-client { color: #5e718d; font-size: 13px; font-weight: 800; }
.appointment-confirm-date,
.appointment-confirm-time { display: grid; gap: 3px; }
.appointment-confirm-date small,
.appointment-confirm-time small { color: #7185a2; font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.appointment-confirm-date strong { color: #1d4d97; font-size: 21px; line-height: 1.25; }
.appointment-confirm-time { padding-top: 11px; border-top: 1px solid #dce6f3; }
.appointment-confirm-time strong { color: #203d67; font-size: 18px; }
.appointment-confirm-date-warning { margin: 14px 0 0; text-align: left; }
.appointment-confirm-card p { margin: 15px 0 0; color: #6a7b92; font-size: 12px; line-height: 1.45; }
.appointment-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 23px; }

@keyframes appointment-confirm-enter {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .appointment-intake-shell { margin-bottom: 24px; }
  .appointment-intake-steps { padding: 0 6px; }
  .appointment-intake-steps li { gap: 6px; }
  .appointment-intake-steps li:not(:last-child)::after { left: 39px; right: 5px; }
  .appointment-intake-steps li > span { width: 32px; height: 32px; flex-basis: 32px; }
  .appointment-intake-steps li div { display: none; }
  .appointment-intake-panel { border-radius: 15px; }
  .appointment-intake-panel-head,
  .appointment-intake-grid,
  .appointment-intake-footer { padding-left: 18px; padding-right: 18px; }
  .appointment-intake-panel-head-row { align-items: flex-start; flex-direction: column; }
  .appointment-intake-contact-summary { width: 100%; text-align: left; }
  .appointment-audio-row { grid-template-columns: 1fr auto; }
  .appointment-audio-row > span { grid-column: 1 / -1; }
  .appointment-intake-grid.two,
  .appointment-intake-grid.three { grid-template-columns: 1fr; }
  .appointment-intake-section-title { margin-left: 18px; margin-right: 18px; }
  .appointment-intake-schedule-hint { margin-left: 18px; margin-right: 18px; }
  .appointment-message-receipt { margin-left: 18px; margin-right: 18px; }
  .appointment-details-warning { margin-left: 18px; margin-right: 18px; }
  .appointment-date-warning { margin-left: 18px; margin-right: 18px; }
  .appointment-intake-footer { align-items: stretch; flex-direction: column; }
  .appointment-intake-footer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-left: 0; }
  .appointment-intake-footer-actions .appointment-intake-primary,
  .appointment-intake-footer-actions .appointment-intake-secondary { width: 100%; padding-inline: 10px; }
  .appointment-intake-success .appointment-intake-primary { width: 100%; }
  .appointment-intake-success-actions { width: 100%; flex-direction: column; }
  .appointment-confirm-backdrop { align-items: end; padding: 14px; }
  .appointment-confirm-card { padding: 25px 20px 20px; border-radius: 22px; }
  .appointment-confirm-date-warning { margin-left: 0; margin-right: 0; }
  .appointment-confirm-actions { grid-template-columns: 1fr; }
}
