/* =========================
   NDC Property Booking UI
   Clean version (no !important)
   ========================= */

:root{
  --ndcPbCard:#ffffff;
  --ndcPbText:#0f172a;
  --ndcPbMuted:#64748b;
  --ndcPbBorder:#e5e7eb;
  --ndcPbBtn:#E0B870;
  --ndcPbRadius:22px;
  --ndcPbFont: "Arimo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* unified input sizing */
  --ndcPbFieldH:44px;
  --ndcPbFieldPadX:14px;
  --ndcPbFieldRadius:14px;
  --ndcPbFieldFont:15px;
}

/* ===== Card ===== */
.ndc-pb-card{
  background: var(--ndcPbCard);
  border: 1px solid var(--ndcPbBorder);
  border-radius: var(--ndcPbRadius);
  padding: 18px;
  box-shadow: 0 16px 40px rgba(2,6,23,.12);
  font-family: var(--ndcPbFont);
  width: 100%;
  box-sizing: border-box;
}

/* ===== Title / Subtitle ===== */
.ndc-pb-title{
  margin: 0 0 6px 0;
  color: var(--ndcPbText);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  text-align: center;
}

.ndc-pb-sub{
  color: var(--ndcPbMuted);
  font-size: 16px;
  margin: 0 0 12px 0;
  text-align: center;
}

/* ===== Form wrapper ===== */
.ndc-pb-form{
  padding: 12px;
  box-sizing: border-box;
}

/* ===== Fields ===== */
.ndc-pb-field{
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.ndc-pb-field label{
  display:block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ndcPbText);
  margin-bottom: 8px;
}

/* Unified input/select styles */
.ndc-pb-input,
.ndc-pb-select,
.ndc-pb-date,
.ndc-pb-guests,
.ndc-pb-field input[type="text"],
.ndc-pb-field input[type="tel"],
.ndc-pb-field input[type="email"]{
  display:block;
  width:100%;
  height: var(--ndcPbFieldH);
  min-height: var(--ndcPbFieldH);
  padding: 0 var(--ndcPbFieldPadX);
  border: 1px solid var(--ndcPbBorder);
  border-radius: var(--ndcPbFieldRadius);
  outline: none;
  font-size: var(--ndcPbFieldFont);
  color: var(--ndcPbText);
  background: #f3f4f6;
  box-sizing: border-box;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.ndc-pb-select{
  padding-right: 40px;
  background: #ffffff;
}

.ndc-pb-date{
  text-align: center;
  background: #ffffff;
}

/* Focus */
.ndc-pb-input:focus,
.ndc-pb-select:focus,
.ndc-pb-date:focus,
.ndc-pb-guests:focus,
.ndc-pb-field input[type="text"]:focus,
.ndc-pb-field input[type="tel"]:focus,
.ndc-pb-field input[type="email"]:focus{
  border-color: rgba(224,184,112,.9);
  box-shadow: 0 0 0 3px rgba(224,184,112,.25);
}

/* ===== 2-column grid ===== */
.ndc-pb-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== Guests hint (now below input, no overlay issues) ===== */
.ndc-pb-guest-wrap{ position: relative; }

.ndc-pb-maxhint{
  position: static;
  display:block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ndcPbMuted);
}

/* ===== Memo ===== */
.ndc-pb-memo{
  clear: both;
  border: 1px solid var(--ndcPbBorder);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fafafa;
  margin: 10px 0 12px 0;
  position: relative;
  z-index: 1;
}

.ndc-pb-memo-item{
  color: #111827;
  font-size: 14px;
  margin: 6px 0;
}

/* ===== Buttons ===== */
.ndc-pb-btn{
  width:100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--ndcPbBtn);
  color:#fff;
  font-size: 17px;
  font-weight: 700;
  cursor:pointer;
  box-shadow: 0 18px 30px rgba(224,184,112,.35);
  margin-top: 0;
}

.ndc-pb-btn:hover{
  background:#000;
  filter:none;
}

.ndc-pb-btn:disabled{
  opacity:.7;
  cursor:not-allowed;
}

/* Back button */
.ndc-pb-back{
  height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ndcPbBorder);
  background: #fff;
  color: var(--ndcPbText);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ndc-pb-back:hover{
  background:#000;
  border-color:#000;
  color:#fff;
}

/* Hover black for any other buttons inside the booking card */
.ndc-pb-card button:hover:not(:disabled){
  background:#000;
  color:#fff;
}

/* ===== Under button ===== */
.ndc-pb-under-btn{
  text-align:center;
  color: var(--ndcPbMuted);
  font-size: 13px;
  margin-top: 8px;
}

/* ===== Messages ===== */
.ndc-pb-msg{
  margin-top: 12px;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  display:none;
  position: relative;
  z-index: 1;
}

.ndc-pb-msg.is-success{
  display:block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ndc-pb-msg.is-error{
  display:block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== Step UI ===== */
.ndc-pb-step{ display:none; }
.ndc-pb-step.is-active{ display:block; }

.ndc-pb-steps{ margin-bottom: 10px; }

.ndc-pb-step-indicator{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:center;
}

.ndc-pb-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#e5e7eb;
}

.ndc-pb-dot.is-active{
  background: var(--ndcPbBtn);
}

.ndc-pb-dot.is-done{
  background: rgba(224,184,112,.55);
}

.ndc-pb-line{
  flex:0 0 34px;
  height:2px;
  background:#e5e7eb;
  border-radius:999px;
}

.ndc-pb-step-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.ndc-pb-step-actions .ndc-pb-submit{
  flex: 1;
}

/* Link button */
.ndc-pb-link{
  background: transparent;
  border: 0;
  padding: 0;
  color: #0f172a;
  font-weight: 700;
  cursor:pointer;
  text-decoration: underline;
}

/* ===== Datepicker disabled day styling ===== */
.ui-datepicker td.ndc-pb-day-disabled a,
.ui-datepicker td.ndc-pb-day-disabled span{
  background: #111827;
  color: #fff;
  border-radius: 12px;
  pointer-events: none;
  cursor: not-allowed;
}

/* ===== Responsive ===== */
@media (max-width: 768px){
  .ndc-pb-card{
    margin: 15px;
    max-width: none;
  }
}

@media (max-width: 640px){
  .ndc-pb-card{
    margin: 0;
    border-radius: 16px;
    padding: 14px;
  }
  .ndc-pb-form{ padding: 10px; }
  .ndc-pb-title{ font-size: 26px; }
  .ndc-pb-grid2{ grid-template-columns: 1fr; }
}

@media (max-width: 430px){
  .ndc-pb-title{ font-size: 22px; }
}



/* ===== Summary & Payment ===== */
.ndc-pb-summary{
  border: 1px solid var(--ndcPbBorder);
  border-radius: 16px;
  padding: 12px 14px;
  background: #ffffff;
  margin: 10px 0 12px 0;
}

.ndc-pb-summary-title{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ndcPbText);
  margin-bottom: 10px;
}

.ndc-pb-summary-row,
.ndc-pb-summary-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 6px 0;
  border-top: 1px dashed rgba(229,231,235,.9);
}

.ndc-pb-summary-row:first-of-type{
  border-top: none;
}

.ndc-pb-summary-row span{
  color: var(--ndcPbMuted);
  font-size: 14px;
}
.ndc-pb-summary-row strong{
  color: var(--ndcPbText);
  font-size: 14px;
  font-weight: 800;
}

.ndc-pb-summary-total{
  border-top: 1px solid var(--ndcPbBorder);
  margin-top: 8px;
  padding-top: 10px;
}
.ndc-pb-summary-total span{
  color: var(--ndcPbText);
  font-weight: 800;
}
.ndc-pb-summary-total strong{
  font-size: 16px;
}

.ndc-pb-payment{
  border: 1px solid var(--ndcPbBorder);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fafafa;
  margin: 10px 0 12px 0;
}

.ndc-pb-payment-title{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ndcPbText);
  margin-bottom: 6px;
}

.ndc-pb-payment-sub{
  color: var(--ndcPbMuted);
  font-size: 13px;
  margin-bottom: 12px;
}

.ndc-pb-pay-methods{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ndc-pb-radio{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border: 1px solid var(--ndcPbBorder);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  user-select:none;
}
.ndc-pb-radio input{
  margin:0;
}

.ndc-pb-qr-wrap{
  margin-top: 8px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.ndc-pb-qr{
  display:none;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid var(--ndcPbBorder);
  background:#fff;
  width: 100%;
  max-width: 260px; /* keep QR smaller so the modal isn't too tall */
}

.ndc-pb-qr.is-active{
  display:block;
}

.ndc-pb-qr img{
  width:100%;
  height:auto;
  display:block;
}

@media (max-width: 640px){
  .ndc-pb-qr{ max-width: 220px; }
}

.ndc-pb-payment-note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--ndcPbBorder);
  color: var(--ndcPbText);
  font-size: 13px;
}

.ndc-pb-help{
  display:block;
  margin-top: 6px;
  color: var(--ndcPbMuted);
  font-size: 12px;
}

.ndc-pb-file{
  display:block;
  width:100%;
  padding: 10px 12px;
  border: 1px solid var(--ndcPbBorder);
  border-radius: var(--ndcPbFieldRadius);
  background: #ffffff;
  box-sizing:border-box;
}

/* make payment fields stack on mobile */
@media (max-width: 640px){
  .ndc-pb-payment-fields{ grid-template-columns: 1fr; }
  .ndc-pb-qr{ max-width: 220px; }
}
