/* Scoped, Elementor-friendly styles. Change the values below to fit the HOPES brand. */
.hcb-app {
  --hcb-primary: #164e53;
  --hcb-primary-dark: #103c41;
  --hcb-accent: #d5ede8;
  --hcb-bg: #f8fbfa;
  --hcb-stroke: #e1e9e8;
  --hcb-text: #17323a;
  --hcb-muted: #687b80;
  --hcb-radius: 16px;
  color: var(--hcb-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  max-width: 1150px;
  margin: 32px auto;
  box-sizing: border-box;
}
.hcb-app *, .hcb-app *::before, .hcb-app *::after { box-sizing: border-box; }
.hcb-app button, .hcb-app input { font: inherit; }
.hcb-app button { cursor: pointer; }
.hcb-app [hidden] { display: none !important; }
.hcb-heading { margin-bottom: 12px; }
.hcb-safety-note { margin: 0 0 20px; font-size: 12px; color: var(--hcb-muted); }
.hcb-eyebrow { color: var(--hcb-primary); font-size: 12px; letter-spacing: .14em; font-weight: 750; text-transform: uppercase; }
.hcb-heading h2 { color: var(--hcb-text); font-size: clamp(28px, 4vw, 38px); line-height: 1.2; letter-spacing: -.035em; margin: 8px 0; font-weight: 700; }
.hcb-heading p { color: var(--hcb-muted); margin: 0; }
.hcb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.hcb-main { min-width: 0; background: #fff; border: 1px solid var(--hcb-stroke); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 16px 45px rgba(16, 60, 65, .04); }
.hcb-progress { display: flex; list-style: none; padding: 0 0 20px; margin: 0 0 27px; border-bottom: 1px solid var(--hcb-stroke); gap: 5px; justify-content: space-between; }
.hcb-progress li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--hcb-muted); font-weight: 600; white-space: nowrap; }
.hcb-progress li span { display: inline-grid; place-items: center; height: 25px; width: 25px; border: 1px solid #d7e2e0; border-radius: 50%; color: #7c8a8d; background: white; }
.hcb-progress li.is-active { color: var(--hcb-primary); }
.hcb-progress li.is-active span, .hcb-progress li.is-completed span { background: var(--hcb-primary); color: white; border-color: var(--hcb-primary); }
.hcb-step h3, .hcb-success h3 { color: var(--hcb-text); font-size: clamp(21px, 3vw, 25px); font-weight: 720; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 6px; }
.hcb-lead { color: var(--hcb-muted); margin: 0 0 23px; }
.hcb-service-list, .hcb-clinician-list { display: grid; gap: 11px; }
.hcb-select-card { width: 100%; display: flex; align-items: center; gap: 16px; padding: 17px; color: var(--hcb-text); border: 1px solid var(--hcb-stroke); border-radius: var(--hcb-radius); background: #fff; text-align: left; transition: border-color .18s, box-shadow .18s, background .18s; }
.hcb-select-card:hover { background: #f9fcfb; border-color: #9fc8c0; }
.hcb-select-card:focus-visible, .hcb-mode:focus-visible, .hcb-time:focus-visible, .hcb-actions button:focus-visible, .hcb-restart:focus-visible { outline: 3px solid #8fbdb5; outline-offset: 2px; }
.hcb-select-card.is-selected { border-color: var(--hcb-primary); box-shadow: 0 0 0 1px var(--hcb-primary); background: #f4faf8; }
.hcb-service-icon { flex: 0 0 45px; width: 45px; height: 45px; display: grid; place-items: center; background: #e4f2ee; border-radius: 13px; font-size: 21px; color: var(--hcb-primary); }
.hcb-card-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.hcb-card-copy strong { color: var(--hcb-text); font-size: 15px; font-weight: 720; line-height: 1.4; }
.hcb-card-copy small, .hcb-bio { color: var(--hcb-muted); font-size: 13px; line-height: 1.5; }
.hcb-card-copy small { display: block; }
.hcb-card-meta { margin-top: 5px; color: var(--hcb-primary); font-weight: 640; font-size: 12px; }
.hcb-card-check { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #c8d7d3; border-radius: 50%; font-size: 13px; font-weight: 700; color: transparent; }
.hcb-select-card.is-selected .hcb-card-check { border-color: var(--hcb-primary); color: white; background: var(--hcb-primary); }
.hcb-avatar { display: grid; place-items: center; flex: 0 0 66px; width: 66px; height: 66px; border-radius: 15px; overflow: hidden; background: #d6ebe7; }
.hcb-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hcb-avatar-fallback { font-weight: 800; color: var(--hcb-primary); font-size: 25px; }
.hcb-mode-group { margin-top: 22px; }
.hcb-label, .hcb-slot-heading { font-weight: 720; color: var(--hcb-text); margin: 0 0 10px; }
.hcb-mode-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.hcb-mode { border: 1px solid var(--hcb-stroke); border-radius: 12px; background: #fff; color: var(--hcb-text); padding: 12px 15px; font-weight: 650; }
.hcb-mode.is-selected { color: var(--hcb-primary); border-color: var(--hcb-primary); background: #eff8f5; }
.hcb-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; color: var(--hcb-text); font-size: 13px; font-weight: 680; }
.hcb-field input { color: var(--hcb-text) !important; background: white !important; border: 1px solid #cadad7 !important; border-radius: 10px !important; padding: 12px 13px !important; height: 49px !important; width: 100%; min-width: 0; box-shadow: none !important; font-weight: 450; }
.hcb-field input:focus { border-color: var(--hcb-primary) !important; outline: 2px solid rgba(22, 78, 83, .13); }
.hcb-date { max-width: 340px; }
.hcb-slot-heading { margin-top: 15px; }
.hcb-slot-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.hcb-slot-message { grid-column: 1 / -1; margin: 0; background: #f5faf8; border: 1px dashed #b4cec8; border-radius: 12px; padding: 19px; color: var(--hcb-muted); font-size: 14px; }
.hcb-time { min-width: 0; border: 1px solid #cedfdb; background: white; border-radius: 10px; padding: 12px 4px; white-space: nowrap; font-size: 13px; color: var(--hcb-text); font-weight: 650; }
.hcb-time:hover { border-color: var(--hcb-primary); }
.hcb-time.is-selected { border-color: var(--hcb-primary); background: var(--hcb-primary); color: white; }
.hcb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; }
.hcb-fields label:first-child { grid-column: 1 / -1; }
.hcb-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 440; color: var(--hcb-muted); line-height: 1.5; cursor: pointer; }
.hcb-consent input { margin: 4px 0 0; accent-color: var(--hcb-primary); flex: 0 0 auto; }
.hcb-consent a { color: var(--hcb-primary); text-decoration: underline; }
.hcb-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.hcb-actions { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--hcb-stroke); padding-top: 24px; margin-top: 29px; }
.hcb-actions button, .hcb-restart { border-radius: 11px; border: 0; min-height: 49px; font-size: 14px; font-weight: 750; padding: 12px 23px; }
.hcb-next, .hcb-restart { background: var(--hcb-primary); color: white; margin-left: auto; }
.hcb-next:hover:not(:disabled), .hcb-restart:hover { color: white; background: var(--hcb-primary-dark); }
.hcb-next:disabled { cursor: not-allowed; background: #a4b8b5; color: #fff; opacity: .72; }
.hcb-back { background: #eff4f2; color: var(--hcb-text); }
.hcb-back:hover { background: #e4efec; }
.hcb-summary { border-radius: 20px; background: var(--hcb-primary); color: white; padding: 26px; position: sticky; top: 28px; }
.hcb-summary-title { display: flex; gap: 10px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.18); }
.hcb-summary-title h3 { color: #fff; font-size: 19px; font-weight: 720; margin: 0; }
.hcb-summary-mark { display: grid; place-items: center; background: rgba(255,255,255,.15); width: 33px; height: 33px; border-radius: 10px; color: #e4fff7; }
.hcb-summary dl { margin: 4px 0 0; }
.hcb-summary dl > div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.hcb-summary dt { font-size: 12px; color: #bed9d8; margin-bottom: 3px; }
.hcb-summary dd { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.hcb-summary dl > .hcb-fee-row { padding-top: 16px; border: 0; }
.hcb-summary .hcb-summary-note { margin: 18px 0 0; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 12px; font-size: 12px; line-height: 1.55; color: #d6eae7; }
.hcb-alert { padding: 12px 15px; margin-bottom: 20px; color: #8a3029; background: #fff4f2; border: 1px solid #f2c5bf; border-radius: 11px; }
.hcb-empty { padding: 20px; background: #f5faf8; border: 1px dashed var(--hcb-stroke); border-radius: 12px; }
.hcb-success { padding: 27px 0; text-align: center; }
.hcb-success p { max-width: 450px; margin: 12px auto; color: var(--hcb-muted); }
.hcb-success-icon { width: 70px; height: 70px; border-radius: 50%; background: #e3f4ee; color: var(--hcb-primary); font-size: 36px; display: grid; place-items: center; margin: 0 auto 20px; }
.hcb-reference { font-size: 18px; font-weight: 800; color: var(--hcb-primary) !important; }
.hcb-restart { display: inline-flex; margin: 16px auto 0; align-items: center; }
@media (max-width: 950px) {
  .hcb-layout { grid-template-columns: minmax(0, 1fr) 275px; gap: 15px; }
  .hcb-summary { padding: 21px; }
  .hcb-main { padding: 22px; }
  .hcb-progress li { font-size: 11px; }
  .hcb-progress li span { width: 21px; height: 21px; }
  .hcb-slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hcb-app { margin: 20px auto; }
  .hcb-layout { grid-template-columns: 1fr; }
  .hcb-summary { position: static; padding: 20px; }
  .hcb-summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
  .hcb-summary-title { padding-bottom: 13px; }
  .hcb-summary dl > div { padding: 10px 0; }
  .hcb-summary .hcb-summary-note { margin-top: 10px; }
  .hcb-progress li { font-size: 11px; }
}
@media (max-width: 500px) {
  .hcb-heading h2 { font-size: 28px; }
  .hcb-heading p { font-size: 14px; }
  .hcb-main { padding: 18px 16px; border-radius: 16px; }
  .hcb-progress { gap: 2px; margin-bottom: 23px; }
  .hcb-progress li { display: grid; justify-items: center; text-align: center; white-space: normal; max-width: 25%; font-size: 10px; gap: 5px; line-height: 1.2; }
  .hcb-progress li span { height: 25px; width: 25px; }
  .hcb-service-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .hcb-select-card { gap: 10px; padding: 13px 11px; }
  .hcb-card-copy strong { font-size: 14px; }
  .hcb-avatar { height: 55px; width: 55px; flex-basis: 55px; }
  .hcb-card-check { width: 20px; height: 20px; flex-basis: 20px; }
  .hcb-fields { grid-template-columns: 1fr; }
  .hcb-date { max-width: 100%; }
  .hcb-slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .hcb-time { font-size: 12px; padding: 11px 2px; }
  .hcb-summary dl { grid-template-columns: 1fr 1fr; }
  .hcb-actions button { min-height: 47px; padding: 11px 16px; }
}

/* v1.1: Clinician-aware inline appointment calendar. */
.hcb-app .hcb-calendar-label { color:var(--hcb-text); font-size:14px; font-weight:720; margin:7px 0 10px; }
.hcb-app .hcb-calendar { width:100%; max-width:440px; background:#fff; border:1px solid #dce8e5; border-radius:16px; padding:15px; box-shadow:0 9px 30px rgba(16,60,65,.035); }
.hcb-app .hcb-calendar-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:12px; }
.hcb-app .hcb-cal-title { font-size:15px; color:var(--hcb-text); }
.hcb-app .hcb-cal-prev, .hcb-app .hcb-cal-next { width:36px; height:36px; border:1px solid #e0ebe8; border-radius:10px; background:#fff !important; color:var(--hcb-text) !important; font-size:24px; display:grid; place-items:center; padding:0; line-height:1; transition:border-color .16s,background .16s; }
.hcb-app .hcb-cal-prev:hover:not(:disabled), .hcb-app .hcb-cal-next:hover:not(:disabled) { border-color:var(--hcb-primary); background:#f0f8f5 !important; }
.hcb-app .hcb-cal-prev:disabled, .hcb-app .hcb-cal-next:disabled { opacity:.3; cursor:not-allowed; }
.hcb-app .hcb-calendar-weekdays, .hcb-app .hcb-calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
.hcb-app .hcb-calendar-weekdays { text-align:center; padding:5px 0 7px; font-size:11px; font-weight:720; color:var(--hcb-muted); }
.hcb-app .hcb-calendar-days { text-align:center; }
.hcb-app .hcb-cal-day { position:relative; display:grid; place-items:center; aspect-ratio:1; border:1px solid transparent !important; border-radius:10px !important; background:#f3faf8 !important; color:var(--hcb-text) !important; padding:0 !important; min-height:33px; width:100%; font-size:13px; font-weight:650; transition:background .16s,border-color .16s; }
.hcb-app .hcb-cal-day.is-available:hover:not(.is-selected) { background:#deeee9 !important; border-color:#a8cfc6 !important; color:var(--hcb-primary) !important; }
.hcb-app .hcb-cal-day.is-unavailable { background:#f7f8f9 !important; color:#abb8b9 !important; text-decoration:line-through; cursor:not-allowed; opacity:.8; }
.hcb-app .hcb-cal-day.is-today:not(.is-selected) { border-color:#90b6ae !important; }
.hcb-app .hcb-cal-day.is-selected { color:#fff !important; background:var(--hcb-primary) !important; border-color:var(--hcb-primary) !important; }
.hcb-app .hcb-calendar-legend { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:15px; padding-top:12px; border-top:1px solid #ecf1f0; font-size:11px; color:var(--hcb-muted); }
.hcb-app .hcb-calendar-legend span { display:inline-flex; align-items:center; gap:5px; }
.hcb-app .hcb-calendar-legend i { display:inline-block; width:12px; height:12px; border-radius:4px; }
.hcb-app .hcb-legend-available { background:#f3faf8; border:1px solid #b7d3cd; }
.hcb-app .hcb-legend-selected { background:var(--hcb-primary); }
.hcb-app .hcb-legend-off { background:#f7f8f9; border:1px solid #dfe5e5; }
.hcb-app .hcb-calendar .hcb-cal-day:focus-visible { outline:3px solid #86b4aa; outline-offset:2px; }
.hcb-app .hcb-slot-heading { margin-top:26px; }

/* Two matching radio-style consultation modality choices (no inherited Elementor pink hover). */
.hcb-app .hcb-mode-buttons { gap:12px; }
.hcb-app .hcb-mode { display:inline-flex; align-items:center; gap:10px; background:#fff !important; color:var(--hcb-text) !important; border:1.5px solid #d4e3e0 !important; border-radius:12px !important; padding:13px 16px !important; font-weight:650 !important; font-size:14px; line-height:1.4; cursor:pointer; transition:background .18s,border-color .18s; }
.hcb-app .hcb-mode:hover { background:#f4faf8 !important; color:var(--hcb-text) !important; border-color:#8eb9b0 !important; }
.hcb-app .hcb-mode.is-selected, .hcb-app .hcb-mode.is-selected:hover { background:#ecf6f3 !important; color:var(--hcb-primary) !important; border-color:var(--hcb-primary) !important; }
.hcb-app .hcb-mode input[type="radio"] { position:absolute; width:1px; height:1px; opacity:0; margin:0; pointer-events:none; }
.hcb-app .hcb-mode .hcb-radio-mark { flex:0 0 19px; width:19px; height:19px; border-radius:50%; border:2px solid #93aaa7; display:inline-grid; place-items:center; background:#fff; }
.hcb-app .hcb-mode.is-selected .hcb-radio-mark { border-color:var(--hcb-primary); }
.hcb-app .hcb-mode.is-selected .hcb-radio-mark:after { content:""; width:9px; height:9px; border-radius:50%; background:var(--hcb-primary); }
.hcb-app .hcb-mode:has(input:focus-visible) { outline:3px solid #86b4aa; outline-offset:2px; }

/* Payment preference in patient details. */
.hcb-app .hcb-payment-choice { margin:22px 0 6px; padding:18px; background:#f5faf8; border:1px solid #d9e9e4; border-radius:14px; }
.hcb-app .hcb-payment-choice h4 { margin:0 0 12px; font-size:16px; color:var(--hcb-text); }
.hcb-app .hcb-payment-options { display:grid; gap:10px; }
.hcb-app .hcb-payment-options label { display:flex; gap:11px; align-items:center; padding:13px; background:white; border:1px solid #dce7e4; border-radius:10px; color:var(--hcb-text); cursor:pointer; }
.hcb-app .hcb-payment-options input { accent-color:var(--hcb-primary); }
.hcb-app .hcb-payment-tip { font-size:12px; color:var(--hcb-muted); margin:10px 0 0; }
.hcb-app .hcb-payment-required { display:flex; padding:14px; background:white; border:1px solid var(--hcb-primary); border-radius:10px; font-size:13px; color:var(--hcb-primary); font-weight:700; }

/* Complete details on the submitted request screen. */
.hcb-app .hcb-success { padding:15px 0 22px; }
.hcb-app .hcb-success-details { max-width:620px; margin:24px auto; text-align:left; border:1px solid #e0ebe8; border-radius:15px; background:#f9fcfb; overflow:hidden; }
.hcb-app .hcb-success-details dl { margin:0; }
.hcb-app .hcb-success-details dl>div { display:grid; grid-template-columns:minmax(110px,40%) 1fr; gap:12px; padding:11px 16px; border-bottom:1px solid #e5efeb; }
.hcb-app .hcb-success-details dl>div:last-child { border-bottom:0; }
.hcb-app .hcb-success-details dt { font-size:12px; color:var(--hcb-muted); }
.hcb-app .hcb-success-details dd { margin:0; font-size:13px; color:var(--hcb-text); font-weight:650; overflow-wrap:anywhere; }
.hcb-app .hcb-success-note { max-width:560px; font-size:13px; }
.hcb-app .hcb-pay-link { display:inline-block; padding:14px 22px; margin:6px auto 14px; color:#fff !important; background:var(--hcb-primary); border-radius:11px; font-weight:750; text-decoration:none !important; }
.hcb-app .hcb-pay-link:hover { background:var(--hcb-primary-dark); color:#fff !important; }
.hcb-app .hcb-restart { display:block; background:#ecf4f1; color:var(--hcb-primary); }
.hcb-app .hcb-restart:hover { background:#d8eae4; color:var(--hcb-primary); }
@media(max-width:500px) {
  .hcb-app .hcb-calendar { max-width:100%; padding:11px; }
  .hcb-app .hcb-cal-day { font-size:12px; min-height:30px; }
  .hcb-app .hcb-calendar-weekdays, .hcb-app .hcb-calendar-days { gap:3px; }
  .hcb-app .hcb-mode { width:100%; }
  .hcb-app .hcb-success-details dl>div { grid-template-columns:1fr; gap:2px; }
}


/* v1.1.2 Mobile containment fixes for Elementor, theme and browser defaults.
   Clinician card buttons previously kept their text's intrinsic width on iPhone. */
.hcb-app, .hcb-app .hcb-layout, .hcb-app .hcb-main,
.hcb-app .hcb-step, .hcb-app .hcb-service-list, .hcb-app .hcb-clinician-list,
.hcb-app .hcb-summary, .hcb-app .hcb-card-copy { min-width:0 !important; max-width:100%; }
.hcb-app .hcb-layout { width:100%; }
.hcb-app .hcb-select-card {
  display:flex !important; width:100% !important; max-width:100% !important;
  min-width:0 !important; flex-shrink:1; white-space:normal !important;
  overflow-wrap:anywhere; word-break:normal; text-align:left !important;
}
.hcb-app .hcb-select-card .hcb-card-copy,
.hcb-app .hcb-select-card strong,
.hcb-app .hcb-select-card small,
.hcb-app .hcb-select-card .hcb-bio {
  min-width:0 !important; max-width:100%; white-space:normal !important;
  overflow-wrap:anywhere !important; word-break:normal !important;
}
.hcb-app .hcb-card-copy { flex:1 1 0% !important; }
.hcb-app .hcb-avatar, .hcb-app .hcb-card-check { flex-shrink:0; }
.hcb-app .hcb-progress li { min-width:0; }
.hcb-app .hcb-payment-billing { border-top:1px solid #d9e9e4; margin-top:14px; padding-top:14px; }
.hcb-app .hcb-payment-billing .hcb-fields { margin-top:14px; }
.hcb-app .hcb-payment-billing .hcb-field:first-child { grid-column: 1 / -1; }
@media(max-width:760px) {
  .hcb-app { width:100%; max-width:100%; }
  .hcb-app .hcb-layout { grid-template-columns:minmax(0,1fr) !important; }
  .hcb-app .hcb-progress { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
  .hcb-app .hcb-progress li { display:flex; flex-direction:column; justify-content:flex-start; text-align:center; white-space:normal !important; gap:6px; font-size:11px; line-height:1.25; }
  .hcb-app .hcb-progress li span { flex:0 0 auto; }
  .hcb-app .hcb-summary { width:100%; }
}
@media(max-width:540px) {
  .hcb-app .hcb-summary dl { grid-template-columns:minmax(0,1fr); }
  .hcb-app .hcb-summary dl > div { min-width:0; }
  .hcb-app .hcb-main { padding:20px 14px; }
  .hcb-app .hcb-select-card { gap:10px; padding:12px 10px; }
  .hcb-app .hcb-avatar { flex-basis:52px; width:52px; height:52px; }
  .hcb-app .hcb-card-check { flex-basis:20px; width:20px; height:20px; }
  .hcb-app .hcb-progress li { font-size:10px; }
  .hcb-app .hcb-payment-billing .hcb-fields { grid-template-columns:minmax(0,1fr); }
  .hcb-app .hcb-slot-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hcb-app .hcb-mode-buttons { display:grid; grid-template-columns:minmax(0,1fr); }
  .hcb-app .hcb-mode { width:100%; max-width:100%; white-space:normal!important; }
  .hcb-app .hcb-heading h2 { overflow-wrap:anywhere; }
}
