/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Epunda Slab', serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  overflow-x: hidden;
}

/* === MAIN WRAPPER === */
.booking-container {
  position: relative;
  top: 30px;
  padding: 20px 40px;
  width: 100%;
  padding-bottom: 60px;
}

/* === FORM CONTAINER (overlay) === */

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 22px;
  color: black;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
  color: black;
}


/* #booking-form-container {
  position: fixed;
  margin: 5%;
  top: 80px;
  z-index: 10;
  width: 90%;
  height: 70%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  padding: 25px 30px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
} */

#booking-form-container{
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: max-content;
    background: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    overflow-y: auto;
}

.booking-form-overlay{
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-form{
    padding: 20px;
}

/* === FORM ELEMENTS === */
.booking-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #006400;
  font-weight: 600;
}

.booking-form .safariBookingForm {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
}

.safariBookingForm .formgroup{
    width: 100%;
    padding: 10px;
    margin: 0 5%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.safariBookingForm .formgroup .formfield{
    width: 30%;
    display: flex;
    flex-direction: column;
}

.safariBookingForm .formbtn{
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.booking-form label {
  font-weight: bold;
  color: #fff;
  font-size: 1rem;
}

.booking-form input,
.booking-form select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  background-color: rgba(0, 0, 0, 0.6);
}

.booking-form input:focus,
.booking-form select:focus {
  border-color: #228b22;
  box-shadow: 0 0 4px rgba(34, 139, 34, 0.3);
  outline: none;
}

.booking-form button {
  background-color: #228b22;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.booking-form button:hover {
  background-color: #429642;
  color: #fff;
}

/* === BOOKINGS GRID BELOW FORM === */
.booking-container {
    width: 100%;
    margin-top: 80px; /* pushes cards below floating form */
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    background-color: #ccc;
}



.safari-card {
    width: 80%;
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 20px 50px;
}

.safari-card .duration{

    background-color: #228b22;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.safariimage{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}
.safari-card img {
  flex: 0 0 30%;
  width: 300px;
  height: 300px;
  border-radius: 15px;
  object-fit: calc(100%, 100%);
}

.safari-content {
  padding: 20px;
}

.safari-content h3 {
  color: #006400;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.safari-content p {
  color: #555;
  line-height: 1.5;
  font-size: 0.95rem;
}

.safari-content .book-now-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background-color: #228b22;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.safari-content .book-now-btn:hover {
  background-color: #1b6e1b;
}

.safari-content .more-details-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background-color: #ffa500;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.safari-content .more-details-btn:hover {
  background-color: #cc8400;
}


/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 992px) {
  #booking-form-container {
    top: 100px;
    width: 100%;
  }

  .booking-container {
    margin-top: 80px;
    padding: 20px 30px;
  }
}

@media (max-width: 778px) {
  #booking-form-container {
    position: absolute;
    transform: none;
    width: 100%;
    height: 100vh;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  }

  .booking-container {
    margin-top: 80px;
  }

  .booking-form {
    width: 100%;
    padding: 20px;
  }

  .booking-form .safariBookingForm {
    flex-direction: column;
    gap: 15px;
  }
    .safariBookingForm .formgroup{
        flex-direction: column;
        gap: 15px;
        margin: 0 ;
    }
    .safariBookingForm .formgroup .formfield{
        width: 100%;
    }

  .booking-form h2 {
    font-size: 1.4rem;
  }

  .booking-form input,
  .booking-form select {
    font-size: 0.95rem;
  }

  .safariBookingForm .formbtn{
    flex-direction: column;
    gap: 10px;
  }

  .booking-form button {
    width: 100%;
    font-size: 1rem;
  }

  .safari-card {
    width: 100%;
    padding: 10px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .safari-card .safari-image {
    width: 300px;
    height: 200px;
    padding: 10px 10px;
    margin-bottom: 15px;
  }

  .safari-content {
    padding: 10px;
    text-align:start;
  }
}
