/* Booking Calendar Pro - Public Styles */

.bcp-wrapper {
  max-width: 860px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333;
}

.bcp-title {
  font-size: 1.6em;
  margin-bottom: 20px;
  font-weight: 600;
}

.bcp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 640px) {
  .bcp-layout { grid-template-columns: 1fr; }
}

/* Date inputs */
.bcp-date-inputs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.bcp-input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  flex: 1;
  min-width: 140px;
}

.bcp-input-group label {
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  margin-bottom: 6px;
}

.bcp-input-group input,
.bcp-input-group textarea,
.bcp-input-group select {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color .2s;
  background: #fff;
  color: #333;
}

.bcp-input-group input:focus,
.bcp-input-group textarea:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0,115,170,.1);
}

.bcp-date-input {
  cursor: pointer;
  background: #f9f9f9 !important;
}

/* Summary */
.bcp-summary {
  margin-top: 16px;
  background: #f0f8ff;
  border: 1px solid #c8e4f5;
  border-radius: 8px;
  padding: 14px 16px;
}

.bcp-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1em;
}

#bcp-price-total {
  font-weight: 700;
  font-size: 1.1em;
  color: #0073aa;
}

/* Submit button */
.bcp-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}

.bcp-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bcp-btn-primary:not(:disabled):hover {
  background: #005d8c;
}

/* Messages */
.bcp-message {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.95em;
}

.bcp-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.bcp-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Hint + footer */
.bcp-hint {
  font-size: 0.8em;
  color: #777;
  margin-top: 8px;
  text-align: center;
}

.bcp-footer-info {
  margin-top: 20px;
  font-size: 0.85em;
  color: #888;
  text-align: center;
}

.required { color: #e00; }

/* Flatpickr overrides */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  background: #ffeaea;
  color: #ccc;
  text-decoration: line-through;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #0073aa;
  border-color: #0073aa;
}

.flatpickr-day.inRange {
  background: rgba(0,115,170,.15);
  border-color: transparent;
}

/* -- Step indicators ------------------------------------------------------- */
.bcp-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.bcp-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88em;
  font-weight: 600;
  background: #f0f0f0;
  color: #999;
  transition: all .2s;
}

.bcp-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ccc;
  color: #fff;
  font-size: 0.85em;
}

.bcp-step.active {
  background: #0060a8;
  color: #fff;
}
.bcp-step.active span { background: rgba(255,255,255,.35); }

.bcp-step.completed {
  background: #e6f4ea;
  color: #2e7d32;
}
.bcp-step.completed span { background: #2e7d32; }

.bcp-step-arrow { color: #ccc; font-size: 1.4em; }

/* -- Payment summary bar --------------------------------------------------- */
.bcp-payment-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f7ff;
  border: 1px solid #c2ddf7;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 0.95em;
  color: #444;
  flex-wrap: wrap;
  gap: 8px;
}

#bcp-pay-summary-amount {
  font-size: 1.2em;
  color: #0060a8;
}

/* -- Payment sections ------------------------------------------------------ */
.bcp-section-title {
  font-size: 1.15em;
  margin-bottom: 16px;
  font-weight: 600;
}

.bcp-payment-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.bcp-payment-section-title {
  font-size: 1em;
  font-weight: 700;
  color: #333;
  margin: 0 0 14px;
}

/* -- E-wallet buttons ------------------------------------------------------ */
.bcp-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bcp-payment-method-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-align: left;
  width: 100%;
}

.bcp-payment-method-btn:hover:not(:disabled) {
  border-color: #0060a8;
  background: #f5f9ff;
}

.bcp-payment-method-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.bcp-payment-method-btn.loading  { opacity: 0.7; }

.bcp-pm-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3em; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.bcp-pm-gcash { background: #007BFF; }
.bcp-pm-maya  { background: #00C550; }
.bcp-pm-grab  { background: #00B14F; }

.bcp-pm-info { flex: 1; }
.bcp-pm-name { display: block; font-weight: 700; font-size: 1em; color: #222; }
.bcp-pm-desc { display: block; font-size: 0.82em; color: #777; margin-top: 2px; }
.bcp-pm-arrow { font-size: 1.4em; color: #bbb; }

.bcp-ewallet-note {
  font-size: 0.8em;
  color: #888;
  margin-top: 12px;
  margin-bottom: 0;
}

/* -- Bank accounts grid ---------------------------------------------------- */
.bcp-bank-intro { font-size: 0.9em; color: #555; margin-bottom: 14px; }

.bcp-bank-accounts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.bcp-bank-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
  background: #fafafa;
}

.bcp-bank-header {
  font-weight: 700;
  font-size: 1em;
  color: #0060a8;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.bcp-bank-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
  font-size: 0.88em;
}

.bcp-bank-label { color: #888; font-size: 0.82em; text-transform: uppercase; letter-spacing: .03em; }
.bcp-bank-val   { color: #222; font-weight: 600; margin-top: 1px; }

.bcp-copy-btn {
  background: #e8f0fe;
  border: none;
  color: #0060a8;
  font-size: 0.75em;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
}
.bcp-copy-btn:hover { background: #c5d8fb; }

/* -- Bank confirm form ----------------------------------------------------- */
.bcp-bank-confirm-form {
  border-top: 1px solid #eee;
  padding-top: 18px;
  margin-top: 4px;
}

.bcp-bank-confirm-title { margin-bottom: 12px; color: #333; }

/* -- Secondary button ------------------------------------------------------ */
.bcp-btn-secondary {
  background: none;
  border: 1px solid #ccc;
  color: #555;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.95em;
  cursor: pointer;
  margin-top: 12px;
  transition: border-color .2s;
}
.bcp-btn-secondary:hover { border-color: #888; color: #333; }

/* -- Confirmation box ------------------------------------------------------ */
.bcp-confirmation-box {
  padding: 10px 0;
}

.bcp-confirmation {
  text-align: center;
  padding: 40px 24px;
  border-radius: 12px;
  border: 1px solid;
}

.bcp-confirmation.bcp-confirmed {
  background: #f0fff4;
  border-color: #b2dfdb;
}

.bcp-confirmation.bcp-pending {
  background: #fffde7;
  border-color: #ffe082;
}

.bcp-conf-icon { font-size: 3em; margin-bottom: 12px; }
.bcp-confirmation h3 { font-size: 1.4em; margin: 0 0 10px; }
.bcp-confirmation p  { color: #555; margin: 0 0 8px; }
.bcp-conf-ref { font-size: 0.9em; color: #777; }

/*    Tax / Discount / Voucher breakdown                                     */

.bcp-section-label {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 8px;
}

.bcp-discount-section { margin-bottom: 14px; }
.bcp-discount-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: #333;
  margin-bottom: 6px;
  cursor: pointer;
}
.bcp-disc-badge {
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 700;
  padding: 1px 8px;
}
.bcp-disc-note { font-size: 0.78em; color: #999; }

.bcp-voucher-row { margin-bottom: 14px; }
.bcp-voucher-input-wrap { display: flex; gap: 8px; }
.bcp-voucher-input-wrap input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bcp-btn-sm { padding: 7px 14px; font-size: 0.85em; }

.bcp-price-breakdown {
  background: #f9fafb;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.88em;
}

.bcp-bd-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: #555;
}
.bcp-bd-discount { color: #2e7d32; font-weight: 500; }
.bcp-bd-tax      { color: #666; font-style: italic; }
.bcp-bd-subtotal {
  border-top: 1px dashed #ddd;
  margin-top: 4px;
  padding-top: 6px;
  font-weight: 600;
  color: #444;
}

.bcp-breakdown-total {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid #ddd;
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 700;
  font-size: 1.05em;
  color: #222;
}

/*    Unit / Room selector                                                    */

#bcp-units-section { margin-bottom: 16px; }

.bcp-units-header {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 10px;
}

.bcp-unit-card {
  display: flex;
  align-items: stretch;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: relative;
}
.bcp-unit-card:hover {
  border-color: #0060a8;
  box-shadow: 0 3px 12px rgba(0,96,168,.15);
}
.bcp-unit-card.selected {
  border-color: #0060a8;
  background: #f0f6ff;
  box-shadow: 0 3px 14px rgba(0,96,168,.18);
}
.bcp-unit-card.selected::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #0060a8;
  border-radius: 10px 0 0 10px;
}

.bcp-unit-check {
  display: flex;
  align-items: center;
  padding: 0 14px;
  flex-shrink: 0;
}
.bcp-unit-check input[type="checkbox"] {
  width: 20px; height: 20px;
  cursor: pointer;
  accent-color: #0060a8;
}

.bcp-unit-info {
  flex: 1;
  padding: 14px 14px 14px 0;
  cursor: pointer;
  min-width: 0;
}

.bcp-unit-name {
  display: block;
  font-weight: 700;
  font-size: 1em;
  color: #1a1a1a;
  margin-bottom: 3px;
}

.bcp-unit-desc {
  font-size: 0.83em;
  color: #777;
  margin: 0 0 8px;
  line-height: 1.4;
}

.bcp-unit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.bcp-unit-price {
  font-size: 1.2em;
  font-weight: 800;
  color: #0060a8;
}
.bcp-unit-price-label {
  font-size: 0.72em;
  font-weight: 400;
  color: #888;
  margin-left: 2px;
}

.bcp-unit-guests-badge {
  font-size: 0.78em;
  color: #666;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 2px 9px;
}

.bcp-unit-selected-badge {
  display: none;
  position: absolute;
  top: 10px; right: 12px;
  background: #0060a8;
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.bcp-unit-card.selected .bcp-unit-selected-badge { display: block; }

.bcp-units-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92em;
  font-weight: 700;
  color: #1a1a1a;
  padding: 10px 4px 2px;
  border-top: 1px dashed #ddd;
  margin-top: 6px;
}

/*    Currency Switcher                                                       */

.bcp-currency-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: #f7f9ff;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  font-size: 0.83em;
}

.bcp-currency-label {
  color: #666;
  font-weight: 600;
  white-space: nowrap;
}

.bcp-currency-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.bcp-cur-btn {
  padding: 4px 10px;
  border: 1px solid #c5d8f5;
  border-radius: 20px;
  background: #fff;
  color: #0060a8;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.bcp-cur-btn:hover  { background: #e8f0fe; border-color: #0060a8; }
.bcp-cur-btn.active { background: #0060a8; color: #fff; border-color: #0060a8; }

.bcp-cur-more {
  padding: 4px 8px;
  border: 1px solid #c5d8f5;
  border-radius: 20px;
  font-size: 0.85em;
  color: #0060a8;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.bcp-cur-more:focus { border-color: #0060a8; }

.bcp-currency-note {
  color: #f59e0b;
  font-size: 0.8em;
  font-style: italic;
}

.bcp-php-note {
  font-size: 0.78em;
  color: #999;
  font-weight: 400;
  margin-left: 4px;
}

/*    Payment step breakdown                                                  */

.bcp-payment-summary-breakdown {
  background: #f9fafb;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.88em;
}

.bcp-pay-currency-note {
  margin-top: 8px;
  font-size: 0.8em;
  color: #f59e0b;
  font-style: italic;
  text-align: center;
}

/*    Auto-applied promo voucher                                             */
.bcp-promo-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.7em;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  margin-right: 4px;
  vertical-align: middle;
}
.bcp-bd-voucher {
  background: #f0fff4;
  border-radius: 4px;
  padding: 4px 6px !important;
  margin: 2px 0;
  font-weight: 600;
}

/* ── Discount ID Upload Widget ─────────────────────────────────────────────── */
.bcp-disc-badge-id {
  background: #e8f4ff;
  color: #1565c0;
  border: 1px solid #90caf9;
  font-size: 0.75em;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 600;
  vertical-align: middle;
}

.bcp-id-upload-wrap {
  margin: 10px 0 4px 22px;
  padding: 12px 14px;
  background: #f0f7ff;
  border: 1px dashed #90caf9;
  border-radius: 8px;
}

.bcp-id-upload-label {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  color: #1565c0;
  margin-bottom: 6px;
}

.bcp-id-upload-hint {
  display: block;
  font-weight: 400;
  font-size: 0.82em;
  color: #666;
  margin-top: 2px;
}

.bcp-id-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bcp-id-file-input {
  font-size: 0.85em;
}

.bcp-id-upload-status {
  font-size: 0.82em;
  font-style: italic;
}
