/* ==========================================
   1. GLOBAL / BASE STYLES (Mobile First/Universal)
   ========================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #fafafa;
  background-repeat: no-repeat;
  background-position: 100% 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: scroll;
}

#wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --- Navigation & Layout Structure --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 36px;
  z-index: 1;
  overflow: hidden;
  border: none;
  margin: 0;
  padding: 0;
}

#titlebox {
  align-items: center; /* vertical centering */
}

#boxcontainer {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fafafa;
}

#textcontainer, 
#imagecontainer1, 
#imagecontainer2 {
  position: relative;
  height: auto;
  box-sizing: border-box;
}

.divider {
  border: none;
  border-top: 1pt solid #b2b2b2;
  margin: 40px 0;
  max-width: 400px;
  width: 60%;
}

/* --- Footer --- */
.footer {
  flex-shrink: 0;
  background-color: #404040;
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 0;
}

.footer-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.footer-text {
  display: flex;
  align-items: center;
  text-align: center;
}

/* --- Forms & Inputs --- */
.bane {
  position: absolute;
  left: -9999px;
}

.formcontainer {
  margin-top: 0;
  width: 100%;
  max-width: 632px;
  height: auto;
  box-sizing: border-box;
}

input[type=text], select, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #b2b2b2;
  background-color: #fafafa;
  border-radius: 0px;
  box-sizing: border-box;
  margin-top: 2px;
  margin-bottom: 2px;
  resize: none;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
  font-size: 13pt;
  color: #434343;
  font-weight: 300;
  line-height: 17pt;
  letter-spacing: 0px;
  text-align: left;
  outline: none;
}

.inline {
  display: inline-block;
  margin-right: 0;
}

.question {
  display: block;
  margin-top: 0;
}

input[type=submit] {
  background-color: lightpink;
  border: 2px solid #1c1c1c;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #1c1c1c;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0px;
  text-align: center;
  padding: 9px 20px 8px 18px;
  border-radius: 0px;
  cursor: pointer;
  margin-top: 24px;
  margin-left: 0;
  box-shadow: 3px 3px 0px 0 #1c1c1c;
  transition: all 0.3s ease;
}

input[type=submit]:hover {
  background-color: #ec98a5;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #1c1c1c;
}

.buttoncontainer {
  position: relative;
  height: 80px;
  width: 120px;
  margin-top: 0;
  margin-left: 0;
  padding-right: 0;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: .5em;
}

.form-row .required {
  flex: 0 0 auto;
}


/* ==========================================
   2. DESKTOP / LARGER SCREENS (min-width: 901px)
   ========================================== */
@media screen and (min-width: 901px) {
  .navbar {
    background-color: #1c1c1c;
  }

  #boxcontainer {
    width: 900px;
    padding-top: 152px;
    padding-bottom: 48px;
    min-height: 690px;
    height: 100vh;
  }

  #textcontainer, 
  #imagecontainer1 {
    width: 600px;
    padding-bottom: 20px;
  }

  #imagecontainer1 {
    padding-bottom: 24px;
  }

  #imagecontainer2 {
    width: 900px;
    padding-bottom: 24px;
  }

  .footer {
    padding-top: 40px;
    padding-bottom: 16px;
  }

  .formcontainer {
    border: 0 solid;
    padding-left: 0;
    padding-right: 0px;
  }

  .error {
    font-family: 'Roboto', sans-serif;
    font-size: 13pt;
    color: red;
    line-height: 13pt;
    font-weight: 300;
    position: relative;
    top: 13px;
    white-space: nowrap;
    letter-spacing: 0px;
    padding: 0;
    margin: 0 0 0 -12pt;
  }
}


/* ==========================================
   3. MEDIUM TABLETS / PHONES (max-width: 900px)
   ========================================== */
@media screen and (max-width: 900px) {
  #boxcontainer {
    width: 100%;
    padding-top: 152px;
    padding-bottom: 48px;
    flex: 1;
    min-height: 750px;
    height: 100vh;
  }

  #textcontainer {
    width: 100%;
    padding: 0 80px 20px 80px;
  }

  #imagecontainer1 {
    width: 100%;
    padding: 0 80px 24px 80px;
  }

  #imagecontainer2 {
    width: 100%;
    padding-bottom: 24px;
  }

  .footer {
    padding: 24px 16px 2px 16px;
  }

  .formcontainer {
    border: 2px solid;
  }

  .error {
    font-family: 'Roboto', sans-serif;
    font-size: 14pt;
    color: red;
    line-height: 4pt;
    font-weight: 300;
    position: relative;
    top: 10px;
    white-space: nowrap;
    letter-spacing: 0px;
    margin: 0 0 0 -12pt;
    padding: 12pt 0 0pt 0;
  }
}


/* ==========================================
   4. SMALL TABLETS TWEAK (max-width: 717px) and (min-width: 523px)
   ========================================== */
@media screen and (max-width: 717px) and (min-width: 523px) {
  #boxcontainer {
    padding-top: 132px;
    padding-bottom: 48px;
    min-height: 812px;
    height: 100vh;
  }
}


/* ==========================================
   5. SMALLEST MOBILE DEVICES (max-width: 522px)
   ========================================== */
@media screen and (max-width: 522px) {
  #boxcontainer {
    width: 100%;
    padding-top: 42px;
    padding-bottom: 48px;
    flex: 1;
    min-height: 892px;
    height: 100vh;
  }

  #textcontainer {
    width: 100%;
    padding: 0 16px 20px 16px;
    min-height: 100vw;
  }

  #imagecontainer1 {
    width: 100%;
    padding: 0 16px 24px 16px;
  }

  #imagecontainer2 {
    width: 100%;
    padding-bottom: 24px;
  }

  .error {
    font-family: 'Roboto', sans-serif;
    font-size: 14pt;
    color: red;
    line-height: 4pt;
    font-weight: 300;
    position: relative;
    top: 9px;
    white-space: nowrap;
    letter-spacing: 0px;
    margin: 0 0 0 -12pt;
    padding: 12pt -28px 0pt 0; /* Note: negative padding is invalid, but kept as per original structure */
  }
}