/* HMS Couples form — matches the site's sage / sand / cream palette */
.hms-couples-form, .hms-couples-confirm {
  --hmsc-sage: #5A6759; --hmsc-ink: #1F2A1F; --hmsc-muted: #3E4A3D; --hmsc-sand: #CDC69B; --hmsc-cream: #F7F4ED; --hmsc-err: #9B2C1F;
  background: var(--hmsc-cream); color: var(--hmsc-ink); border: 1px solid var(--hmsc-sand); border-radius: 14px;
  padding: 20px; max-width: 760px; margin: 0 auto; box-sizing: border-box; font-size: 16px;
}
.hmsc-title { margin: 0 0 4px; color: var(--hmsc-sage); font-size: 1.5em; }
.hmsc-lead { margin: 0 0 12px; color: var(--hmsc-muted); }
.hmsc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.hmsc-field { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hmsc-wide { grid-column: 1 / -1; }
.hmsc-field label { font-weight: 600; font-size: 0.9em; }
.hmsc-field input, .hmsc-field select, .hmsc-field textarea {
  min-height: 44px; border: 1px solid var(--hmsc-sand); border-radius: 10px; background: #fff; color: var(--hmsc-ink);
  padding: 8px 10px; font: inherit; box-sizing: border-box; width: 100%;
}
.hmsc-field select:disabled { background: #eeeae0; color: #6b6f66; }
.hmsc-msg { min-height: 1.2em; margin: 0 0 10px; color: var(--hmsc-muted); }
.hmsc-msg.is-error { color: var(--hmsc-err); font-weight: 600; }
.hmsc-total { margin: 12px 0 0; font-weight: 600; }
.hmsc-btn { min-height: 50px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--hmsc-sage); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.hmsc-btn:disabled { opacity: .5; cursor: not-allowed; }
.hmsc-btn:focus-visible, .hmsc-field :focus-visible { outline: 3px solid var(--hmsc-sand); outline-offset: 2px; }
.hmsc-hp { position: absolute; left: -9999px; }
.hmsc-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; }
.hmsc-dl dt { font-weight: 600; color: var(--hmsc-muted); }
.hmsc-dl dd { margin: 0; }
.hmsc-switcher { max-width: 1000px; margin: 0 auto; box-sizing: border-box; }

/* Regular (core) form inside the switch: wider, left column larger. Scoped here so the core
   plugin's own stylesheet stays unchanged everywhere else. */
.hmsc-switcher .hms-reg-form { width: 100%; max-width: none; box-sizing: border-box; }
.hmsc-switcher .hms-reg-form .flex-container { display: flex; gap: 24px; }
.hmsc-switcher .hms-reg-form .column { flex: 1 1 0; min-width: 0; }
.hmsc-switcher .hms-reg-form .column:first-child { flex: 1.35 1 0; }
.hmsc-switcher .hms-reg-form .line { margin: 0 0 14px; }
.hmsc-switcher .hms-reg-form label { font-weight: 600; }
.hmsc-switcher .hms-reg-form select,
.hmsc-switcher .hms-reg-form input[type="text"],
.hmsc-switcher .hms-reg-form input[type="tel"],
.hmsc-switcher .hms-reg-form input[type="date"],
.hmsc-switcher .hms-reg-form textarea { width: 100%; box-sizing: border-box; min-height: 48px; font-size: 16px; }
.hmsc-switcher .hms-reg-form .column:first-child label { font-size: 17px; }
.hmsc-switcher .hms-reg-form .column:first-child select,
.hmsc-switcher .hms-reg-form .column:first-child input { font-size: 18px; min-height: 54px; padding-left: 12px; padding-right: 12px; }
/* date + time side by side */
.hmsc-switcher .hms-reg-form .line_datetime { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.hmsc-switcher .hms-reg-form .line_datetime label { grid-column: 1 / -1; }
.hmsc-switcher .hms-reg-form .line_datetime br { display: none; }
.hmsc-switcher .hms-reg-form .input_day,
.hmsc-switcher .hms-reg-form .input_time { display: block; width: 100%; }

/* Couples form: service on its own full-width row, larger first fields */
.hmsc-switcher .hms-couples-form { max-width: none; }
.hms-couples-form .hmsc-field-service { grid-column: 1 / -1; }
.hms-couples-form .hmsc-field-service select,
.hms-couples-form #hmsc_day, .hms-couples-form #hmsc_time { font-size: 18px; min-height: 54px; }
.hms-couples-form .hmsc-field-service label,
.hms-couples-form .hmsc-field-day label, .hms-couples-form .hmsc-field-time label { font-size: 1em; }

/* Tablet */
@media (max-width: 1024px) {
  .hmsc-switcher .hms-reg-form .flex-container { gap: 18px; }
  .hmsc-switcher .hms-reg-form .column:first-child { flex: 1.2 1 0; }
}
/* Phone and small tablet: one column */
@media (max-width: 768px) {
  .hmsc-switcher .hms-reg-form .flex-container { flex-direction: column; gap: 0; }
  .hms-couples-form, .hms-couples-confirm { padding: 16px; }
}
@media (max-width: 480px) {
  .hmsc-switcher .hms-reg-form .line_datetime { grid-template-columns: minmax(0, 1fr); }
  .hmsc-tab { font-size: 15px; padding: 8px; }
}
/* "1 person / Couples" switch. The theme styles every <button> (and its hover/focus) with its own
   colors, so these rules are scoped and marked !important to keep the two states clear:
   chosen = solid sage with a check mark, other = white with a sage outline (clearly clickable). */
.hmsc-switch-label { margin: 0 0 6px; font-weight: 600; color: #3E4A3D; }
.hmsc-switcher .hmsc-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.hmsc-switcher .hmsc-switch .hmsc-tab {
  min-height: 52px; margin: 0; padding: 8px 12px; border: 2px solid #5A6759 !important; border-radius: 12px !important;
  background: #fff !important; color: #5A6759 !important; font: inherit; font-weight: 600; text-transform: none; letter-spacing: 0;
  cursor: pointer; box-shadow: none !important; line-height: 1.25; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.hmsc-switcher .hmsc-switch .hmsc-tab:hover { background: #EEF0EA !important; color: #1F2A1F !important; }
.hmsc-switcher .hmsc-switch .hmsc-tab[aria-pressed="true"],
.hmsc-switcher .hmsc-switch .hmsc-tab[aria-pressed="true"]:hover { background: #5A6759 !important; color: #fff !important; }
.hmsc-switcher .hmsc-switch .hmsc-tab:focus-visible { outline: 3px solid #CDC69B; outline-offset: 2px; }
.hmsc-check { display: none; }
.hmsc-tab[aria-pressed="true"] .hmsc-check { display: inline; }
.hmsc-pane[hidden] { display: none !important; }

/* "Back to 1 person booking" — only inside the switch */
.hms-couples-form .hmsc-back { display: none; }
.hmsc-switcher .hms-couples-form .hmsc-back {
  display: inline-block; margin: 0 0 10px; padding: 4px 0 !important; border: 0 !important; background: none !important;
  color: #5A6759 !important; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; box-shadow: none !important; min-height: 0;
}

/* "You're booked!" pop-up */
.hmsc-modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 2px solid #5A6759; border-radius: 16px;
  padding: 24px 20px 20px; background: #F7F4ED; color: #1F2A1F; box-sizing: border-box; }
.hmsc-modal::backdrop { background: rgba(31, 42, 31, .55); }
.hmsc-modal-title { margin: 0 0 10px; color: #5A6759; font-size: 1.6em; }
.hmsc-modal-body p { margin: 0 0 8px; }
.hmsc-modal-body h4 { margin: 12px 0 2px; }
.hmsc-modal-actions { margin: 14px 0 0; text-align: right; }
.hmsc-modal .hmsc-modal-x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; padding: 0 !important; border: 0 !important;
  background: none !important; color: #3E4A3D !important; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: none !important; }
@media (max-width: 560px) { .hmsc-grid { grid-template-columns: minmax(0, 1fr); } .hmsc-spacer { display: none; } }
@media (max-width: 420px) { .hmsc-switcher .hmsc-switch { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
/* the theme colors every h3 pale sand; keep our headings sage */
.hms-couples-form .hmsc-title, .hms-couples-confirm .hmsc-title, .hmsc-modal .hmsc-modal-title { color: #5A6759 !important; }


/* Book button: dark green, turns light green with "Booking..." once pressed */
.hms-couples-form #hmsc_submit { background-color: #2e6b3a; border-color: #2e6b3a; color: #fff; transition: background-color .15s, color .15s; }
.hms-couples-form #hmsc_submit:hover:not(:disabled) { background-color: #245530; border-color: #245530; }
.hms-couples-form #hmsc_submit:active,
.hms-couples-form #hmsc_submit.is-booking { background-color: #a5d6a7 !important; border-color: #a5d6a7 !important; color: #1b3d22 !important; opacity: 1; }
