/* 🌤️ Fancy Hostel Booking Form */
.hbr-container {
  max-width: 650px;
  margin: 50px auto;
  background: linear-gradient(180deg, #f9fbff 0%, #e6f2ff 100%);
  padding: 40px 45px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 80, 180, 0.15);
  font-family: "Poppins", sans-serif;
  color: #003366;
  transition: all 0.3s ease;
}

.hbr-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 80, 180, 0.2);
}

.hbr-container h2 {
  text-align: center;
  color: #004c99;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
  font-size: 26px;
  font-weight: 700;
}

/* 🌿 Form Fields */
.hbr-container label {
  display: block;
  font-weight: 600;
  color: #004080;
  margin-bottom: 8px;
  margin-top: 15px;
}

.hbr-container input,
.hbr-container select,
.hbr-container textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #cce0ff;
  border-radius: 12px;
  font-size: 15px;
  background-color: #ffffff;
  color: #003366;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.hbr-container input:focus,
.hbr-container select:focus,
.hbr-container textarea:focus {
  border-color: #3399ff;
  box-shadow: 0 0 6px rgba(0, 153, 255, 0.3);
  outline: none;
  background: #f0f8ff;
}

/* 💸 Total and Days Display */
#hbr_days,
#hbr_total {
  margin-top: 12px;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 600;
  text-align: right;
  background: #f5fff8;
  color: #006600;
  box-shadow: inset 0 1px 4px rgba(0, 150, 0, 0.1);
}

#hbr_total {
  font-size: 18px;
  color: #009933;
}

/* 💰 Payment Section */
#hbrPaymentSection {
  margin-top: 25px;
  background: #f0f7ff;
  padding: 20px;
  border-radius: 15px;
  border: 1.5px solid #d6e6ff;
}

#hbrPaymentSection p {
  color: #004d99;
  font-weight: 500;
  margin-bottom: 10px;
}

/* 🪙 Proceed + Submit Buttons */
#hbrProceed,
.hbr-container button[type="submit"] {
  display: inline-block;
  width: 100%;
  margin-top: 25px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(90deg, #0099ff 0%, #007bff 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#hbrProceed:hover,
.hbr-container button[type="submit"]:hover {
  background: linear-gradient(90deg, #007bff 0%, #0066cc 100%);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

/* 🌊 Button Loading Animation */
#hbrProceed.loading {
  pointer-events: none;
  background: linear-gradient(90deg, #66b3ff 0%, #3399ff 100%);
  color: transparent;
}

#hbrProceed.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ✅ File Upload Styling */
input[type="file"] {
  border: 2px dashed #99ccff;
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: #3399ff;
  background: #f0faff;
}

/* 📱 Responsive Design */
@media (max-width: 600px) {
  .hbr-container {
    padding: 25px;
    border-radius: 15px;
  }

  .hbr-container h2 {
    font-size: 22px;
  }

  #hbr_days,
  #hbr_total {
    font-size: 15px;
    text-align: left;
  }

  #hbrProceed {
    font-size: 15px;
    padding: 12px 0;
  }
}


#hbr-bunk-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(50px,1fr));
  gap:8px;
  margin-top:15px;
}
.bunk {
  padding:10px;
  text-align:center;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
}
.bunk.free {
  background:#00a85a;
  color:#fff;
}
.bunk.booked {
  background:#d62f2f;
  color:#fff;
  cursor:not-allowed;
}

