/* ==============================
   PSMLS Leads / Detail Sidebar
   ============================== */

.psmls-lead-stack{
  display:grid;
  gap:14px;
}

.psmls-lead-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px;
  background: var(--psmls-card-bg, #fff);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

@media (hover:hover){
  .psmls-lead-card:hover{
    border-color: rgba(0,0,0,.12);
    box-shadow: 0 10px 26px rgba(0,0,0,.10);
    transform: translateY(-1px);
  }
}

.psmls-lead-card--schedule{
  border-color: rgba(0,0,0,.14);
}

.psmls-lead-title{
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 14px;
  text-transform: uppercase;
  opacity: .9;
}

.psmls-lead-subtitle{
  margin: 0 0 12px;
  font-size: 13px;
  opacity: .72;
  line-height: 1.45;
}

.psmls-schedule-mini{
  display:grid;
  gap:12px;
}

.psmls-field{
  gap: 6px;
  margin-bottom: 12px;
}

.psmls-field label{
  display:block;
  font-size: 12px;
  opacity: .75;
  margin-bottom: 6px;
}

.psmls-field input,
.psmls-field textarea,
.psmls-field select{
  width: 100%;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: inherit;
  transition: box-shadow .12s ease, border-color .12s ease;
}

.psmls-field textarea{
  min-height: 96px;
  resize: vertical;
}

.psmls-field input:focus,
.psmls-field textarea:focus,
.psmls-field select:focus{
  outline: none;
  border-color: rgba(0,0,0,.28);
  box-shadow: 0 0 0 3px rgba(17,24,39,.12);
}

.psmls-form-row{
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.psmls-form-row--schedule{
  align-items:end;
}

@media (max-width:768px){
  .psmls-form-row{
    grid-template-columns: 1fr;
  }
}

.psmls-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

@media (hover:hover){
  .psmls-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,.10);
    border-color: rgba(0,0,0,.22);
  }
}

.psmls-btn--primary{
  border-color: rgba(0,0,0,.85);
  background:#111827;
  color:#fff;
}

.psmls-btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.psmls-chat-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width:768px){
  .psmls-chat-row{
    grid-template-columns: 1fr;
  }
}

.psmls-wechat-box{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.02);
}

.psmls-wechat-id{
  font-weight: 900;
  letter-spacing: -0.01em;
}

.psmls-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  padding: 18px;
}

.psmls-modal.is-open{
  display:flex;
}

.psmls-modal__panel{
  width: min(520px, 96vw);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  position: relative;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.psmls-modal__panel--schedule{
  width: min(640px, 96vw);
}

.psmls-modal__close{
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: rgba(0,0,0,.06);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 20px;
}

.psmls-modal__h{
  font-weight: 1000;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.psmls-modal__p{
  margin: 0 0 10px;
  opacity: .85;
}
/* ==============================
   Houzez-style schedule polish
   ============================== */

.psmls-lead-card--schedule{
  border: 1px solid rgba(17,24,39,.12);
  box-shadow: 0 10px 30px rgba(17,24,39,.06);
}

.psmls-lead-card--schedule .psmls-lead-title{
  font-size: 13px;
  letter-spacing: .08em;
}

.psmls-lead-card--schedule .psmls-lead-subtitle{
  margin-bottom: 14px;
}

.psmls-schedule-mini{
  gap: 14px;
}

/* Make date + periods sit in a premium two-column layout */
.psmls-form-row--schedule{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 768px){
  .psmls-form-row--schedule{
    grid-template-columns: 1fr;
  }
}

.psmls-lead-card--schedule .psmls-field{
  margin-bottom: 0;
}

/* Date field wrapper fills full column height */
.psmls-lead-card--schedule .psmls-field:first-child{
  display: flex;
  flex-direction: column;
}

/* Let you override easily on-page later */
.psmls-lead-card--schedule .psmls-field input[type="date"],
.psmls-period-pill{
  background: #fff;
}

/* Right side stack */
.psmls-period-pills{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* All equal size */
.psmls-period-pill{
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid rgba(17,24,39,.12);
  background: #fff;
  color: #111827;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all .14s ease;
  box-sizing: border-box;
}

@media (hover:hover){
  .psmls-period-pill:hover{
    border-color: rgba(17,24,39,.28);
    background: #fff;
    box-shadow: 0 6px 16px rgba(17,24,39,.08);
    transform: translateY(-1px);
  }
}

/* MUCH clearer selected state */
.psmls-period-pill.is-active{
  background: #111827;
  color: #fff;
  border-color: #111827;
  box-shadow: 0 10px 24px rgba(17,24,39,.22);
}

/* Stronger contrast if focused via keyboard */
.psmls-period-pill:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(17,24,39,.14);
}

/* Make button feel premium too */
.psmls-lead-card--schedule .psmls-btn--primary{
  min-height: 48px;
  font-weight: 700;
  border-radius: 12px;
}

/* Modal polish */
.psmls-modal__panel--schedule{
  width: min(640px, 96vw);
  padding: 22px;
  border-radius: 18px;
}

.psmls-modal__panel--schedule .psmls-modal__h{
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.15;
}

.psmls-modal__panel--schedule .psmls-modal__p{
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.psmls-modal__panel--schedule form{
  margin-top: 4px;
}

.psmls-modal__panel--schedule .psmls-form-row{
  gap: 12px;
}

.psmls-modal__panel--schedule .psmls-field input,
.psmls-modal__panel--schedule .psmls-field textarea{
  min-height: 48px;
}

.psmls-modal__panel--schedule .psmls-field textarea{
  min-height: 110px;
}

.psmls-modal__panel--schedule .psmls-btn--primary{
  min-height: 50px;
  font-weight: 700;
}
/* ==============================
   Custom Houzez-like date shell
   ============================== */

.psmls-lead-card--schedule .psmls-field{
  position: relative;
}

/* Real date input stays functional but visually hidden */
.psmls-date-native{
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Visible custom control */
.psmls-date-shell{
  width: 100%;
  min-height: 164px;
  border: 1px solid rgba(17,24,39,.12);
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  cursor: pointer;
  transition: all .14s ease;
  box-sizing: border-box;
}

@media (hover:hover){
  .psmls-date-shell:hover{
    border-color: rgba(17,24,39,.28);
    box-shadow: 0 8px 20px rgba(17,24,39,.08);
    transform: translateY(-1px);
  }
}

.psmls-date-shell:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(17,24,39,.14);
}

.psmls-date-shell__icon{
  font-size: 34px;
  line-height: 1;
}

.psmls-date-shell__text{
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.psmls-date-shell.has-value{
  border-color: #111827;
  box-shadow: 0 10px 24px rgba(17,24,39,.10);
}

.psmls-date-shell.has-value .psmls-date-shell__text{
  color: #111827;
}

.psmls-date-shell__helper{
  font-size: 12px;
  line-height: 1.3;
  color: rgba(17,24,39,.55);
  text-align: center;
  opacity: 0.8;
}

.psmls-date-shell.is-open{
  border-color: rgba(17,24,39,.32);
  box-shadow: 0 0 0 3px rgba(17,24,39,.12);
}

.psmls-date-shell.has-value .psmls-date-shell__helper{
  display: none;
}
.psmls-lead-stack,
.psmls-lead-card,
.psmls-lead-card *{
  box-sizing: border-box;
}

.psmls-lead-card{
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.psmls-schedule-mini,
.psmls-form-row,
.psmls-period-pills,
.psmls-chat-row,
.psmls-field{
  min-width: 0;
  max-width: 100%;
}

.psmls-form-row > *,
.psmls-chat-row > *{
  min-width: 0;
}

.psmls-field input,
.psmls-field textarea,
.psmls-field select,
.psmls-btn,
.psmls-period-pill,
.psmls-date-shell{
  max-width: 100%;
}