/* Importing all fonts from the fonts folder */

@font-face {
  font-family: "JoseCuervoAGAVEVectorRegular";
  src: url("../fonts/Jose Cuervo AGAVE Vector-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoAGAVEVectorShadow";
  src: url("../fonts/Jose Cuervo AGAVE Vector-Shadow.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoAGAVERegular";
  src: url("../fonts/Jose Cuervo AGAVE-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoAGAVEShadow";
  src: url("../fonts/Jose Cuervo AGAVE-Shadow.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoHIELOVectorRegular";
  src: url("../fonts/Jose Cuervo HIELO Vector-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoHIELOVectorShadow";
  src: url("../fonts/Jose Cuervo HIELO Vector-Shadow.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoLIMAVectorRegular";
  src: url("../fonts/Jose Cuervo LIMA Vector-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoLIMAVectorShadow";
  src: url("../fonts/Jose Cuervo LIMA Vector-Shadow.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoPEPINOVectorRegular";
  src: url("../fonts/Jose Cuervo PEPINO Vector-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoPEPINORRegular";
  src: url("../fonts/Jose Cuervo PEPINO-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoPINAVectorRegular";
  src: url("../fonts/Jose Cuervo PINA Vector-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoPINARegular";
  src: url("../fonts/Jose Cuervo PINA-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoPINAShadow";
  src: url("../fonts/Jose Cuervo PINA-Shadow.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoSALVectorBevel";
  src: url("../fonts/Jose Cuervo SAL Vector-Bevel.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoSALVectorDrop";
  src: url("../fonts/Jose Cuervo SAL Vector-Drop.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoSALVectorFace";
  src: url("../fonts/Jose Cuervo SAL Vector-Face.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoSALBevel";
  src: url("../fonts/Jose Cuervo SAL-Bevel.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoSALDrop";
  src: url("../fonts/Jose Cuervo SAL-Drop.ttf") format("truetype");
}

@font-face {
  font-family: "JoseCuervoSALFace";
  src: url("../fonts/Jose Cuervo SAL-Face.ttf") format("truetype");
}

* {
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-decoration: none;
  box-sizing: border-box;
  font-family: "JoseCuervoSALVectorFace";
}
.main_container {
  width: 100%;
  min-height: 100vh;
  display: none;
  background: url(../images/JCU-T-Stand-Poster.jpg) center / cover no-repeat
    #fff;
}
.main_logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.main_logo img {
  width: 1000px;
}
@media screen and (max-width: 1000px) {
  .main_logo img {
    width: 100%;
  }
}
.spinner {
  position: fixed;
  top: 0;
  left: 0;
  font-size: 20px;
  color: #000;
  display: none;
  z-index: 9999;
  font-family: "JoseCuervoLIMAVectorRegular";
  width: 100%;
  height: 100vh;
  background-color: #fff;
}
.spinner h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.age_container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.age_container_inner {
  max-width: 700px;
  height: 720px;
  position: relative;
  background-image: url("../images/JCU-T-Stand-Poster.jpg");
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1rem;
  text-align: center;
}
.age_container_logo {
  position: absolute;
  top: 50px;
}
.age_container_logo img {
  width: 200px;
}
.age_container_verify {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}
.age_container_verify p {
  font-size: 0.9rem;
  color: #0c4362;
}
.age_container_verify h1 {
  font-size: 1.7rem;
  margin: 0.5rem 0rem;
  color: #0c4362;
}
.age_container_inner .ques {
  font-size: 1rem;
  color: #0c4362;
}
.age_container_inner .buttons {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.age_container_inner .buttons button {
  border: none;
  outline: none;
  cursor: pointer;
  height: 45px;
  font-size: 1.2rem;
  color: #fff;
  background-color: #d67f8a;
  padding: 0rem 2rem;
}
.age_container_footer {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  padding-bottom: 2.5rem;
}
.age_container_footer p {
  text-align: center;
  font-size: 13px;
  color: #717171;
  text-transform: uppercase;
}
.wrapper_of_main {
  width: 100%;
  display: none;
  justify-content: center;
}
.main_container_of_entry {
  width: 100vw;
}
.main_footer {
  padding: 3rem;
  text-align: center;
}
.main_footer a {
  color: #000;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.swal2-styled.swal2-confirm {
  background-color: #d67f8a !important;
}
@media screen and (max-width: 750px) {
  .main_footer {
    padding-bottom: 1.5rem;
  }
  .age_container {
    padding: 0rem;
    height: 100vh;
  }
  .age_container_inner {
    width: 100%;
    background-position: top;
    height: initial;
    justify-content: flex-start;
  }
  .age_container_footer {
    position: initial;
    padding-bottom: 0rem;
  }
  .age_container_verify {
    margin-top: 35%;
  }
  .age_container_footer p {
    font-size: 10px;
    margin-top: 5rem;
    padding-bottom: 2rem;
  }
}
@media screen and (max-width: 500px) {
  .age_container_inner .buttons button {
    font-size: 1rem;
    padding: 0rem 1.2rem;
    height: 40px;
  }
  .age_container_inner .ques {
    font-size: 0.9rem;
  }
  .age_container_verify p {
    font-size: 0.6rem;
  }
  .age_container_verify h1 {
    font-size: 1.3rem;
    margin: 0rem;
  }
}

/* === Scoped to the form wrapper only === */
#formWrapper {
  /* carry over original layout */
  padding: 0rem 2rem 8rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 990px;
  margin: 0 auto;
  margin-top: -1.5rem;

  /* use your imported font everywhere inside the form */
  font-family: "JoseCuervoAGAVEVectorRegular", sans-serif;
}

#subHeadline {
  margin-top: 1rem;
  text-align: center;
}

/* Intro/closed text */
#formWrapper .form_text {
  text-align: center;
  color: #fff;
}
#formWrapper .form_text h1 {
  font-size: 3vw;
  /* inherits the custom font */
}
#formWrapper .form_text h2 {
  font-size: 2vw;
  font-weight: lighter;
}

/* The form element */
#formWrapper form {
  width: 100%;
  margin-top: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Field groups and inputs */
#formWrapper .input_group {
  width: 100%;
  display: flex;
  gap: 3rem;
}
#formWrapper .input {
  width: 100%;
}
#formWrapper .input label {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  width: 100%;
  cursor: pointer;
  color: #fff;
}

#formWrapper .input input,
#formWrapper select {
  width: 100%;
  height: 70px;
  border: 3px solid #004080;
  font-size: 1.3rem;
  padding: 0 1.5rem;
  /* inherits custom font */
}

#formWrapper .input select {
  cursor: pointer;
}

#formWrapper .input input:focus,
#formWrapper select:focus {
  outline: none;
}

/* position the custom arrow */
.select-wrap {
  position: relative;
  width: 100%;
}

/* white background, hide native arrow */
.custom-select {
  width: 100%;
  height: 70px;
  border: 3px solid #004080;
  font-size: 1.7rem;
  padding: 0 3.25rem 0 1.5rem; /* room for arrow on the right */
  background: #fff; /* <-- white field */
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 0;
  cursor: pointer;
}
.custom-select::-ms-expand {
  display: none;
} /* legacy IE/Edge */

/* static, always-down chevron */
.select-arrow {
  pointer-events: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  transform: translateY(-50%); /* no rotation/animation */
}
.select-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  border: solid #004080;
  border-width: 0 0.22rem 0.22rem 0;
  transform: rotate(45deg); /* ▼ */
}

/* mobile sizing to match your form media rules */
@media (max-width: 710px) {
  .custom-select {
    height: 50px;
    font-size: 1.2rem;
    padding-right: 2.5rem;
  }
  .select-arrow {
    right: 0.75rem;
    width: 0.75rem;
    height: 0.75rem;
  }
}

/* Checkbox row */
#formWrapper .checkbox-row {
  width: 100%;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

#formWrapper .cbx {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: lighter;
  color: #fff;
}
#formWrapper .cbx a {
  color: #fff;
  text-decoration: underline;
}
#formWrapper .cbx input {
  position: absolute;
  left: -9999px;
}
#formWrapper .checkmark {
  width: 35px;
  height: 35px;
  border: 2px solid #004080;
  background: #fff;
  position: relative;
  transition: 0.2s;
  flex-shrink: 0;
}
#formWrapper .cbx input:checked + .checkmark {
  background: #004080;
}
#formWrapper .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);
}
#formWrapper .cbx input:focus + .checkmark {
  box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.35);
}
#formWrapper .cbx input.invalid + .checkmark {
  border-color: #c00;
}

/* Submit button */
#formWrapper .submit_btn {
  border: 3px solid #004080;
  background-color: #fff;
  color: #000;
  outline: none;
  cursor: pointer;
  padding: 0.5rem 5rem;
  text-transform: uppercase;
  font-size: 2rem;
  margin-top: 1rem;
}

/* Honeypot + inline errors */
#formWrapper .hp-field {
  position: absolute;
  left: -9999px;
}
#formWrapper .error {
  color: #d32f2f;
  font-size: 0.8rem;
  background-color: #ffecec;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  min-height: 54px;
  margin-bottom: 0.5rem;
  visibility: hidden;
}
#formWrapper input.invalid,
#formWrapper select.invalid {
  border: 2px solid #d32f2f;
}

/* Server-side error box (above the form) */
#formWrapper .error-box {
  background: #ffecec;
  border: 1px solid #d32f2f;
  color: #d32f2f;
  padding: 12px 14px;
  margin-bottom: 2rem;
  border-radius: 6px;
  font-size: 0.85rem;
}
#formWrapper .error-box ul {
  margin: 0 0 0 18px;
  padding: 0;
  list-style: disc;
}
#formWrapper .error-box ul li {
  margin-bottom: 0.5rem;
}
#formWrapper .error-box ul li:last-child {
  margin-bottom: 0;
}

/* === Responsive tweaks for the form === */
@media screen and (max-width: 1040px) {
  #formWrapper .form_text h1 {
    font-size: 2.5rem;
  }
  #formWrapper .form_text h2 {
    font-size: 1.5rem;
  }
  #formWrapper form {
    margin-top: 3rem;
  }
  #formWrapper .input_group {
    gap: 3rem;
  }
}

@media screen and (max-width: 860px) {
  #formWrapper {
    padding: 3rem 5rem;
  }
  #formWrapper .form_text h1 {
    font-size: 2rem;
  }
  #formWrapper .form_text h2 {
    font-size: 1.3rem;
  }
  #formWrapper .input_group {
    flex-direction: column;
    gap: 0rem;
  }
}

@media screen and (max-width: 710px) {
  #formWrapper {
    padding: 2rem;
  }
  #formWrapper .form_text h1 {
    font-size: 1.7rem;
  }
  #formWrapper .form_text h2 {
    font-size: 1.2rem;
  }
  #formWrapper .input_group {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  #formWrapper .input label {
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
  #formWrapper .error {
    display: none;
    visibility: visible;
  }
  #formWrapper .input input,
  #formWrapper select {
    height: 50px;
    font-size: 1.2rem;
  }
  #formWrapper .cbx {
    gap: 1rem;
    font-size: 1rem;
  }
  #formWrapper .checkmark {
    width: 20px;
    height: 20px;
  }
  #formWrapper .cbx input:checked + .checkmark::after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border-width: 0 2px 2px 0;
  }
  #formWrapper .submit_btn {
    font-size: 1rem;
    margin-top: 1.5rem;
  }
}
