/* Styles override main.css */
body {
  font-weight: 400;
}

footer,
.form-label {
  font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

h1, h2, h3 {
  line-height: 1.2;
}

h1 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

@media screen and (min-width: 768px) {
  h1 {
    margin-top: 1.5rem;
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

footer {
  background-color: var(--program-color-footer);
  position: relative;
  z-index: 1;
}

/* increase font size on larger screens  for footer */
@media screen and (min-width: 768px) {
  footer {
    font-size: 1.2rem;
  }
}

form {
  margin-top: 2rem;
  max-width: 100%;
}

label > * > .info-icon {
  margin-right: 0.25rem;
  /* FIXME: BEE-315 this isn't working atm - needs another look */
  /* position: absolute;
  left: 1rem;
  top: -0.5rem; */
}

.form-control:focus, .form-check:focus, .form-select:focus {
  box-shadow: none;
}

.form-check-label, .form-check-input:checked + .form-check-label {
  border: none;
  background: none;
}

.asteriskField {
  color: #D31919;
}

.invalid-feedback {
  font-size: 1rem;
}

.invalid-feedback::before {
  flex: 0 0 auto;
  padding-top: 0.2rem;
}

.btn {
  font-size: 1rem;
  border-radius: 4px;
}

main.container {
  padding: 1.5rem;
}

main.container:not(.verify-home-container) {
  max-width: 39rem;

}

.content-box-shadow {
  position: static;
  z-index: 0;
  box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.25);
}

@media screen and (min-width: 768px) {
  main.container:not(.verify-home-container) {
    margin: 1.75rem auto 3.5rem auto;
    padding: 5rem;
    padding-top: 0;
  }
}

.img-fluid {
  max-width: 100%;
}

.popover {
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.12);
}

.footer-logo {
  margin: 0 auto;
  padding: 24px 0;
  max-width: 100%;
}

@media screen and (min-width: 768px) {
  .footer-logo {
    max-width: 50%;
  }
}

.footer-links-container {
  font-size: 0.8rem;
  text-align: center;
}

.footer-links {
  justify-content: center;
  gap: 64px;
}

.footer-link {
  margin: 0 !important;
}

.verify-form-intro {
  margin-top: 0;
}

@media screen and (min-width: 768px) {
  .verify-form-intro {
    margin-top: 1rem;
  }
}

.verify-form-intro > p:first-child {
  margin-top: 0;
}

@media screen and (min-width: 768px) {
  .verify-page {
    margin-left: auto;
    margin-right: auto;
  }
}

.verify-submit {
  margin-top: 32px;
}

.tagline {
  position: relative; /* Ensure the pseudo-element is positioned relative to this element */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 88px 24px 88px 24px;
  background-size: cover;
  text-align: center;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  font-size: 1rem;
}

.tagline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Adjust the opacity as needed */
  z-index: 1; /* Ensure the overlay is behind the text */
}

.tagline * {
  position: relative;
  z-index: 2; /* Ensure the text is above the overlay */
}

@media screen and (min-width: 768px) {
  .tagline {
    padding: 88px;
    margin-left: -3rem;
    margin-right: -3rem;
    font-size: 2rem;
    text-align: left;
  }

  .tagline::after {
    /* Add a fake second element for flex alignment, so that the first element can be right-aligned
    to a third of the screen width (relative to the right edge) */
    content: "";
    flex: 1;
  }

  .tagline div {
    flex: 2;
    order: 1;
    text-align: left;
    margin-left: auto;
  }
}

main.verify-home-container {
  padding: 0 3rem 3rem 3rem;
}

.verify-home-name {
  margin: 40px 0 0;
  font-size: 1rem;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .verify-home-name {
    margin-top: 54px;
    font-size: 2rem;
    flex-basis: 100%;
    width: 100%;
  }
}

.verify-home-btn {
  margin-top: 38px;
}

@media screen and (min-width: 768px) {
  .verify-home-btn {
    margin: 48px auto 0;
  }
}

.verify-intro-text {
  margin-top: 48px;
}

@media screen and (min-width: 768px) {
  .verify-intro-text {
    margin-top: 64px;
  }
}

.info-text {
  color: #585858;
}

/* Popovers */
[data-bs-toggle="popover"] {
  position: relative;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  background-image: url('/static/img/verify/info-icon.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: white; /* This is optional since the SVG itself has color */
}

/* Hide the #div_id_phone_number on the Customer Info form by default */
#div_id_phone_number {
  display: none;
}

/* Step list: first column is an image graphic and the second is text (eg "How It Works") */
.step-list {
  display: grid;
  grid-template-columns: 1fr 3fr;
  row-gap: 3rem;
  column-gap: 1rem;
  margin: 3rem 0;
}

.step-list .icon-item {
  /* Keep icon centered on mobile-sized display */
  justify-self: center;
}
