/* =====================================================================
   SaralDesk – "Book Free Demo" popup additions.
   Layout, inputs, buttons and states come from sales-modal.css (.sd-*);
   this file only adds the date / time-slot picker and the summary.
   ===================================================================== */

/* Schedule block */
.sd-schedule {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
}

/* Native date picker, styled like the other inputs */
.sd-date { min-height: 48px; cursor: pointer; color-scheme: light; }
.sd-date::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.7; padding: 4px; border-radius: 6px; }
.sd-date::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--light2); }
.sd-date:invalid:not(:focus) { color: var(--text3); }

/* Time slots */
.sd-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sd-slots-empty {
  grid-column: 1 / -1;
  font-size: 13px; color: var(--text3);
  background: var(--white); border: 1.5px dashed rgba(27,43,107,0.18);
  border-radius: 10px; padding: 12px 14px; text-align: center;
}
.sd-slot { position: relative; }
.sd-slot input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.sd-slot label {
  display: flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 8px 6px;
  font-size: 13.5px; font-weight: 700; color: var(--navy);
  background: var(--white);
  border: 1.5px solid rgba(27,43,107,0.16); border-radius: 10px;
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.sd-slot label:hover { border-color: var(--navy); transform: translateY(-1px); }
.sd-slot input:focus-visible + label { outline: 3px solid rgba(232,25,75,0.55); outline-offset: 2px; }
.sd-slot input:checked + label {
  background: var(--navy); border-color: var(--navy); color: white;
  box-shadow: 0 6px 18px rgba(27,43,107,0.25);
}
.sd-field-time.has-error .sd-slots-empty,
.sd-field-time.has-error .sd-slot label { border-color: rgba(232,25,75,0.45); }

/* Selected schedule summary */
.sd-summary {
  display: flex; align-items: center; gap: 12px;
  background: rgba(34,197,94,0.07); border: 1px solid rgba(34,197,94,0.25);
  border-radius: 12px; padding: 12px 14px;
  font-size: 14px; color: var(--text); line-height: 1.5;
}
.sd-summary i { color: #16a34a; font-size: 18px; flex-shrink: 0; }
.sd-summary strong { color: var(--navy); }

/* Success message emphasises the booked slot */
.sd-modal-demo .sd-success-text strong { color: var(--navy); }
.sd-modal-demo .sd-success-text { margin-bottom: 8px; }
.sd-modal-demo .sd-success-sub { margin-bottom: 28px; }

@media (max-width: 600px) {
  .sd-schedule { padding: 14px 12px; }
  .sd-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-slot label { min-height: 44px; font-size: 13px; }
}
@media (max-width: 360px) {
  .sd-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
