:root { font-size: 62.5%; }

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f2f2f2;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: black;
}

/* ── Skip Nav ── */
.skipnav a {
  position: absolute;
  top: -100%;
  left: 0;
  color: black;
  padding: 0.5rem;
  z-index: 100;
}
.skipnav a:focus { top: 0; }

/* ── Header ── */
.site-header {
  background-color: white;
  padding-bottom: 0;
  border-bottom-style: solid;
  border-bottom-width: 3rem;
  border-image-source: linear-gradient(to left, #d11717, #e00e1f 35%, #dd152d 51%, #750d42);
  border-image-slice: 1;
}

.header-row {
  display: flex;
  align-items: center;
  padding: 0;
}

.bannerLeft {
  display: flex;
  align-items: center;
}

.bannerLogo {
  max-height: 20.9rem;
  max-width: 35.8rem;
  height: 5.5rem;
  width: 12rem;
  padding-right: 3.5rem;
  padding-left: 4.5rem;
  border-right: 0.2rem solid #e0e0e0;
  padding-top: 1.3rem;
  object-fit: contain;
}

.bannerMid {
  margin-right: auto;
  margin-left: 1.6rem;
  position: relative;
  top: -0.5rem;
}

.bannerText {
  font-size: 3.1rem;
  font-weight: bold;
  color: #232636;
  white-space: normal;
  word-wrap: break-word;
}

/* ── Main Container ── */
.containerwrap { flex: 1 0 auto; }

.container {
  padding: 0 3.5rem 2.5rem 3.5rem;
  min-width: 30rem;
  margin: auto;
}

/* ── Kiosk Body (main area) ── */
.kioskbody {
  margin-top: 2.5em;
}

.kioskbody h3 {
  font-size: 3.2rem;
  font-weight: bold;
  line-height: 1.25;
  letter-spacing: -0.04rem;
  color: #242637;
  margin: 0;
}

.kioskbodyinstr {
  color: #242637;
}

/* ── Panel ── */
.panel {
  background-color: white;
  margin: 0 auto;
  margin-bottom: 1em;
  padding: 1em 2em;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
}

.panel.numbered {
  margin: 1em 2em;
  padding: 1.5em 2em 2em 2em;
  box-shadow: 0 0.2rem 0.5rem 0.2rem #aaaaaa;
}

.panel h2 {
  width: 100%;
  text-align: left;
  font-size: 1.5em;
  font-weight: bold;
  font-style: normal;
  line-height: 1.17;
  letter-spacing: -0.04rem;
  color: #242637;
  white-space: normal;
  margin: 0.75rem 0;
}

.panelnumber {
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-right: 0.5em;
  background-color: #232636;
  color: white;
  font-size: 1.3rem;
  padding: 0;
}

.panel .wrapper {
  min-height: 3rem;
  padding-top: 0;
}

/* ── Typography ── */
h5, label {
  font-size: 1.6rem;
  font-weight: bold;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: -0.04rem;
  text-align: left;
  color: #242637;
}

p {
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 1.5;
  color: #6f6f6f;
}

/* ── Form Layout (Bootstrap-like grid) ── */
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

fieldset legend { display: none; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}

.row::after {
  clear: both;
  content: "";
  display: block;
}

.col-sm-4 {
  width: 33.33333%;
  padding: 0 1.5rem;
}

.col-sm-8 {
  width: 66.66667%;
  padding: 0 1.5rem;
}

.col-xs-4 {
  width: 33.33333%;
  padding: 0 1.5rem;
}

.col-xs-8 {
  width: 66.66667%;
  padding: 0 1.5rem;
}

.col-xs-0 { display: none; }

.col-xs-12 {
  width: 100%;
  padding: 0 1.5rem;
}

.col-md-12 {
  width: 100%;
}

.col-lg-12 {
  width: 100%;
}

.right { text-align: right; }
.left { text-align: left; }

.paddingleft5 { padding-left: 0.5rem; }

.floatLeft { float: left; }

.maxsize { width: 100%; }

.field {
  margin-bottom: 0.4rem;
  padding: 0.2rem 0;
  align-items: center;
}

.create-user-panel label {
  margin-right: 0.5rem;
  line-height: 2rem;
}

.duiFieldMargin {
  padding: 0;
}

.dynamicUIRow .floatLeft {
  margin-top: 0.5em;
  float: none;
}

/* ── Form Rows (flat layout) ── */
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.form-label {
  width: 33.33333%;
  padding: 0 1.5rem;
  flex-shrink: 0;
}

.form-input {
  width: 66.66667%;
  padding: 0 1.5rem;
}

.form-actions {
  margin-top: 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.requiredFieldText {
  display: block;
  margin-top: 1.5em;
  font-size: 1.3rem;
}

/* ── Form Inputs ── */
input[type="text"],
input[type="password"] {
  padding: 0.2rem 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: #333333;
  border: 0.1rem solid #aaabaa;
  max-width: 24rem;
  width: calc(100% - 1rem);
  box-sizing: border-box;
}

input:not([type="image"]):focus {
  background-color: #f1f1c2 !important;
  outline: 0.2rem solid #5E9ED6;
}

.requiredField {
  color: #C30000;
  vertical-align: middle;
}

.hidden-readable {
  position: absolute;
  overflow: hidden;
  width: 0.1rem;
  height: 0.1rem;
  padding: 0;
  margin: -0.1rem;
  clip: rect(0,0,0,0);
  border: 0;
}

.ss_instruction_default {
  font-size: 1.3rem;
  color: black;
}

.dateFormat {
  font-size: 1.3rem;
  color: black;
}

/* Date field with calendar icon */
.rich-calendar-input {
  border: 0.1rem solid #aaabaa;
  padding: 0.2rem 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: #333333;
  vertical-align: middle;
  max-width: 24rem;
  width: calc(100% - 6.3rem);
  box-sizing: border-box;
}

.rich-calendar-button {
  vertical-align: middle;
  width: 2rem;
  height: 2rem;
  margin-left: 0.2rem;
  cursor: pointer;
}

.info-icon {
  vertical-align: middle;
  width: 1.6rem;
  height: 1.6rem;
  margin-left: 0.3rem;
  cursor: pointer;
}

/* Password strength (hidden for SSN) */
.pswdStrength { display: none; }

/* ── reCAPTCHA area ── */
.captchaRow {
  padding: 0.2rem 0;
}

.g-recaptcha-container {
  padding: 0 1.5rem;
}

.g-recaptcha-placeholder {
  width: 30.4rem;
  height: 7.8rem;
  border: 0.1rem solid #d3d3d3;
  border-radius: 0.3rem;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  padding: 0 1.3rem;
  margin-left: 0.6rem;
}

.g-recaptcha-placeholder .checkbox-area {
  width: 2.8rem;
  height: 2.8rem;
  border: 0.2rem solid #c1c1c1;
  border-radius: 0.2rem;
  background: white;
  margin-right: 1.2rem;
  flex-shrink: 0;
}

.g-recaptcha-placeholder .recaptcha-label {
  font-size: 1.4rem;
  color: #555;
  flex-grow: 1;
}

.g-recaptcha-placeholder .recaptcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 1rem;
}

.g-recaptcha-placeholder .recaptcha-logo svg {
  width: 3.2rem;
  height: 3.2rem;
}

.g-recaptcha-placeholder .recaptcha-logo span {
  font-size: 1rem;
  color: #555;
  margin-top: 0.2rem;
}

/* ── Buttons ── */
.buttonL4 {
  border-style: solid;
  border-width: 0.2rem;
  border-image-source: linear-gradient(to left, #d11717, #e00e1f 35%, #dd152d 51%, #750d42);
  border-image-slice: 1;
  background-color: white;
  color: #cc0000;
  font-size: 1.6rem;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  text-align: center;
  padding: 0.4rem 2rem;
  cursor: pointer;
  min-width: 8rem;
}

.buttonL4:hover {
  background-image: linear-gradient(to left, #d11717, #e00e1f 35%, #dd152d 51%, #750d42);
  color: #ffffff;
}

.buttonL4:focus {
  outline: 0.2rem solid #5E9ED6;
  background-color: #f1f1c2 !important;
  text-decoration: underline;
  color: black !important;
}

.buttonL4Disabled {
  color: #9F9F9F;
  background-color: #DFDFDF;
  border-style: solid;
  border-width: 0.2rem;
  border-color: #DFDFDF;
  font-size: 1.6rem;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  text-align: center;
  padding: 0.4rem 2rem;
  cursor: default;
  min-width: 8rem;
}

/* ── Footer ── */
.screenfooter {
  height: 7.5rem;
  font-family: 'Poppins', sans-serif;
  border: none;
  background-color: #30354b;
  color: white;
  background-image: linear-gradient(to left, #d11717, #e00e1f 35%, #dd152d 51%, #750d42);
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footerContent {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 3.5rem;
  gap: 2rem;
}

.footerLogo {
  height: 3rem;
  width: auto;
  flex-shrink: 0;
}

.footerText {
  font-family: 'Poppins', sans-serif;
  color: white;
  font-size: 1.2rem;
}

/* ── Responsive ── */
@media only screen and (max-width: 991.98px) {
  .bannerMid { display: none; }
  .container { padding-left: 1.6rem; padding-right: 1.6rem; }
  .col-sm-4, .col-sm-8 { width: 100%; text-align: left; }
  .right { text-align: left; }
  .panel.numbered { margin: 1em 0; }
  .form-row { flex-direction: column; align-items: flex-start; }
  .form-label { width: 100%; text-align: left; margin-bottom: 0.3rem; }
  .form-input { width: 100%; }
}

@media only screen and (max-width: 767.98px) {
  .bannerLogo { border-right: none; }
  label { font-size: 99% !important; }
  .kioskbodyinstr { font-size: 70% !important; }
}

/* progress bar (hidden by default) */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.4rem;
  background-color: #90CAF9;
  z-index: 10000;
  display: none;
}
.progress .indeterminate {
  background-color: #2196F3;
  height: 100%;
  width: 30%;
  animation: indeterminate 1.5s infinite ease-in-out;
}
@keyframes indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* wrap helper */
.wrap {
  white-space: normal;
  word-wrap: break-word;
}
