/* 1. Register the two fonts */
@font-face {
  font-family: "Hilton Sans";
  src: url("../fonts/hilton_sans_regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Hilton Serif";
  src: url("../fonts/hilton_serif_regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* font-family: 'Hilton Sans', 'Segoe UI', sans-serif; */
/* font-family: 'Hilton Serif', serif; */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f0e8e6;
}

.logo {
  width: 100%;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

.logo img {
  width: 50.26%;
}

.hero,
.footer {
  width: 100%;
  position: relative;
}

.hero img,
.footer img {
  width: 100%;
  display: block;
}

.hero_text {
  width: 100%;
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0rem 10vw;
}

.hero_text h1 {
  font-family: "Hilton Serif", serif;
  color: #fff;
  font-size: 5vw;
  text-align: center;
  text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.info {
  width: 100%;
  padding: 5rem 7vw;
}

.info h1 {
  font-family: "Hilton Serif", serif;
  font-weight: lighter;
  font-size: 3vw;
  text-align: center;
}

.times {
  padding: 0rem 7vw;
  margin-bottom: 5rem;
}

.time_box {
  padding: 4rem;
  border: 5px solid black;
  text-align: center;
}

.time_box h2 {
  font-family: "Hilton Sans", "Segoe UI", sans-serif;
  font-size: 2.5vw;
  font-weight: lighter;
}

.time_box h2:first-child {
  margin-bottom: 4rem;
}

.gallery {
  display: flex;
  gap: 2rem;
}

.g1,
.g2,
.g3 {
  width: 100%;
}

.gallery img {
  width: 100%;
  display: block;
}

.form {
  padding: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.form_text {
  text-align: center;
}

.form_text h1 {
  font-family: "Hilton Serif", serif;
  font-size: 3vw;
}

.form_text h2 {
  font-family: "Hilton Sans", "Segoe UI", sans-serif;
  font-size: 2vw;
  font-weight: lighter;
}

form {
  width: 100%;
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input_group {
  width: 100%;
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
}

.input {
  width: 100%;
}

.input label {
  font-family: "Hilton Sans", "Segoe UI", sans-serif;
  display: inline-block;
  text-align: center;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  width: 100%;
  cursor: pointer;
}

.input input,
select {
  width: 100%;
  height: 70px;
  border: 3px solid #004080;
  font-size: 1.7rem;
  padding: 0rem 1.5rem;
  font-family: "Hilton Sans", "Segoe UI", sans-serif;
}

.input select {
  cursor: pointer;
}

.input input:focus,
select:focus {
  outline: none;
}

.cbx {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1.7rem;
  font-family: "Hilton Sans", "Segoe UI", sans-serif;
  font-weight: lighter;
}

.cbx a {
  color: #000;
}

.cbx input {
  position: absolute;
  left: -9999px;
}

.checkmark {
  width: 35px;
  height: 35px;
  border: 2px solid #004080;
  background: #fff;
  position: relative;
  transition: 0.2s;
}

.cbx input:checked + .checkmark {
  background: #004080;
}

.cbx input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  width: 8px;
  height: 14px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.cbx input:focus + .checkmark {
  box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.35);
}

.cbx input.invalid + .checkmark {
  border-color: #c00;
}

.submit_btn {
  border: 3px solid black;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  padding: 0.5rem 5rem;
  text-transform: uppercase;
  font-family: "Hilton Serif", serif;
  font-size: 3rem;
  margin-top: 3rem;
}

.footer_text {
  position: absolute;
  bottom: 1rem;
  left: 0;
  padding: 0rem 6rem;
  text-align: center;
  font-family: "Hilton Sans", "Segoe UI", sans-serif;
  color: #fff;
}

.footer_text h3 {
  font-size: 2rem;
  font-weight: lighter;
  text-shadow: 1px 1px 5px rgb(0, 0, 0);
}

.footer_text p {
  margin-top: 0.5rem;
  font-size: 1.6rem;
  text-shadow: 1px 1px 5px rgb(0, 0, 0);
}

.footer_text a {
  color: #fff;
  text-decoration: none;
}

@media screen and (max-width: 1560px) {
  .footer_text h3 {
    font-size: 1.5rem;
  }

  .footer_text p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 1040px) {
  .form_text h1 {
    font-size: 2.5rem;
  }

  .form_text h2 {
    font-size: 1.5rem;
  }

  form {
    margin-top: 3rem;
  }

  .input_group {
    width: 100%;
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
  }
}

@media screen and (max-width: 920px) {
  .info {
    padding: 2rem 3rem;
  }

  .times {
    padding: 0rem 3rem;
    margin-bottom: 3rem;
  }

  .time_box {
    padding: 2rem;
  }

  .time_box h2:first-child {
    margin-bottom: 2rem;
  }

  .gallery {
    gap: 1rem;
  }
}

@media screen and (max-width: 860px) {
  .form {
    padding: 3rem 5rem;
  }

  .form_text h1 {
    font-size: 2rem;
  }

  .form_text h2 {
    font-size: 1.3rem;
  }

  .input_group {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 710px) {
  .form {
    padding: 2rem;
  }

  .form_text h1 {
    font-size: 1.7rem;
  }

  .form_text h2 {
    font-size: 1.2rem;
  }

  .input_group {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .input label {
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }

  .input input,
  select {
    height: 50px;
    font-size: 1.2rem;
  }

  .cbx {
    gap: 1rem;
    font-size: 1rem;
  }

  .checkmark {
    width: 20px;
    height: 20px;
  }

  .cbx input:checked + .checkmark::after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border-width: 0 2px 2px 0;
  }

  .submit_btn {
    font-size: 1rem;
    margin-top: 1.5rem;
  }
}

@media screen and (max-width: 660px) {
  .footer_text {
    padding: 0rem 3rem;
  }
  .footer_text h3 {
    font-size: 1rem;
  }

  .footer_text p {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 560px) {
  .info {
    padding: 1rem 1.5rem;
  }

  .times {
    padding: 0rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .time_box {
    padding: 1rem;
  }

  .time_box h2:first-child {
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .gallery {
    flex-direction: column;
  }

  .footer_text {
    padding: 1rem;
  }

  .info h1 {
    font-size: 1.2rem;
  }

  .time_box h2 {
    font-size: 1rem;
  }
}

.submit_again_btn {
  border: 2px solid black;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  padding: 0.5rem 3rem;
  text-transform: uppercase;
  font-family: "Hilton Serif", serif;
  font-size: 1.2rem;
  margin-top: 3rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.error {
  color: #d32f2f;
  font-size: 1rem;
  display: block;
  margin-top: 0.5rem;
  font-family: "Hilton Sans", "Segoe UI", sans-serif;
}

input.invalid,
select.invalid {
  border: 2px solid #d32f2f;
}

/* =========================================================
   ✦  Server-side error box (appears above the form)
   ========================================================= */
.error-box {
  background: #ffecec;
  border: 1px solid #d32f2f;
  color: #d32f2f;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: "Hilton Sans", "Segoe UI", sans-serif;
}
.error-box ul {
  margin: 0 0 0 18px;
  padding: 0;
  list-style: disc;
}
.error-box ul li {
  margin-bottom: 0.5rem;
}
.error-box ul li:last-child {
  margin-bottom: 0rem;
}
