/*--------------------------------------------------------------
# BOOKING SECTION (COMPACT VERSION)
--------------------------------------------------------------*/

.booking-section {
  padding: 50px 15px;
  background: #f8f9fa;
}

/* CONTAINER */
.booking-container {
  max-width: 950px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 25px;
  align-items: flex-start;
}

/*--------------------------------------------------------------
# LEFT: FORM
--------------------------------------------------------------*/

.booking-form {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(8, 111, 230, 0.318);
}

.booking-form h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.booking-form h4 {
  font-size: 15px;
  margin-top: 20px;
  margin-bottom: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  color: #333;
}

.booking-form label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin: 10px 0 4px;
  color: #666;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
  transition: 0.2s;
  background: #fff;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: #428bca;
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 139, 202, 0.1);
}

.booking-form textarea {
  height: 70px;
  resize: none;
}

/*--------------------------------------------------------------
# FORM LAYOUT
--------------------------------------------------------------*/

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.form-row > div {
  flex: 1;
}

/* ✅ 3-COLUMN (DATES + GUESTS) */
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 12px;
  margin-bottom: 12px;
}

/*--------------------------------------------------------------
# GUEST COUNTER
--------------------------------------------------------------*/

.guest-counter {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  height: 40px;
  background: #fff;
  max-width: 150px;
}

.guest-counter button {
  width: 40px;
  height: 100%;
  border: none;
  background: #f1f3f6;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.guest-counter button:hover {
  background: #428bca;
  color: #fff;
}

.guest-counter input {
  flex: 1;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  outline: none;
  background: #fff;
}

/* SMALL HINT TEXT */
.hint {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  display: block;
}

/*--------------------------------------------------------------
# BUTTON
--------------------------------------------------------------*/

.submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: #428bca;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(66, 139, 202, 0.3);
}

.submit-btn:hover {
  transform: translateY(-1px);
  background: #357ab8;
}

/*--------------------------------------------------------------
# RIGHT: INFO PANEL
--------------------------------------------------------------*/

.booking-info img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* CARD FINAL */
.info-card {
  background: #ffffff;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 12px;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.info-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card li {
  font-size: 13px;
  padding: 6px 0;
  color: #555;
}

/* FOOTER INFO */
.info-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  gap: 5px;
  flex-wrap: wrap;
}

/*--------------------------------------------------------------
# RESPONSIVE
--------------------------------------------------------------*/

@media (max-width: 768px) {
  .booking-container {
    grid-template-columns: 1fr;
  }

  .booking-info img {
    height: 200px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .guest-counter {
    max-width: 100%;
  }
}

/* Date */  
.date-block {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

.date-block strong {
  color: #111;
  display: inline-block;
  width: 110px;
}

/*--------------------------------------------------------------
# TERMS MODAL (UPGRADED DESIGN)
--------------------------------------------------------------*/

/* Checkbox container */
.terms-container {
  margin-top: 12px;
  display: flex;
  align-items: center;
}

.terms-label {
  display: inline-flex;
  align-items: center;   /* ✅ key fix */
  gap: 7px;
  font-size: 25px;
  color: #333;
  line-height: 1;        /* ✅ prevents vertical misalignment */
  cursor: pointer;
}

.terms-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  vertical-align: middle; /* extra safety */
  accent-color: #0686d5;
}

/* Overlay */
#termsModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px); /* ✨ modern glass effect */
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s ease;
}

/* Active state */
#termsModal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Box */
.terms-content {
  background: #ffffff;
  width: 460px;
  max-width: 92%;
  border-radius: 16px;
  position: relative;

  padding: 22px 20px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  transform: translateY(25px) scale(0.98);
  transition: 0.25s ease;
  overflow: hidden;
}

/* Animate in */
#termsModal.show .terms-content {
  transform: translateY(0) scale(1);
}

/* Header style */
.terms-content h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Close button */
.terms-close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  transition: 0.2s ease;
}

.terms-close:hover {
  color: #000;
  transform: scale(1.1);
}

/* Terms box */
.terms-box {
  margin-top: 12px;
  height: 200px;
  overflow-y: auto;
  padding: 12px;

  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;

  font-size: 13px;
  line-height: 1.6;
  color: #444;

  scroll-behavior: smooth;
}

/* Custom scrollbar */
.terms-box::-webkit-scrollbar {
  width: 6px;
}

.terms-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.terms-box::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Button */
.terms-btn {
  margin-top: 14px;
  width: 100%;
  padding: 10px;

  background: linear-gradient(135deg, #357ab8, #357ab8);
  color: #fff;

  border: none;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;
  cursor: pointer;

  transition: 0.2s ease;
}

.terms-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(53, 122, 184, 0.3);
}

/* --- Compact Calendar Styling --- */
.calendar-wrapper {
  background: #ffffff;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.calendar-header h3 {
  font-size: 1rem; /* Smaller title */
  margin-bottom: 0.25rem;
}

.calendar-header p {
  font-size: 0.75rem; /* Compact subtitle */
  color: #64748b;
  margin-bottom: 0.75rem;
}

/* Reduces overall padding and size of FullCalendar / custom calendar */
#calendar {
  max-width: 100%;
  font-size: 0.8rem; /* Scales text and buttons down */
}

/* If using FullCalendar.js: reduce header & cell padding */
#calendar .fc-toolbar-title {
  font-size: 0.95rem !important;
  font-weight: 600;
}

#calendar .fc-button {
  padding: 0.2rem 0.4rem !important;
  font-size: 0.75rem !important;
}

#calendar .fc-daygrid-day-frame {
  min-height: 38px !important; /* Makes calendar rows much shorter */
}

#calendar .fc-col-header-cell-cushion {
  padding: 2px !important;
  font-size: 0.75rem;
}

.booking-summary{

    background:#fff;

    border:1px solid #e8eef5;

    border-radius:18px;

    padding:25px;

    margin:25px 0;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

}

.booking-summary h4{

    color:#214a73;

    font-weight:700;

    margin-bottom:20px;

}

.summary-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 0;

    border-bottom:1px dashed #e2e8f0;

}

.summary-item:last-child{

    border-bottom:none;

}

.summary-item span{

    color:#666;

}

.summary-item strong{

    color:#214a73;

    font-size:17px;

    font-weight:700;

}

#summaryPrice{

    font-size:28px;

    color:#0d6efd;

}

#summaryDownpayment{

    color:#198754;

}.booking-summary{

    background:#fff;

    border:1px solid #e8eef5;

    border-radius:18px;

    padding:25px;

    margin:25px 0;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

}

.booking-summary h4{

    color:#214a73;

    font-weight:700;

    margin-bottom:20px;

}

.summary-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 0;

    border-bottom:1px dashed #e2e8f0;

}

.summary-item:last-child{

    border-bottom:none;

}

.summary-item span{

    color:#666;

}

.summary-item strong{

    color:#214a73;

    font-size:17px;

    font-weight:700;

}

#summaryPrice{

    font-size:28px;

    color:#0d6efd;

}

#summaryDownpayment{

    color:#198754;

}


/*--------------------------------------------------------------
# PAYMENT METHOD CARDS
--------------------------------------------------------------*/

.payment-notice {
  background-color: #eef6ff;
  border-left: 4px solid #428bca;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #1a4971;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Radio Button Card Wrapper */
.payment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f0f7ff;
  border: 2px solid #428bca;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(66, 139, 202, 0.15);
}

/* Custom radio input accent */
.payment-card input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #428bca;
  cursor: pointer;
}

/* Card Text Styling */
.payment-card-content {
  display: flex;
  flex-direction: column;
}

.payment-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.payment-sub {
  font-size: 11.5px;
  color: #64748b;
}

/* Instruction Box */
.payment-instruction-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 15px;
  font-size: 12.5px;
  color: #334155;
}

.payment-instruction-box p {
  margin: 0 0 6px 0;
}

.payment-instruction-box p:last-child {
  margin-bottom: 0;
}

.payment-instruction-box a {
  color: #0686d5;
  text-decoration: underline;
}