/* DTRA CBRN CORe Branding Styles */
html {
  min-width: 1375px;
  box-sizing: border-box;
  margin: 0px;
}

body {
  background-color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;
  margin: 0px;
  width: 100%;
  box-sizing: border-box;
}

#banner_text {
  color: #FFFFFF;
  font-size: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  z-index: 100;
  position: relative;
  text-align: center;
  background-color: #007a33;
  width: 100%;
  margin: 0px;
}

hr {
  color: rgb(4, 28, 44);
  margin-bottom: 25px;
  box-sizing: border-box;
}

.header_wrapper {
  max-width: 100%;
  max-height: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 100px;
  box-sizing: border-box;
  margin: auto;
}

.header {
  grid-column: 1 / span 8;
  grid-row: 1 / 5;
  background-image: url(../media/background.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-color: rgb(4, 28, 44);
  padding-top: 50px;
  padding-bottom: 50px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 1fr);
}

.logo {
  max-width: 100%;
  max-height: 100%;
  grid-column: 3 / span 4;
  grid-row: 1 / span 5;
  margin-top: 30px;
  box-sizing: border-box;
}

.page_title {
  max-width: 100%;
  max-height: 100%;
  grid-column: 8 / span 3;
  grid-row: 1 / span 4;
  box-sizing: border-box;
  color: white;
  text-align: center;
  margin-top: 30px;
}

.page_title h1 {
  font-size: 3em;
  margin: 0;
  font-weight: bold;
}

.page_title h2 {
  font-size: 1.5em;
  margin: 10px 0 0 0;
  font-weight: normal;
}

.wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: fit-content(100px);
  box-sizing: border-box;
  margin: auto;
}

.flex_wrapper {
  grid-column: 2 / span 6;
  grid-row: 5 / minmax(29, auto);
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.input_body {
  width: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.input_piece {
  box-sizing: border-box;
  color: rgb(47, 46, 46);
}

.input_piece b {
  color: rgb(4, 28, 44);
}

/* Form Input Styles */
input[type="text"],
input[type="password"],
input[type="email"] {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  max-height: 100%;
  width: 100%;
  padding: 15px;
  margin-left: 0;
  margin-top: 5px;
  margin-bottom: 20px;
  margin-right: 0;
  display: inline-block;
  background: #f1f1f1;
  transition: .5s ease-in-out;
  border: solid;
  border-width: 1px;
  border-color: white;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  background-color: #ddd;
  outline: none;
}

/* Checkbox styling */
.checkbox_group {
  margin-bottom: 1rem;
}

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
  color: rgb(47, 46, 46);
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #f1f1f1;
  border: 2px solid #ccc;
  border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #ddd;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: rgb(4, 28, 44);
  border-color: rgb(4, 28, 44);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Upload Area Styles */
.upload_directions {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: rgb(47, 46, 46);
}

#file-upload-container {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background: #f1f1f1;
  border-style: dashed;
  border-width: .20vh;
  border-color: rgb(4, 28, 44);
  height: auto;
  margin-bottom: 20px;
}

#drop-zone {
  padding: 3rem 2rem;
  text-align: center;
  background: #f1f1f1;
  cursor: pointer;
  transition: .5s ease-in-out;
  color: rgb(47, 46, 46);
}

#drop-zone.hover {
  background-color: #ddd;
}

.upload-icon {
  font-size: 4rem;
  color: rgb(4, 28, 44);
  margin-bottom: 1rem;
  display: block;
}

#drop-zone p {
  font-size: 1.2rem;
  margin: 0;
  color: rgb(47, 46, 46);
  word-wrap: break-word;
  max-width: 100%;
}

/* Progress Bar Styles */
#progress-container {
  height: 30px;
  background: #f1f1f1;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid #ccc;
}

#progress-bar {
  background: linear-gradient(135deg, rgb(4, 28, 44) 25%, rgb(47, 46, 46) 25%, rgb(47, 46, 46) 50%, rgb(4, 28, 44) 50%, rgb(4, 28, 44) 75%, rgb(47, 46, 46) 75%);
  background-size: 40px 40px;
  height: 100%;
  width: 0%;
  transition: width 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  overflow: hidden;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes move {
  from { background-position: 0 0; }
  to { background-position: 40px 0; }
}

/* Button Styles */
.final_input {
  width: 100%;
  max-height: 100%;
  margin-top: 2em;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-gap: 10px;
  box-sizing: border-box;
}

.submitbtn {
  grid-column: 4 / span 2;
  max-height: 100%;
  border-radius: none;
  background-color: rgb(47, 46, 46);
  outline: 3px solid;
  outline-color: rgb(4, 28, 44);
  color: white;
  font-size: 14pt;
  text-align: center;
  border: none;
  font-family: Arial, Helvetica, sans-serif;
  transition: .5s ease-in-out;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  cursor: pointer;
}

.submitbtn:hover:not(:disabled) {
  background-color: rgb(180, 214, 214);
  color: rgb(47, 46, 46);
  outline-color: rgb(4, 28, 44);
}

.submitbtn:disabled {
  background-color: #999;
  color: #666;
  cursor: not-allowed;
  outline-color: #666;
}

/* Footer Styles */
.banner_bottom {
  width: 100%;
  grid-column: 1 / span 8;
  margin-top: 100px;
  box-sizing: border-box;
}

.footer {
  width: 100%;
  min-height: 200px;
  grid-column: 1 / span 8;
  background-color: rgb(47, 46, 46);
  box-sizing: border-box;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  text-align: center;
  border-radius: 5px;
  border: 3px solid rgb(4, 28, 44);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: rgb(4, 28, 44);
  text-decoration: none;
}

#popup-message {
  color: rgb(47, 46, 46);
  font-size: 1.1rem;
  margin: 10px 0;
}