.mbf-form {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.mbf-card {
  background: #fff;
  padding: 30px;
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.mbf-price {
  font-size: 28px;
  font-weight: bold;
}

.mbf-card small {
  font-size: 14px;
}

.mbf-card label {
  text-align: left;
  display: block;
  margin-top: 15px;
  font-weight: 600;
  font-size: 14px;
}

.mbf-card input,
.mbf-card select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.mbf-button {
  margin-top: 20px;
  width: 100%;
  background-color: #00c170;
  border: none;
  padding: 15px;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.mbf-button:hover {
  background-color: rgb(11, 140, 82);
}

.mbf-minimum,
.mbf-payment-info {
  margin-top: 10px;
  font-size: 12px;
  color: gray;
}

.mbf-total {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
}

.mbf-dates {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.mbf-dates label {
  display: block;
  width: 100%;
  font-weight: 600;
  font-size: 14px;
}

.mbf-dates input {
  width: 100%;
  padding: 8px;
  border: 1px solid #008080;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

.mbf-card textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  min-height: 80px;
}

/* Ensure date fields wrapper has relative positioning */
.mbf-dates {
  position: relative;
}

/* Guest Selector Styles */
.mbf-guest-trigger {
  position: relative;
  margin-top: 5px;
  margin-right: 18px;
}

.mbf-field {
  margin-right: 18px;
}

.mbf-guest-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.mbf-guest-selector {
  display: none;
  position: absolute;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 1000;
  margin-top: 5px;
}

.mbf-guest-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.mbf-guest-option:last-child {
  border-bottom: none;
}

.mbf-counter button {
  background: none;
  border: 1px solid #00c170;
  color: #00c170;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  margin: 0 8px;
}

.mbf-counter button:hover {
  background: #00c170;
  color: white;
}

.mbf-counter span {
  min-width: 20px;
  text-align: center;
}

.mbf-guest-footer {
  margin-top: 15px;
  text-align: right;
}

.mbf-guest-footer small {
  display: block;
  text-align: left;
  color: #666;
  margin-bottom: 10px;
}

/* Error states */
.mbf-error {
  position: relative;
}

.mbf-error input,
.mbf-error .mbf-guest-input {
  border-color: #ff4444 !important;
  background: #fff6f6;
}

.mbf-error::after {
  content: "This field is required";
  color: #ff4444;
  font-size: 12px;
  position: absolute;
  bottom: -18px;
  left: 0;
}

.mbf-error.email-error::after {
  content: "Valid email required";
}

.required {
  color: #ff4444;
  font-size: 0.8em;
}

.mbf-field.mbf-error input {
  border-color: #ff4444 !important;
  background: #fff6f6;
}

.mbf-field.mbf-error::after {
  content: attr(data-error);
  color: #ff4444;
  font-size: 12px;
  position: absolute;
  bottom: -18px;
  left: 0;
}

.mbf-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mbf-dates-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

#checkin,
#checkout {
  text-align: left;
}

.mbf-dates-row label {
  flex: 1;
  margin: 0;
  text-align: left;
}

.mbf-dates-row input {
  flex: 1;
  width: 100%;
  margin: 0;
}

/* Update in style.css */
.mbf-guest-option > div:first-child {
  display: flex;
  flex-direction: column;
}

/* Ensure counter stays in row */
.mbf-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mbf-minimum,
.mbf-payment-info {
  font-size: 0.875rem !important;
  font-weight: 400;
}

/* Add this at the END of your style.css file */
.litepicker .day-item.locked {
  position: relative;
  text-decoration: line-through !important;
  color: #ff4444 !important;
  opacity: 0.6 !important;
}

.litepicker .day-item.locked::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #ff4444;
  transform: translateY(-50%);
}

.litepicker .day-item.locked .day-item-text {
  position: relative;
  z-index: 1;
}

/* Date Range Container Styles */
#date-ranges-container {
  margin-bottom: 20px;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

.date-range input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  flex: 1;
}

.date-range .delete-range {
  background: #ff4444;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.date-range .delete-range:hover {
  background: #cc0000;
}

#add-range {
  margin-bottom: 20px;
}

.notice pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 10px;
  border-radius: 3px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* style.css - Pixel-Perfect Mobile Calendar */
@media (max-width: 480px) {
  .litepicker {
    width: calc(100vw - 40px) !important; /* Adjusted for more margin */
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 12px 12px !important; /* More inner spacing */
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
    margin: 0 20px !important; /* More outer spacing */
    box-sizing: border-box !important;
  }

  .litepicker .container__months {
    width: 100% !important;
    gap: 6px !important;
  }

  .litepicker .month-item {
    width: 100% !important;
    padding: 0 1px !important;
  }

  .litepicker .day-item {
    width: calc(14.28% - 2px) !important; /* 7 columns with spacing */
    height: 44px !important;
    margin: 1px !important;
    font-size: 15px !important;
    line-height: 44px !important;
  }

  .litepicker .month-item-header {
    padding: 0 4px !important;
    margin-bottom: 8px !important;
  }

  .litepicker .month-item-name {
    font-size: 17px !important;
    margin: 0 8px !important;
  }

  .litepicker .button-previous-month,
  .litepicker .button-next-month {
    width: 32px !important;
    height: 32px !important;
    padding: 6px !important;
  }

  .litepicker .calendar-grid {
    padding: 0 2px !important;
  }

  .litepicker .calendar-weekdays-row {
    font-size: 13px !important;
    margin-bottom: 6px !important;
    padding: 0 2px !important;
  }
}
