/* Booking form */

.parallax-section {
  position: relative;
  background-image: url("../images/about-demo.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.booking-form {
  background-color: rgba(34, 34, 34, 0.9);
  color: var(--secondary-color);
  padding: 40px;
  width: 90%;
  max-width: 600px;
  border: 1px solid rgba(253, 224, 86, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  margin-top: 140px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.booking-form::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    #ff8a00,
    var(--secondary-color)
  );
  z-index: -1;
  background-size: 400%;
  border-radius: 12px;
  opacity: 0;
  transition: 0.5s;
  animation: animate 20s linear infinite;
}

.booking-form:hover::before {
  opacity: 0.2;
}

@keyframes animate {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 300% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.booking-form span {
  font-family: "Cinzel Decorative", cursive;
}

.booking-form h1 {
  font-size: 2.2em;
  margin-bottom: 5px;
  font-family: "Cinzel Decorative", cursive;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.booking-form h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 3px;
}

.booking-form p {
  font-size: 1em;
  margin-top: 0;
  margin-bottom: 30px;
  font-family: "Cinzel Decorative", cursive;
  text-align: center;
  color: rgba(253, 224, 86, 0.8);
}

.fg label {
  font-family: "Cinzel Decorative", cursive;
}

.form-group1,
.form-group2 {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
}

.form-group1 input,
.form-group2 input,
.form-group select,
.full-width-input {
  width: 100%;
  padding: 15px;
  background-color: rgba(17, 17, 17, 0.8);
  border: 1px solid rgba(253, 224, 86, 0.1);
  border-radius: 8px;
  outline: none;
  color: var(--secondary-color);
  margin-bottom: 10px;
  box-sizing: border-box;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group1 input:focus,
.form-group2 input:focus,
.form-group select:focus,
.full-width-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(253, 224, 86, 0.2);
  background-color: rgba(17, 17, 17, 0.9);
}

.form-group1 input::placeholder,
.form-group2 input::placeholder,
.full-width-input::placeholder {
  color: rgba(253, 224, 86, 0.5);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FDE056'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  padding-right: 40px;
}

.booking-button {
  background-color: var(--secondary-color);
  color: #111;
  padding: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  width: 100%;
  box-sizing: border-box;
  font-family: "Cinzel Decorative", cursive;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.booking-button:hover {
  background-color: #ffea7d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(253, 224, 86, 0.4);
}

.booking-button:active {
  transform: translateY(0);
}

.booking-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.booking-button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 15px;
  color: var(--secondary-color);
  font-family: "Cinzel Decorative", cursive;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label {
  top: -10px;
  left: 10px;
  font-size: 12px;
  background-color: rgba(34, 34, 34, 0.9);
  padding: 0 5px;
  color: var(--secondary-color);
}

.form-group1 input::placeholder,
.form-group2 input::placeholder,
.fg textarea::placeholder {
  color: var(--secondary-color);
}

@media (max-width: 1400px) {
  .parallax-section {
    min-height: 150vh;
  }
}

@media (max-width: 768px) {
  .booking-form {
    padding: 30px;
    width: 95%;
  }

  .booking-form h1 {
    font-size: 1.8em;
  }

  .form-group1 input,
  .form-group2 input,
  .form-group select,
  .full-width-input {
    padding: 12px;
    font-size: 14px;
  }
}

@media (min-width: 700px) {
  .form-group1,
  .form-group2 {
    flex-direction: row;
    gap: 14px;
  }
  .form-group1 .fg,
  .form-group2 .fg {
    flex: 1;
  }
}

/* Booking success */

.successMessage {
  display: none;
  color: #000;
  background-color: #fff9c4;
  border: 1px solid #ffec3d;
  width: 80%;
  padding: 15px;
  border-radius: 8px;
  margin: 0 auto;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 236, 61, 0.6);
  transition: all 0.3s ease;
}

.booking-button.loading {
  pointer-events: none;
  opacity: 0.7;
}
