/* ==========================================================================
   Appointment Counselor — Frontend Styles v1.1.0
   Hardcoded colours so no WP theme can override them.
   Fully responsive, iOS-safe date inputs, accessible close buttons.
   ========================================================================== */

:root {
  --ac-primary:      #4f46e5;
  --ac-primary-dark: #3730a3;
  --ac-secondary:    #f3f4f6;
  --ac-text:         #111827;
  --ac-muted:        #6b7280;
  --ac-border:       #e5e7eb;
  --ac-radius:       16px;
  --ac-font:         'Poppins','Segoe UI',system-ui,sans-serif;
}

/* ════════════════════════════════════════════════════════════════════════════
   SEARCH BAR
   ════════════════════════════════════════════════════════════════════════════ */
.ac-wrap .ac-search-bar {
  position:  relative;
  max-width: 420px;
  margin:    0 auto 32px;
}
.ac-wrap .ac-search-bar .ac-search-icon {
  position:        absolute !important;
  left:            14px !important;
  top:             50% !important;
  transform:       translateY(-50%) !important;
  display:         flex !important;
  align-items:     center !important;
  justify-content: center !important;
  pointer-events:  none !important;
  z-index:         2 !important;
  width:           18px !important;
  height:          18px !important;
  line-height:     1 !important;
  padding:         0 !important;
  margin:          0 !important;
  background:      none !important;
  border:          none !important;
  color:           #9ca3af !important;
}
.ac-wrap .ac-search-bar .ac-search-icon svg,
.ac-wrap .ac-search-bar .ac-search-icon img {
  display:    block !important;
  width:      18px !important;
  height:     18px !important;
  max-width:  18px !important;
  max-height: 18px !important;
  min-width:  unset !important;
  min-height: unset !important;
  flex-shrink: 0 !important;
}
.ac-wrap .ac-search-input {
  display:            block !important;
  width:              100% !important;
  padding:            11px 18px 11px 46px !important;
  border:             2px solid #e5e7eb !important;
  border-radius:      50px !important;
  font-size:          15px !important;
  font-family:        var(--ac-font) !important;
  outline:            none !important;
  background:         #ffffff !important;
  box-sizing:         border-box !important;
  color:              #111827 !important;
  box-shadow:         none !important;
  -webkit-appearance: none !important;
  transition:         border-color .2s !important;
  line-height:        1.5 !important;
  height:             auto !important;
}
.ac-wrap .ac-search-input:focus {
  border-color: #4f46e5 !important;
  box-shadow:   0 0 0 3px rgba(79,70,229,.15) !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   WRAP + GRID + CARD
   ════════════════════════════════════════════════════════════════════════════ */
.ac-wrap {
  max-width:   1100px;
  margin:      0 auto;
  padding:     32px 16px;
  box-sizing:  border-box;
  font-family: var(--ac-font);
  color:       #111827;
}
.ac-grid {
  display:               grid;
  grid-template-columns: repeat(3,1fr);
  gap:                   24px;
}
@media(max-width:900px){ .ac-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:580px){ .ac-grid{ grid-template-columns:1fr; } }

.ac-card {
  background:     #fff;
  border-radius:  16px;
  box-shadow:     0 4px 24px rgba(0,0,0,.07);
  padding:        0 0 22px;
  text-align:     center;
  transition:     transform .25s, box-shadow .25s, opacity .3s;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  border:         1px solid #e5e7eb;
  overflow:       hidden;
}
.ac-card:hover {
  transform:    translateY(-5px);
  box-shadow:   0 16px 48px rgba(79,70,229,.16);
  border-color: rgba(79,70,229,.2);
}
.ac-card.ac-greyout { opacity:.38; filter:grayscale(1); pointer-events:none; }
.ac-card.ac-hidden  { display:none !important; }

/* Photo banner */
.ac-photo-wrap {
  position:      relative;
  width:         100%;
  margin-bottom: 22px;
  background:    linear-gradient(145deg, #4f46e5 0%, #818cf8 50%, #a5b4fc 100%);
  padding:       36px 0 0;
  min-height:    120px;
}
.ac-photo {
  width:           110px    !important;
  height:          110px    !important;
  min-width:       110px    !important;
  min-height:      110px    !important;
  max-width:       110px    !important;
  max-height:      110px    !important;
  border-radius:   50%      !important;
  object-fit:      cover    !important;
  object-position: center top !important;
  border:          4px solid #ffffff !important;
  box-shadow:      0 0 0 4px #4f46e5,
                   0 8px 24px rgba(79,70,229,.4) !important;
  display:         block    !important;
  margin:          0 auto   !important;
  position:        relative !important;
  z-index:         1        !important;
  background:      #e0e7ff  !important;
  overflow:        hidden   !important;
}
.ac-card:hover .ac-photo {
  transform:  scale(1.06);
  box-shadow: 0 0 0 5px rgba(79,70,229,.3),
              0 12px 36px rgba(79,70,229,.45);
}
.ac-photo-placeholder {
  background:      linear-gradient(135deg,#c7d2fe,#bfdbfe);
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           #6366f1;
}
.ac-photo-banner-wave { display:block; width:100%; margin-top:-1px; }
.ac-confirmed-badge {
  position:      absolute;
  bottom:        10px;
  left:          50%;
  transform:     translateX(-50%);
  background:    #10b981;
  color:         #fff;
  font-size:     11px;
  font-weight:   600;
  padding:       4px 12px;
  border-radius: 20px;
  display:       flex;
  align-items:   center;
  gap:           4px;
  white-space:   nowrap;
  z-index:       2;
  box-shadow:    0 2px 8px rgba(16,185,129,.35);
}
.ac-name  { font-size:17px; font-weight:700; margin:0 0 4px; padding:0 16px; color:#111827; }
.ac-title { font-size:13px; color:#6b7280; margin:0 0 8px; padding:0 16px; }
.ac-fee   { font-size:18px; font-weight:700; color:#4f46e5; margin:0 0 12px; }
.ac-fee span { font-size:12px; font-weight:400; color:#6b7280; }
.ac-info  { flex:1; width:100%; }

.ac-actions {
  display:        flex;
  flex-direction: column;
  gap:            10px;
  width:          100%;
  margin-top:     16px;
  padding:        0 20px;
  box-sizing:     border-box;
}

/* Card buttons */
a.ac-btn, button.ac-btn,
.ac-wrap .ac-btn {
  display:         flex !important;
  align-items:     center !important;
  justify-content: center !important;
  gap:             7px !important;
  padding:         10px 18px !important;
  border-radius:   50px !important;
  font-size:       14px !important;
  font-weight:     600 !important;
  cursor:          pointer !important;
  border:          none !important;
  transition:      all .2s !important;
  font-family:     var(--ac-font) !important;
  text-decoration: none !important;
  width:           100% !important;
  box-sizing:      border-box !important;
  line-height:     1.4 !important;
}
button.ac-btn-primary,
.ac-wrap .ac-btn-primary {
  background: #4f46e5 !important;
  color:      #ffffff !important;
}
button.ac-btn-primary:hover,
.ac-wrap .ac-btn-primary:hover {
  background: #3730a3 !important;
  color:      #ffffff !important;
}
button.ac-btn-secondary,
.ac-wrap .ac-btn-secondary {
  background: #f3f4f6 !important;
  color:      #111827 !important;
  border:     1px solid #e5e7eb !important;
}
button.ac-btn-secondary:hover,
.ac-wrap .ac-btn-secondary:hover {
  background: #e5e7eb !important;
  color:      #111827 !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   MODAL OVERLAY + BOX
   ════════════════════════════════════════════════════════════════════════════ */
#ac-booking-modal,
#ac-info-modal,
#ac-pin-modal,
#ac-bookings-modal {
  display:                 none;
  position:                fixed !important;
  top:                     0 !important;
  left:                    0 !important;
  right:                   0 !important;
  bottom:                  0 !important;
  width:                   100vw !important;
  height:                  100vh !important;
  max-width:               100vw !important;
  max-height:              100vh !important;
  margin:                  0 !important;
  background:              rgba(0,0,0,.62) !important;
  z-index:                 2147483647 !important;
  align-items:             center !important;
  justify-content:         center !important;
  padding:                 12px !important;
  box-sizing:              border-box !important;
  backdrop-filter:         blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  overflow-y:              auto !important;
  overflow-x:              hidden !important;
  transform:               none !important;
  isolation:               isolate;
}
#ac-booking-modal.ac-open,
#ac-info-modal.ac-open,
#ac-pin-modal.ac-open,
#ac-bookings-modal.ac-open {
  display: flex !important;
}

/* Inner modal boxes */
#ac-booking-modal .ac-modal,
#ac-info-modal .ac-modal,
#ac-pin-modal .ac-modal,
#ac-bookings-modal .ac-modal {
  background:    #ffffff !important;
  border-radius: 20px !important;
  padding:       32px !important;
  width:         100% !important;
  max-width:     600px !important;
  max-height:    92vh !important;
  overflow-y:    auto !important;
  overflow-x:    hidden !important;
  position:      relative !important;
  box-shadow:    0 20px 60px rgba(0,0,0,.25) !important;
  box-sizing:    border-box !important;
  -webkit-overflow-scrolling: touch !important;
  font-family:   var(--ac-font) !important;
  color:         #111827 !important;
  margin:        auto !important;
}
@media(max-width:600px){
  #ac-booking-modal .ac-modal,
  #ac-info-modal .ac-modal,
  #ac-pin-modal .ac-modal,
  #ac-bookings-modal .ac-modal {
    padding:       18px 14px !important;
    border-radius: 16px !important;
    max-height:    96vh !important;
  }
}
@media(max-width:360px){
  #ac-booking-modal .ac-modal,
  #ac-info-modal .ac-modal,
  #ac-pin-modal .ac-modal,
  #ac-bookings-modal .ac-modal {
    padding:       14px 12px !important;
    border-radius: 14px !important;
  }
}

/* ── Close buttons — larger tap target on mobile ─────────────────────────── */
#ac-modal-close,
#ac-info-close,
#ac-pin-close,
#ac-bookings-close {
  position:        absolute !important;
  top:             12px !important;
  right:           12px !important;
  background:      #f3f4f6 !important;
  border:          none !important;
  border-radius:   50% !important;
  width:           40px !important;
  height:          40px !important;
  min-width:       40px !important;
  min-height:      40px !important;
  display:         flex !important;
  align-items:     center !important;
  justify-content: center !important;
  cursor:          pointer !important;
  color:           #6b7280 !important;
  z-index:         20 !important;
  padding:         0 !important;
  box-shadow:      none !important;
  flex-shrink:     0 !important;
  /* Ensure SVG children don't intercept clicks */
  pointer-events:  all !important;
}
/* SVG inside close button — pointer-events:none so click goes to button */
#ac-modal-close svg,
#ac-info-close svg,
#ac-pin-close svg,
#ac-bookings-close svg {
  pointer-events: none !important;
  display:        block !important;
}
#ac-modal-close:hover, #ac-info-close:hover,
#ac-pin-close:hover,   #ac-bookings-close:hover {
  background: #e5e7eb !important;
  color:      #111827 !important;
}
@media(max-width:480px){
  #ac-modal-close,
  #ac-info-close,
  #ac-pin-close,
  #ac-bookings-close {
    width:     44px !important;
    height:    44px !important;
    min-width: 44px !important;
    min-height:44px !important;
    top:       8px !important;
    right:     8px !important;
  }
}

/* Modal header */
.ac-modal-header {
  display:        flex !important;
  align-items:    center !important;
  gap:            14px !important;
  margin-bottom:  22px !important;
  padding-bottom: 18px !important;
  border-bottom:  1px solid #e5e7eb !important;
  padding-right:  52px !important;
}
@media(max-width:480px){
  .ac-modal-header { gap:10px !important; padding-right:50px !important; }
}
.ac-modal-avatar {
  width:         56px !important;
  height:        56px !important;
  border-radius: 50% !important;
  background:    #f3f4f6 !important;
  overflow:      hidden !important;
  flex-shrink:   0 !important;
}
.ac-modal-avatar img { width:100% !important; height:100% !important; object-fit:cover !important; display:block !important; }
.ac-modal-title    { font-size:18px !important; font-weight:700 !important; margin:0 0 3px !important; color:#111827 !important; }
.ac-modal-subtitle { font-size:13px !important; color:#6b7280 !important; margin:0 !important; }
@media(max-width:360px){
  .ac-modal-title { font-size:16px !important; }
}

/* Step heading */
.ac-step-heading {
  display:     flex !important;
  align-items: center !important;
  gap:         10px !important;
  font-size:   15px !important;
  font-weight: 700 !important;
  margin:      0 0 14px !important;
  color:       #111827 !important;
}
.ac-step-num {
  background:      #4f46e5 !important;
  color:           #ffffff !important;
  width:           26px !important;
  height:          26px !important;
  border-radius:   50% !important;
  display:         flex !important;
  align-items:     center !important;
  justify-content: center !important;
  font-size:       13px !important;
  font-weight:     700 !important;
  flex-shrink:     0 !important;
}

/* ── Call type selector ──────────────────────────────────────────────────── */
.ac-call-type-row   { margin-bottom:18px; }
.ac-call-type-label {
  font-size:      12px;
  font-weight:    600;
  color:          #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom:  10px;
  display:        block;
}
.ac-call-type-options { display:flex; gap:10px; }
.ac-call-type-btn {
  flex:            1 !important;
  display:         flex !important;
  align-items:     center !important;
  justify-content: center !important;
  gap:             6px !important;
  padding:         12px 8px !important;
  border:          2px solid #e5e7eb !important;
  border-radius:   12px !important;
  background:      #ffffff !important;
  cursor:          pointer !important;
  font-family:     var(--ac-font) !important;
  font-size:       14px !important;
  font-weight:     600 !important;
  color:           #6b7280 !important;
  transition:      all .2s !important;
  box-sizing:      border-box !important;
  width:           auto !important;
  min-height:      52px !important;
  white-space:     nowrap !important;
}
.ac-call-type-btn svg { flex-shrink:0 !important; pointer-events:none !important; }
.ac-call-type-btn:hover {
  border-color: #4f46e5 !important;
  color:        #4f46e5 !important;
  background:   #f5f3ff !important;
}
.ac-call-type-btn.ac-call-active {
  border-color: #4f46e5 !important;
  background:   #ede9fe !important;
  color:        #4f46e5 !important;
  box-shadow:   0 0 0 3px rgba(79,70,229,.12) !important;
}
/* ALWAYS side by side — never stack */
@media(max-width:380px){
  .ac-call-type-btn { font-size:13px !important; padding:10px 6px !important; gap:4px !important; }
  .ac-call-type-btn svg { width:15px !important; height:15px !important; }
}

/* ── Date / Time row ─────────────────────────────────────────────────────── */
.ac-date-time-row {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   14px;
}
/* On mobile: stack date on top, slots below — both full width */
@media(max-width:560px){
  .ac-date-time-row { grid-template-columns:1fr; gap:12px; }
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.ac-field-wrap { display:flex; flex-direction:column; gap:6px; }
.ac-label {
  font-size:      12px !important;
  font-weight:    600 !important;
  color:          #6b7280 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  display:        block !important;
}

/* Base input — works for text, email, tel, password, date */
.ac-input {
  padding:            11px 14px !important;
  border:             2px solid #e5e7eb !important;
  border-radius:      10px !important;
  font-size:          15px !important;
  font-family:        var(--ac-font) !important;
  outline:            none !important;
  background:         #ffffff !important;
  width:              100% !important;
  box-sizing:         border-box !important;
  color:              #111827 !important;
  -webkit-text-fill-color: #111827 !important; /* iOS Safari override */
  -webkit-appearance: none !important;
  box-shadow:         none !important;
  height:             auto !important;
  line-height:        1.5 !important;
  min-height:         48px !important; /* accessible tap target */
}
.ac-input:focus {
  border-color: #4f46e5 !important;
  box-shadow:   0 0 0 3px rgba(79,70,229,.12) !important;
}

/* ── Date input wrapper (calendar icon overlay) ──────────────────────────── */
.ac-date-input-wrap {
  position: relative;
  display:  block;
  width:    100%;
}
.ac-date-input-wrap .ac-input {
  padding-right: 44px !important; /* room for the calendar icon */
}
.ac-date-cal-icon {
  position:        absolute !important;
  right:           12px !important;
  top:             50% !important;
  transform:       translateY(-50%) !important;
  pointer-events:  none !important;
  color:           #6b7280 !important;
  display:         flex !important;
  align-items:     center !important;
  justify-content: center !important;
  z-index:         2 !important;
}
.ac-date-cal-icon svg { display:block !important; pointer-events:none !important; }

/* ── Date input — cross-browser / cross-device (iOS/Android) fix ─────────── */
/*
   ROOT CAUSE OF BLANK DATE FIELD ON MOBILE:
   -webkit-appearance:none strips native iOS date rendering.
   color-scheme:light  restores the browser's native date display
   in the correct light-mode colours without breaking our custom styles.
*/
input.ac-input[type="date"] {
  color-scheme:            light !important; /* KEY FIX — restores iOS/Android date display */
  -webkit-text-fill-color: #111827 !important;
  padding-right:           44px !important;
}

/* ── Mobile date placeholder fix ──────────────────────────────────────────── */
/* Show a visible placeholder text when no date is chosen yet */
.ac-date-input-wrap::before {
  content:         attr(data-placeholder);
  position:        absolute;
  left:            14px;
  top:             50%;
  transform:       translateY(-50%);
  color:           #9ca3af;
  font-size:       15px;
  pointer-events:  none;
  z-index:         2;
  transition:      opacity .15s;
}
/* Hide the placeholder once a value exists */
.ac-date-input-wrap.has-value::before {
  opacity: 0;
}
/* Make native date text invisible while empty so placeholder shows through */
input.ac-input[type="date"].empty-date {
  color:                   transparent    !important;
  -webkit-text-fill-color: transparent    !important;
}
/* Restore colour once a date is picked */
input.ac-input[type="date"]:not(.empty-date) {
  color:                   #111827        !important;
  -webkit-text-fill-color: #111827        !important;
}

/* Chrome/Edge/Samsung Browser — webkit date field pseudo-elements */
input.ac-input[type="date"]::-webkit-datetime-edit {
  color:     #111827 !important;
  font-size: 15px !important;
  padding:   0 !important;
  line-height: 1.4 !important;
}
input.ac-input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  color:   #111827 !important;
  padding: 0 !important;
}
input.ac-input[type="date"]::-webkit-datetime-edit-text {
  color:   #9ca3af !important;
  padding: 0 1px !important;
}
input.ac-input[type="date"]::-webkit-datetime-edit-month-field,
input.ac-input[type="date"]::-webkit-datetime-edit-day-field,
input.ac-input[type="date"]::-webkit-datetime-edit-year-field {
  color:       #111827 !important;
  background:  transparent !important;
  font-size:   15px !important;
  font-weight: 600 !important;
  padding:     0 1px !important;
}
input.ac-input[type="date"]::-webkit-datetime-edit-month-field:focus,
input.ac-input[type="date"]::-webkit-datetime-edit-day-field:focus,
input.ac-input[type="date"]::-webkit-datetime-edit-year-field:focus {
  background:    #ede9fe !important;
  color:         #4f46e5 !important;
  border-radius: 3px !important;
  outline:       none !important;
}
/* Hide the native calendar icon — we show our own SVG instead */
input.ac-input[type="date"]::-webkit-calendar-picker-indicator {
  opacity:         0 !important;
  width:           32px !important;
  height:          100% !important;
  position:        absolute !important;
  right:           0 !important;
  top:             0 !important;
  cursor:          pointer !important;
  -webkit-appearance: none !important;
}
/* Firefox */
input.ac-input[type="date"]::-moz-focus-inner { border:0; }

.ac-form-row {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   14px;
  margin-bottom:         14px;
}
@media(max-width:480px){ .ac-form-row{ grid-template-columns:1fr; } }

/* ── Slots ───────────────────────────────────────────────────────────────── */
.ac-slots-wrap {
  display:       flex;
  flex-wrap:     wrap;
  gap:           8px;
  max-height:    220px;
  overflow-y:    auto;
  align-content: flex-start;
  padding:       4px 0;
  -webkit-overflow-scrolling: touch;
}
.ac-slots-hint { font-size:13px; color:#6b7280; margin:8px 0 0; }
.ac-slot {
  padding:         9px 16px !important;
  border:          2px solid #e5e7eb !important;
  border-radius:   10px !important;
  font-size:       14px !important;
  font-weight:     600 !important;
  font-family:     var(--ac-font) !important;
  cursor:          pointer !important;
  background:      #ffffff !important;
  color:           #374151 !important;
  transition:      all .15s !important;
  box-sizing:      border-box !important;
  min-height:      44px !important; /* accessible tap target */
  display:         inline-flex !important;
  align-items:     center !important;
  justify-content: center !important;
  white-space:     nowrap !important;
}
.ac-slot:hover {
  border-color: #4f46e5 !important;
  color:        #4f46e5 !important;
  background:   #f5f3ff !important;
}
.ac-slot.ac-slot-active {
  background:   #4f46e5 !important;
  color:        #ffffff !important;
  border-color: #4f46e5 !important;
}
.ac-slot.ac-slot-booked,
.ac-slot[disabled] {
  opacity:      .5 !important;
  cursor:       not-allowed !important;
  background:   #f9fafb !important;
  color:        #9ca3af !important;
  border-color: #e5e7eb !important;
}
.ac-slot-unavailable-label {
  display:         inline-block;
  font-size:       10px;
  color:           #ef4444;
  font-weight:     600;
  padding:         2px 6px;
  background:      #fef2f2;
  border:          1px solid #fca5a5;
  border-radius:   6px;
  margin-left:     5px;
  vertical-align:  middle;
  text-decoration: none !important;
}
.ac-no-slots-msg {
  font-size:     14px;
  color:         #dc2626;
  font-weight:   600;
  padding:       10px 14px;
  background:    #fef2f2;
  border:        1px solid #fca5a5;
  border-radius: 8px;
  margin:        4px 0 0;
  width:         100%;
  box-sizing:    border-box;
}
@media(max-width:480px){
  .ac-slot {
    font-size:  13px !important;
    padding:    9px 14px !important;
    min-height: 46px !important;
    min-width:  calc(50% - 4px) !important; /* 2-per-row on small screens */
    flex:       1 1 calc(50% - 4px) !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   CONFIRM BUTTON
   ════════════════════════════════════════════════════════════════════════════ */
#ac-booking-modal button#ac-proceed-btn,
#ac-booking-modal .ac-btn-appt-confirm,
button#ac-proceed-btn {
  background:       linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  background-color: #059669 !important;
  color:            #ffffff !important;
  display:          flex !important;
  align-items:      center !important;
  justify-content:  center !important;
  gap:              10px !important;
  width:            100% !important;
  padding:          15px 36px !important;
  box-sizing:       border-box !important;
  border-radius:    50px !important;
  border:           none !important;
  outline:          none !important;
  font-size:        16px !important;
  font-weight:      700 !important;
  font-family:      var(--ac-font) !important;
  line-height:      1.4 !important;
  text-decoration:  none !important;
  text-shadow:      0 1px 2px rgba(0,0,0,.15) !important;
  letter-spacing:   .01em !important;
  box-shadow:       0 6px 20px rgba(5,150,105,.4) !important;
  cursor:           pointer !important;
  transition:       transform .2s, box-shadow .2s !important;
  opacity:          1 !important;
  visibility:       visible !important;
  min-height:       52px !important;
}
#ac-booking-modal button#ac-proceed-btn:hover,
button#ac-proceed-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  color:      #ffffff !important;
  transform:  scale(1.02) !important;
  box-shadow: 0 10px 28px rgba(5,150,105,.5) !important;
}
#ac-booking-modal button#ac-proceed-btn.ac-loading,
button#ac-proceed-btn.ac-loading {
  opacity:        .75 !important;
  pointer-events: none !important;
}
button#ac-proceed-btn svg { stroke:#ffffff !important; color:#ffffff !important; flex-shrink:0 !important; pointer-events:none !important; }

@media(max-width:480px){
  button#ac-proceed-btn { font-size:15px !important; padding:13px 20px !important; }
}

/* Inline spinner for loading state */
.ac-btn-spinner {
  display:        inline-block;
  width:          22px;
  height:         22px;
  border:         3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius:  50%;
  animation:      acSpin .7s linear infinite;
  flex-shrink:    0;
}

/* Arrow hint below button */
.ac-cta-wrap {
  margin-top:     18px;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            10px;
}
.ac-hint-arrow {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-size:   13px;
  color:       #10b981;
  font-weight: 600;
  animation:   acPulse 1.5s ease-in-out infinite;
  margin:      0;
}
@keyframes acPulse {
  0%,100%{ opacity:1; transform:translateX(0); }
  50%    { opacity:.7; transform:translateX(4px); }
}

/* ════════════════════════════════════════════════════════════════════════════
   ERROR / SPINNER
   ════════════════════════════════════════════════════════════════════════════ */
.ac-error {
  background:    #fef2f2 !important;
  border:        1px solid #fca5a5 !important;
  color:         #dc2626 !important;
  padding:       10px 14px !important;
  border-radius: 8px !important;
  font-size:     14px !important;
  margin:        12px 0 0 !important;
  /* NOTE: display is intentionally NOT set here.
     JS controls visibility via .show()/.hide() (inline style).
     display:block!important was overriding style="display:none" on page load,
     causing the empty red box to always appear. */
}
.ac-spinner      { display:flex; justify-content:center; padding:24px 0; }
.ac-spinner-ring {
  width:  40px; height:40px;
  border: 4px solid #e5e7eb;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: acSpin .7s linear infinite;
}
@keyframes acSpin { to{ transform:rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════════════════
   SUCCESS BANNER (replaces inline style)
   ════════════════════════════════════════════════════════════════════════════ */
.ac-success-banner {
  position:      fixed;
  top:           20px;
  left:          50%;
  transform:     translateX(-50%) translateY(-120%);
  background:    #10b981;
  color:         #fff;
  padding:       16px 28px;
  border-radius: 12px;
  font-weight:   600;
  font-size:     15px;
  z-index:       2147483647;
  box-shadow:    0 8px 30px rgba(16,185,129,.4);
  text-align:    center;
  max-width:     90vw;
  width:         max-content;
  transition:    transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s;
  opacity:       0;
}
.ac-success-banner--show {
  transform: translateX(-50%) translateY(0);
  opacity:   1;
}
@media(max-width:480px){
  .ac-success-banner { font-size:14px; padding:13px 20px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   LEARN MORE MODAL
   ════════════════════════════════════════════════════════════════════════════ */
#ac-info-modal .ac-modal { max-width:540px !important; padding:0 !important; }
#ac-info-close {
  top:        12px !important;
  right:      12px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
}
.ac-info-photo-wrap {
  width:         100%;
  height:        200px;
  overflow:      hidden;
  border-radius: 20px 20px 0 0;
  background:    linear-gradient(135deg,#ede9fe,#dbeafe);
  flex-shrink:   0;
}
.ac-info-photo {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: center top;
  display:         block;
}
.ac-info-photo-placeholder {
  width:           100%;
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           #6366f1;
}
.ac-info-content { padding:22px 24px 26px; }
@media(max-width:480px){
  .ac-info-content    { padding:18px 16px 22px; }
  .ac-info-photo-wrap { height:160px; }
}
.ac-info-name   { font-size:20px; font-weight:700; margin:0 0 4px; color:#111827; }
.ac-info-title  { font-size:13px; color:#6b7280; margin:0 0 14px; }
.ac-info-bio    { font-size:15px; line-height:1.8; color:#374151; }
.ac-info-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.ac-info-badge  {
  display:       flex;
  align-items:   center;
  gap:           6px;
  font-size:     13px;
  color:         #6b7280;
  background:    #f3f4f6;
  padding:       5px 12px;
  border-radius: 20px;
  font-weight:   500;
}

/* ════════════════════════════════════════════════════════════════════════════
   EMPTY / NO RESULTS
   ════════════════════════════════════════════════════════════════════════════ */
.ac-empty, .ac-no-results {
  text-align: center; color:#6b7280; font-size:16px; padding:40px; margin:0;
}

/* ── Booking Count Badge ──────────────────────────────────────────────────── */
.ac-booking-badge {
  position:      absolute;
  top:           10px;
  left:          10px;
  z-index:       10;
  min-width:     28px;
  height:        28px;
  padding:       0 7px;
  border-radius: 50px;
  background:    #ef4444;
  color:         #fff;
  font-size:     13px;
  font-weight:   700;
  line-height:   28px;
  text-align:    center;
  border:        2px solid #fff;
  cursor:        pointer;
  box-shadow:    0 2px 8px rgba(239,68,68,.45);
  transition:    transform .15s;
}
.ac-booking-badge:hover { transform: scale(1.12); }
@keyframes ac-blink {
  0%, 100% { opacity: 1; box-shadow: 0 2px 8px rgba(239,68,68,.45); }
  50%       { opacity: .65; box-shadow: 0 2px 18px rgba(239,68,68,.85); }
}
.ac-badge-blink { animation: ac-blink 1.2s ease-in-out infinite; }

/* ── PIN Modal ───────────────────────────────────────────────────────────── */
#ac-pin-modal .ac-modal {
  max-width: 400px !important;
  padding:   32px 28px 28px !important;
}
@media(max-width:440px){
  #ac-pin-modal .ac-modal { padding: 24px 16px 20px !important; }
}
.ac-pin-header {
  text-align:    center;
  margin-bottom: 22px;
  padding-right: 0 !important;
}
.ac-pin-lock-icon {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           64px;
  height:          64px;
  border-radius:   50%;
  background:      #fee2e2;
  color:           #ef4444;
  margin-bottom:   12px;
}
.ac-pin-title {
  font-size:   1.1rem;
  font-weight: 700;
  color:       #1f2937;
  margin:      0 0 4px;
}
.ac-pin-subtitle { font-size:.875rem; color:#6b7280; margin:0; }
.ac-pin-body     { display:flex; flex-direction:column; gap:14px; }
.ac-pin-input    { font-size:1.2rem !important; letter-spacing:.2em !important; text-align:center !important; }
.ac-pin-error {
  color:         #dc2626;
  font-size:     .85rem;
  background:    #fef2f2;
  border:        1px solid #fecaca;
  border-radius: 6px;
  padding:       8px 12px;
  margin:        0;
}
.ac-pin-submit { width:100% !important; justify-content:center !important; margin-top:4px; }

/* ── Confirmed Bookings Modal ────────────────────────────────────────────── */
#ac-bookings-modal .ac-modal {
  max-width:      700px !important;
  padding:        0 !important;
  display:        flex !important;
  flex-direction: column !important;
  max-height:     88vh !important;
  overflow:       hidden !important;
}
.ac-bookings-header {
  display:       flex;
  align-items:   center;
  gap:           14px;
  padding:       20px 20px 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink:   0;
}
#ac-bookings-modal #ac-bookings-close {
  top:   12px !important;
  right: 12px !important;
}
.ac-bookings-icon {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           44px;
  height:          44px;
  border-radius:   50%;
  background:      #dbeafe;
  color:           #2563eb;
  flex-shrink:     0;
}
.ac-bookings-title {
  font-size:   1rem;
  font-weight: 700;
  color:       #1f2937;
  margin:      0 0 2px;
}
.ac-bookings-subtitle { font-size:.8rem; color:#6b7280; margin:0; }
.ac-bookings-body {
  overflow-y: auto;
  flex:       1;
  padding:    14px 16px 18px;
  -webkit-overflow-scrolling: touch;
}
.ac-booking-row {
  border:        1px solid #e5e7eb;
  border-radius: 10px;
  padding:       12px 14px;
  margin-bottom: 10px;
  background:    #fff;
}
.ac-booking-row:last-child { margin-bottom:0; }
.ac-booking-row-header {
  display:       flex;
  align-items:   center;
  gap:           10px;
  margin-bottom: 10px;
  flex-wrap:     wrap;
}
.ac-booking-number {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           26px;
  height:          26px;
  border-radius:   50%;
  background:      #2563eb;
  color:           #fff;
  font-size:       12px;
  font-weight:     700;
  flex-shrink:     0;
}
.ac-booking-client-name { font-weight:600; color:#111827; font-size:.9rem; }
.ac-booking-status {
  margin-left:    auto;
  font-size:      .72rem;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding:        3px 8px;
  border-radius:  20px;
  background:     #dcfce7;
  color:          #16a34a;
}
.ac-booking-details {
  display:               grid;
  grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap:                   6px 14px;
}
.ac-booking-detail {
  display:     flex;
  align-items: center;
  gap:         7px;
  font-size:   .82rem;
  color:       #374151;
}
.ac-booking-detail svg { color:#9ca3af; flex-shrink:0; }
.ac-bookings-empty {
  text-align: center;
  padding:    40px 20px;
  color:      #9ca3af;
  font-size:  .95rem;
}

/* Next available date hint */
.ac-next-available {
  font-size:    14px;
  color:        #4f46e5;
  margin-top:   10px;
  padding:      10px 14px;
  background:   #eef2ff;
  border-radius: 8px;
  border-left:  3px solid #4f46e5;
}