.hc-clinic-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  color: var(--hc-text, #19334c);
}
.hc-clinic-form.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hc-field { display: grid; gap: 6px; margin: 0; }
.hc-field > span, .hc-upload > span { font-size: 12px; font-weight: 900; }
.hc-field input, .hc-field select, .hc-field textarea,
.hc-upload input, .hc-record input, .hc-record select, .hc-record textarea {
  width: 100%; min-height: 46px; margin: 0; padding: 10px 12px;
  color: #19334c; background: #fff; border: 1px solid #bdcad3; border-radius: 7px;
  outline: 0; transition: border-color .2s, box-shadow .2s;
}
.hc-field textarea { resize: vertical; }
.hc-field input:focus, .hc-field select:focus, .hc-field textarea:focus,
.hc-upload input:focus { border-color: var(--hc-secondary, #f1bc52); box-shadow: 0 0 0 3px rgba(241,188,82,.22); }
.hc-field--wide { grid-column: 1 / -1; }
.hc-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; }
.hc-consent input { width: 18px; min-height: 18px; margin-top: 5px; }
.hc-consent a { color: #8a6217; text-decoration: underline; }
.hc-honeypot { position: absolute !important; right: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.hc-submit {
  min-height: 48px; padding: 11px 22px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--hc-primary, #19334c); border: 0; border-radius: 7px;
  font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .2s, opacity .2s;
}
.hc-submit:hover { color: #fff; transform: translateY(-1px); }
.hc-submit:disabled { opacity: .55; cursor: wait; transform: none; }
.hc-price-box { padding: 14px 17px; display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; align-items: center; background: #fff9eb; border: 1px solid #ebcf93; border-radius: 8px; }
.hc-price-box span { font-weight: 800; }
.hc-price-box strong { color: #7a5614; font-size: 17px; }
.hc-price-box small { grid-column: 1 / -1; color: #697989; }
.hc-form-message { margin: 0 0 16px; padding: 12px 15px; border-radius: 7px; border-right: 5px solid; background: #fff; }
.hc-form-message--success { color: #155b38; border-color: #39a96b; background: #edfff5; }
.hc-form-message--error { color: #8c252b; border-color: #e74d55; background: #fff0f1; }
.hc-form-message--notice { color: #664a15; border-color: #f1bc52; background: #fff9e9; }
.hc-slot-feedback { min-height: 1.5em; margin: 0; color: #697989; font-size: 11px; }

.hc-booking-lookup { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--hc-line, #dce4e8); }
.hc-booking-lookup form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.hc-booking-lookup h3 { margin: 0 0 14px; }
.hc-lookup-result { margin-bottom: 14px; padding: 15px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; background: #eef8f2; border-right: 5px solid #5ca27a; border-radius: 7px; }
.hc-lookup-result strong { color: #286747; }
.hc-lookup-result small { color: #697989; }

.hc-chat-gate { max-width: 680px; margin-inline: auto; padding: 35px; text-align: center; background: #fff; border: 1px solid var(--hc-line, #dce4e8); border-radius: var(--hc-radius, 12px); }
.hc-chat { max-width: 900px; margin-inline: auto; overflow: hidden; background: #f2f5f7; border: 1px solid #ccd7de; border-radius: var(--hc-radius, 12px); box-shadow: 0 18px 50px rgba(17,43,65,.12); }
.hc-chat-head { padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: #fff; background: var(--hc-primary, #19334c); }
.hc-chat-head span, .hc-chat-head small { display: block; color: #cbd7df; font-size: 11px; }
.hc-chat-head h2 { margin: 2px 0 0; color: #fff; font-size: 22px; }
.hc-chat-head > div:last-child { text-align: left; }
.hc-chat-security { padding: 10px 20px; color: #5d4a22; background: #fff7df; border-bottom: 1px solid #e4d19e; font-size: 11px; }
.hc-chat > .hc-form-message { margin: 12px 18px 0; }
.hc-chat-messages { height: min(540px, 58vh); min-height: 320px; overflow: auto; padding: 22px; scroll-behavior: smooth; }
.hc-chat-empty { margin: 60px auto; max-width: 420px; text-align: center; color: #70808d; }
.hc-bubble { width: min(78%, 650px); margin: 0 0 15px auto; padding: 13px 15px; background: #fff; border-radius: 13px 13px 4px 13px; box-shadow: 0 5px 14px rgba(16,40,62,.08); }
.hc-bubble--doctor { margin-right: 0; margin-left: auto; color: #fff; background: var(--hc-primary, #19334c); border-radius: 13px 13px 13px 4px; }
.hc-bubble header { display: flex; justify-content: space-between; gap: 13px; margin-bottom: 6px; font-size: 10px; }
.hc-bubble header time { color: #8997a2; }
.hc-bubble--doctor header time { color: #b9c9d4; }
.hc-bubble p { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.hc-chat-image { display: block; margin-top: 9px; }
.hc-chat-image img { display: block; max-height: 430px; border-radius: 8px; }
.hc-bubble audio { width: 100%; margin-top: 9px; }
.hc-file-link { display: block; margin-top: 5px; color: inherit; font-size: 10px; text-decoration: underline; }
.hc-chat-form { padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; background: #fff; border-top: 1px solid #ccd7de; }
.hc-chat-form .hc-field { grid-column: 1 / -1; }
.hc-upload { display: grid; gap: 4px; }
.hc-upload input { min-height: 44px; padding: 7px; }
.hc-upload small { color: #697989; font-size: 10px; }

.hc-services-shortcode { display: grid; grid-template-columns: repeat(var(--hc-card-columns, 3), minmax(0,1fr)); gap: var(--hc-card-gap, 18px); }
.hc-service-shortcode-card { overflow: hidden; background: #fff; border: 1px solid var(--hc-line, #dce4e8); border-radius: var(--hc-radius, 12px); box-shadow: 0 10px 25px rgba(22,50,73,.08); }
.hc-service-shortcode-card > div { padding: var(--hc-card-padding, 24px); }
.hc-service-shortcode-image { display: block; height: var(--hc-article-image-height, 220px); background: var(--hc-primary, #19334c); }
.hc-service-shortcode-image img { width: 100%; height: 100%; object-fit: cover; }
.hc-service-shortcode-icon { height: 110px; display: grid; place-items: center; color: var(--hc-secondary, #f1bc52); background: var(--hc-primary, #19334c); }
.hc-service-shortcode-icon svg { width: 48px; height: 48px; }
.hc-service-shortcode-card h2 { margin: 0 0 8px; font-size: 20px; }
.hc-service-shortcode-card p { color: var(--hc-muted, #697989); }
.hc-text-link { color: #875f15; font-weight: 900; }

@media (max-width: 800px) {
  .hc-clinic-form, .hc-clinic-form.is-compact { grid-template-columns: 1fr 1fr; }
  .hc-booking-lookup form { grid-template-columns: 1fr 1fr; }
  .hc-booking-lookup .hc-submit { grid-column: 1 / -1; }
  .hc-services-shortcode { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .hc-clinic-form, .hc-clinic-form.is-compact, .hc-booking-lookup form, .hc-services-shortcode { grid-template-columns: 1fr; }
  .hc-field, .hc-field--wide { grid-column: 1; }
  .hc-price-box { grid-template-columns: 1fr; }
  .hc-price-box small { grid-column: 1; }
  .hc-chat-head { align-items: flex-start; }
  .hc-chat-messages { padding: 13px; }
  .hc-bubble { width: 91%; }
  .hc-chat-form { grid-template-columns: 1fr; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-chat-messages { scroll-behavior: auto; }
}
