#mainSite {
  display: none;
}


@font-face {
  font-family: "AvantGardePro";
  src: url("fonts/ITCAvantGardePro-Md.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AvantGardeBold";
  src: url("fonts/AvantGarde-Bold") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --age-gate-width: 480px;
  --content-width: 660px;
  --blue-dark: #164292;
  --blue-main: #253F8E;
  --mobile-gutter: 24px;
  --submit-gap: 36px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "AvantGardePro", sans-serif;
  overflow-x: hidden;
  font-size: 16px; 
}

body {
  background: url(images/Noisy_Grey_Background.jpg) center / cover no-repeat;
}


.age-gate {
  position: relative; 
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 40px;
}

.age-gate-inner {
  width: 100%;
  max-width: 480px;
  position: relative;
}

.age-logo {
  display: block;
  width: 220px;
  margin: 24px auto 0;
}


.agegate-ribbon {
  position: absolute;
  top: -320px;
  left: 53%;
  transform: translateX(-50%);
  width: 1400px;     
  pointer-events: none;
  z-index: 1;
}


@media (max-width: 900px) {
  .agegate-ribbon {
     top: -300px;          
    width: 1300px; 
    left: 60%;
  }
}

.age-gate-inner {
  position: relative;
  z-index: 10;
}

.age-form {
  max-width: 400px;
  margin: 160px auto 0;
  padding: 0 12px;
}

.age-input {
  margin-bottom: 22px;
}

.age-form > .age-input > label:not(.age-checkbox-row) {
  display: block;
  color: #164292;
  margin-bottom: 6px;
  font-size: 1.125rem;
}

.age-form input,
.age-form select {
  width: 100%;
  height: 48px;
  padding: 10px;
  font-size: 1rem;
  border: 2px solid #164292;
  background: transparent;
  border-radius: 0;
}

.age-input:has(select) {
  margin-bottom: 0px;
}

.age-input + .age-input label {
  margin-top: -6px;
}

.dob-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dob-row input::placeholder {
  color: #164292;
  opacity: 1;
}

.dob-row input::-webkit-input-placeholder {
  color: #164292;
}

.dob-row input::-moz-placeholder {
  color: #164292;
}

.dob-row input:-ms-input-placeholder {
  color: #164292;
}

.age-error {
  margin-top: 4px;
  font-size: 14px;
  color: #c00;
  min-height: 16px;
}

.age-input.error input,
.age-input.error select {
  border-color: #c00;
}

.age-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.age-checkbox-row span {
  display: block;
  flex: 1;
  line-height: 1.35;
}

.age-checkbox-row input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #164292;
  background: transparent;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
}

.age-checkbox-row input::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.age-checkbox-row input:checked {
  background: #164292;
}

.age-checkbox-row input:checked::after {
  opacity: 1;
}

.age-checkbox-row span {
  font-size: 18px;
  line-height: 1.35;
  color: #164292;
   flex: 1; 
}

.age-checkbox .age-error {
  margin-left: 28px;
}

.age-legal-text {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #164292;
  margin-top: 6px;
}

.age-input.age-checkbox {
  margin-bottom: 8px;
}

.age-legal-text a {
  color: #164292;
  text-decoration: underline;
}

.age-legal-text a:hover {
  text-decoration: none;
}

#enterBtn {
  width: 100%;
  margin-top: 32px;
  padding: 16px;
  background: #164292;
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 767px) {
  .age-form {
    margin-top: 140px;
    max-width: 90%;
  }
}

.side-bar {
  position: fixed;
  top: 0;
  height: 100vh;
  background: #000;
  pointer-events: none;
  z-index: 9999;
}

.left-bar {
  left: 0;
  width: calc((100vw - var(--content-width)) / 2);
}

.right-bar {
  right: 0;
  width: calc((100vw - var(--content-width)) / 2);
}

@media (max-width: 900px) {
  .side-bar {
    display: none;
  }
}

.age-gate .left-bar,
.age-gate .right-bar {
  width: calc((100vw - var(--age-gate-width)) / 2);
}


@media (max-width: 900px) {
  .age-gate .side-bar {
    display: none;
  }
}


.hero-wrapper {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-img {
  width: 100%;
  display: block;
}

.page-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--mobile-gutter);
}


#form {
  width: 100%;
  margin: 10px auto;
  font-size: 1rem;
  padding-bottom: var(--submit-gap); 
}

#form h1 {
  text-align: center;
  color: var(--blue-main);
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 1.375rem;
}

.input-control {
  color: var(--blue-main);
  margin-bottom: 9px;
}

.input-control label {
  margin-bottom: 10px;   
  display: block; 
  font-size: 1rem;
}

.input-control input {
  width: 100%;
  height: 38px;
  padding: 8px;
  border: 2px solid var(--blue-main);
  background: transparent;
  font-size: 0.95rem;
}


.dob-wrapper {
  display: flex;
  gap: 12px;
}


.dob-wrapper input::placeholder {
  color: var(--blue-main);
  opacity: 1; 
}

.dob-wrapper input::-webkit-input-placeholder {
  color: var(--blue-main);
}

.dob-wrapper input::-moz-placeholder {
  color: var(--blue-main);
}

.dob-wrapper input:-ms-input-placeholder {
  color: var(--blue-main);
}

.dob-wrapper input {
  font-variant-numeric: tabular-nums;
}

.dob-wrapper input:nth-child(1),
.dob-wrapper input:nth-child(2) {
  width: 60px;
  text-align: center;
}

.dob-wrapper input:nth-child(3) {
  width: 90px;
  text-align: center;
}

#skill {
  width: 120px;    
  text-align: center;
}


::placeholder {
  color: #1f3a8a; 
  opacity: 1; 
}

::-webkit-input-placeholder {
  color: #1f3a8a;
  opacity: 1;
}

::-moz-placeholder {
  color: #1f3a8a;
  opacity: 1;
}

:-ms-input-placeholder {
  color: #1f3a8a;
}

.submit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  z-index: 99999;
}


.submit-overlay.show {
  display: flex;
}

.submit-loading.show {
  display: flex;
}

.submit-success {
  display: none;
}

.submit-success.show {
  display: block;
}

.submit-loading {
  display: none;
  justify-content: center;
  align-items: center;
}

.submit-loading.show {
  display: flex;
}


.spinner {
  width: 64px;
  height: 64px;
  border: 5px solid rgba(22, 66, 146, 0.2);
  border-top-color: #164292;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submit-success {
  display: none;        
  background: #fff;
  padding: 32px 36px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  text-align: center;
  max-width: 320px;
  width: 90%;
  font-family: "AvantGardePro", sans-serif;
  position: relative;
}

.submit-success.show {
  display: block;
}

.success-text {
  font-size: 1.1rem;
  color: var(--blue-main);
  font-weight: 500;
  margin-bottom: 24px;
}

#closeSubmitSuccess {
  padding: 10px 24px;
  background: var(--blue-main);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s; 
}


#closeSubmitSuccess:hover {
  background: #0f2a6f; 
}

@media (max-width: 480px) {
  .submit-success {
    padding: 24px 20px;
    max-width: 90%;
  }

  .success-text {
    font-size: 1rem;
  }

  #closeSubmitSuccess {
    width: 100%;
  }
}


.checkbox-control {
  margin-top: 32px;
  margin-bottom: var(--submit-gap); 
  
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;            
}

.checkbox-text {
  color: var(--blue-main);     
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 360px;             
}

.checkbox-label input {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--blue-main);
  background: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label input::after {
  content: "";
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.checkbox-label input:checked {
  background: var(--blue-main);
}

.checkbox-label input:checked::after {
  opacity: 1;
}

.error {
  font-size: 0.875rem; 
}


#form button {
  width: 100%;
  padding: 15px;
  background: var(--blue-main);
  color: #fff;
  border: none;
  font-size: 1rem;
}

.rulesnotice {
  text-align: center;
  color: var(--blue-main);
  font-size: 0.875rem;
  margin: 24px 0;  
}



.input-control .error,
.checkbox-control .error {
  margin-top: 6px;
  font-size: 0.875rem;
  color: #c00;         
  min-height: 16px;  
}

.input-control.error input {
  border-color: #c00;
}



.site-footer {
  background: var(--blue-main);
  color: #ffffff;
  padding: 32px var(--mobile-gutter) 40px;
  text-align: center;
}

.footer-inner {
  max-width: 480px; 
  margin: 0 auto;
}

.footer-eyebrow {
  font-size: 0.75rem;
  margin-bottom: 12px;
  opacity: 0.9;
}

.footer-warning {
  font-family: "AvantGardeBold", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 0px;  
  line-height: 1.1;   
}

.footer-legal {
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.9;
}

.footer-link {
  font-size: 0.85rem;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.1;
  opacity: 0.95;
}


@media (min-width: 900px) {
  :root {
    --content-width: 860px;
  }

  .page-wrapper,
  .footer-inner {
    max-width: 600px;
  }
}

@media (max-width: 900px) {
  :root {
    --mobile-gutter: 24px;
  }
}

@media (max-width: 600px) {

  :root {
  --mobile-gutter: 20px;
}

  .page-wrapper {
    padding: 0 16px;
  }

  #form {
  font-size: 0.95rem;
}


  .input-control input {
    width: 100%;
  }

  
   .dob-wrapper {
    flex-direction: row;
  }

  .dob-wrapper input {
    width: auto;
    flex: 0 0 auto;
  }

  
  #skill {
    width: 120px;
 }

  .checkbox-control {
    margin-top: 24px;
    margin-bottom: 32px;
  }

  
  #form button {
    padding: 18px;
    font-size: 1rem;
    width: 100%;
}
  }

  .site-footer {
    font-size: 0.8rem;
  }

  
  .rulesnotice {
    margin: 24px 0 40px;
    font-size: 0.875rem;
  }

  .honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}