/* lato-300 - latin */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/lato-v15-latin-300.eot"); /* IE9 Compat Modes */
  src:
    local("Lato Light"),
    local("Lato-Light"),
    url("../fonts/LatoLatin-Light.eot?#iefix") format("embedded-opentype"),
    /* IE6-IE8 */ url("../fonts/LatoLatin-Light.woff2") format("woff2"),
    /* Super Modern Browsers */ url("../fonts/LatoLatin-Light.woff")
      format("woff"),
    /* Modern Browsers */ url("../fonts/LatoLatin-Light.ttf") format("truetype"),
    /* Safari, Android, iOS */ url("../fonts/LatoLatin-Light.svg#Lato")
      format("svg"); /* Legacy iOS */
}
/* lato-regular - latin */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/lato-v15-latin-regular.eot"); /* IE9 Compat Modes */
  src:
    local("Lato Regular"),
    local("Lato-Regular"),
    url("../fonts/LatoLatin-Regular.eot?#iefix") format("embedded-opentype"),
    /* IE6-IE8 */ url("../fonts/LatoLatin-Regular.woff2") format("woff2"),
    /* Super Modern Browsers */ url("../fonts/LatoLatin-Regular.woff")
      format("woff"),
    /* Modern Browsers */ url("../fonts/LatoLatin-Regular.ttf")
      format("truetype"),
    /* Safari, Android, iOS */ url("../fonts/LatoLatin-Regular.svg#Lato")
      format("svg"); /* Legacy iOS */
}
/* lato-700 - latin */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/lato-v15-latin-700.eot"); /* IE9 Compat Modes */
  src:
    local("Lato Bold"),
    local("Lato-Bold"),
    url("../fonts/LatoLatin-Bold.eot?#iefix") format("embedded-opentype"),
    /* IE6-IE8 */ url("../fonts/LatoLatin-Bold.woff2") format("woff2"),
    /* Super Modern Browsers */ url("../fonts/LatoLatin-Bold.woff")
      format("woff"),
    /* Modern Browsers */ url("../fonts/LatoLatin-Bold.ttf") format("truetype"),
    /* Safari, Android, iOS */ url("../fonts/LatoLatin-Bold.svg#Lato")
      format("svg"); /* Legacy iOS */
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/open-sans-v16-latin-regular.eot"); /* IE9 Compat Modes */
  src:
    local("Open Sans Regular"),
    local("OpenSans-Regular"),
    url("../fonts/open-sans-v16-latin-regular.eot?#iefix")
      format("embedded-opentype"),
    /* IE6-IE8 */ url("../fonts/open-sans-v16-latin-regular.woff2")
      format("woff2"),
    /* Super Modern Browsers */ url("../fonts/open-sans-v16-latin-regular.woff")
      format("woff"),
    /* Modern Browsers */ url("../fonts/open-sans-v16-latin-regular.ttf")
      format("truetype"),
    /* Safari, Android, iOS */
      url("../fonts/open-sans-v16-latin-regular.svg#OpenSans") format("svg"); /* Legacy iOS */
}

html,
body {
  height: 100%;
}
body {
  font-family: "Open Sans", sans-serif;
  position: relative;
}
h1 {
  font-family: "Lato", sans-serif;
  font-size: 27px;
  color: #4b77f2;
  letter-spacing: 0.05rem;
  font-weight: 600;
}
.hero h1 {
  font-family: "Lato", sans-serif;
  font-size: 70px;
  color: #fff;
  letter-spacing: 0.2rem;
  font-weight: bold;
  font-style: normal;
  word-wrap: break-word;
  text-transform: capitalize;
  margin-bottom: 1rem;
  line-height: 1.2;
}
h2 {
  font-family: "Lato", sans-serif;
  font-size: 27px;
  color: #4b77f2;
  letter-spacing: 0.05rem;
  font-weight: 500;
}
h3 {
  font-family: "Lato", sans-serif;
  font-size: 24px;
  margin-bottom: 2rem;
  color: #545454;
}
@media only screen and (max-width: 470px) {
  h3 {
    font-size: 20px;
  }
}
h4 {
  font-family: "Lato", sans-serif;
  font-size: 25px;
  font-weight: 600;
  color: #4b77f2;
  margin-bottom: 2rem;
}
p {
  color: #525252;
  font-size: 20px;
}
a {
  color: #335ecf;
  font-family: "Open Sans", sans-serif;
  text-decoration: none;
}
a:hover,
a:active,
a:visited,
a:focus {
  color: #335ecf;
  text-decoration: underline;
}
.hero h2 {
  font-family: "Open Sans", sans-serif;
  font-size: 28px;
  color: #fff;
  font-weight: normal;
  margin-bottom: 3rem;
}
/* Development indicator styling */
.dev-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #dc3545;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
}

.dev-indicator::before {
  content: "⚠️ ";
  margin-right: 0.25rem;
}

@media (max-width: 768px) {
  .dev-indicator {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 12px;
    padding: 0.4rem 0.8rem;
  }
}

.hero .container {
  padding-top: 0;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.hero header {
  text-align: center;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.hero {
  min-height: 46rem;
  background-image: linear-gradient(
    to right,
    #335ecf,
    #296bd3,
    #2577d7,
    #2a82d8,
    #368dd9
  );
  background-repeat: repeat;
  background-size: auto;
  background-size: contain;
  background-repeat: no-repeat;
  background-position-x: center;
  position: relative;
  padding: 2rem 0;
  display: flex;
  align-items: center;
}

.hero::before {
  content: " ";
  background: url(/static/design_media/libravatar_header.svg);
  background-position-y: 0%;
  width: 100%;
  position: absolute;
  height: 100%;
  background-repeat: no-repeat;
  background-position-y: bottom;
  bottom: 0;
  background-position-x: center;
  max-width: 3000px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: -2px;
}
.hero .dropdown-menu {
  background: #fffffff0 !important;
}
.hero li :hover {
  background: #358cd930 !important;
}

@media only screen and (max-width: 1000px) {
  .hero {
    background-size: cover;
  }
}
/* Hero button overrides to ensure proper layout across all themes */
.hero .btn-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-bottom: 2rem !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: fit-content !important;
  text-align: center !important;
}

.hero .btn-group .btn {
  flex-shrink: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
  width: auto !important;
  min-width: 12rem !important;
  display: inline-block !important;
  float: none !important;
}

.hero .btn {
  background-color: #5488e6;
  border: solid 2px #d5dff9;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  margin-right: 0;
  height: 5rem;
  min-width: 12rem;
  color: #ffffff;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
  padding: 1rem 2rem;
  text-align: center;
}
.hero .btn:hover {
  background-color: #adc0e1ad;
  border: solid 2px #d5dff9;
  border-radius: 4px;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 500;
}
#account_dropdown {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#page {
  min-height: calc(100vh - 16rem);
}
footer {
  background-image: linear-gradient(
    to right,
    #335ecf,
    #296bd3,
    #2577d7,
    #2a82d8,
    #368dd9
  );
  background-size: auto;
  height: 16rem;
  background-size: cover;
  color: #fff;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  position: relative;
  width: 100%;
}
footer::before {
  content: " ";
  background: url(/static/design_media/libravatar_header.svg);
  background-position-y: 0%;
  width: 100%;
  position: absolute;
  height: 100%;
  background-repeat: no-repeat;
  background-position-y: bottom;
  top: 0;
  background-position-x: center;
  max-width: 2000px;
  transform: rotate(180deg);
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: -2px;
}
footer p {
  color: #fff;
  font-size: 16px;
  font-weight: 100;
}
footer .container {
  padding-top: 11rem;
}
@media only screen and (max-width: 470px) {
  footer {
    height: auto;
  }
}
.left {
  grid-area: left;
}
.middle {
  grid-area: middle;
}
.right {
  grid-area: right;
}

.main-content-container {
  display: grid;
  grid-template-areas: "left middle right";
  grid-gap: 5rem;
  padding: 10px;
}
@media only screen and (max-width: 1212px) {
  .main-content-container {
    grid-template-areas:
      "left left"
      "middle right";
  }
}
@media only screen and (max-width: 620px) {
  .main-content-container {
    grid-template-areas:
      "left"
      "middle"
      "right";
  }
  .hero h1 {
    font-size: 55px;
  }
  .hero h2 {
    font-size: 24px;
    line-height: 4rem;
  }
}

.main-content-container > div {
  background-color: #fff;
  text-align: center;
  padding: 2rem 2rem;
  border-radius: 16px;
  -webkit-box-shadow: 10px 10px 24px -3px rgba(0, 0, 0, 0.41);
  -moz-box-shadow: 10px 10px 24px -3px rgba(0, 0, 0, 0.41);
  box-shadow: 10px 10px 24px -3px rgba(0, 0, 0, 0.41);
  border: solid 1px #335ecf29;
}
.left {
  flex: 1;
  margin-bottom: 5rem;
}
.left p {
  width: 90%;
  margin: auto;
}
.middle {
  flex: 1;
}
.middle h2 {
  margin-bottom: 2rem;
}
.right {
  height: 32rem;
}
.right h2 {
  margin-bottom: 2rem;
}
/* Button System - Standardized button classes */
.btn-primary {
  background-color: #335ecf;
  color: #fff;
  border: 2px solid #335ecf;
  border-radius: 1.5rem;
  padding: 0.75rem 2rem;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
  letter-spacing: 0.02rem;
  min-width: 120px;
}

.btn-primary:hover {
  background-color: #2a4bb8;
  border-color: #2a4bb8;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(51, 94, 207, 0.3);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 94, 207, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(51, 94, 207, 0.3);
}

.btn-secondary {
  background-color: #fff;
  color: #335ecf;
  border: 2px solid #335ecf;
  border-radius: 1.5rem;
  padding: 0.75rem 2rem;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
  letter-spacing: 0.02rem;
  min-width: 120px;
}

.btn-secondary:hover {
  background-color: #335ecf;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(51, 94, 207, 0.3);
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 94, 207, 0.3);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(51, 94, 207, 0.3);
}

.btn-danger {
  background-color: #dc3545;
  color: #fff;
  border: 2px solid #dc3545;
  border-radius: 1.5rem;
  padding: 0.75rem 2rem;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
  letter-spacing: 0.02rem;
  min-width: 120px;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #c82333;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}

.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 14px;
  min-width: 100px;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 18px;
  min-width: 150px;
}

.btn-block {
  width: 100%;
  display: block;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

/* Legacy button class - now maps to btn-secondary for backward compatibility */
.button {
  background-color: #fff;
  color: #335ecf;
  border: 2px solid #335ecf;
  border-radius: 1.5rem;
  padding: 0.75rem 2rem;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
  letter-spacing: 0.02rem;
  min-width: 120px;
}

.button:hover {
  background-color: #335ecf;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(51, 94, 207, 0.3);
}

.button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 94, 207, 0.3);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(51, 94, 207, 0.3);
}

/* Override theme button text colors to ensure visibility */
.btn-primary {
  color: #fff !important;
}

.btn-secondary {
  color: #335ecf !important;
}

.btn-danger {
  color: #fff !important;
}

/* Ensure action buttons have proper text colors */
.action-buttons .btn-primary {
  color: #fff !important;
}

.action-buttons .btn-secondary {
  color: #335ecf !important;
}
#contribute {
  border: solid 1px #335ecf;
  font-size: 20px;
  width: 26rem;
  color: #335ecf;
}
.open > .dropdown-toggle.btn-primary:hover {
  color: #fff;
  background-color: #5588e6;
  border-color: #335ecf;
}

.btn-primary.active,
.btn-primary:active,
.open > .dropdown-toggle.btn-primary {
  color: #fff !important;
  background-color: #5588e6 !important;
  border-color: #ffffff26 !important;
}
.btn-group {
  float: left;
}
@media only screen and (max-width: 1122px) {
  .hero {
    min-height: 34rem;
  }
}

@media only screen and (max-width: 620px) {
  .hero {
    min-height: 30rem;
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero h2 {
    font-size: 24px;
    line-height: 1.4;
  }

  .hero .btn {
    width: 80%;
    margin-bottom: 1rem;
    justify-content: center;
    margin-left: 10% !important;
    margin-right: 10% !important;
  }

  /* Hero button mobile overrides */
  .hero .btn-group {
    flex-direction: column !important;
    width: 100% !important;
    justify-content: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero .btn-group .btn {
    width: 80% !important;
    margin-left: 10% !important;
    margin-right: 10% !important;
    margin-bottom: 1rem !important;
  }
}
@media only screen and (max-width: 470px) {
  .hero {
    min-height: 40rem;
    padding: 1rem 0;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero h2 {
    font-size: 20px;
    margin-bottom: 2rem;
  }

  .hero .btn {
    width: 90%;
    margin-bottom: 1rem;
    justify-content: center;
    margin-left: 5% !important;
    margin-right: 5% !important;
  }

  /* Hero button small mobile overrides */
  .hero .btn-group {
    flex-direction: column !important;
    width: 100% !important;
    justify-content: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero .btn-group .btn {
    width: 90% !important;
    margin-left: 5% !important;
    margin-right: 5% !important;
    margin-bottom: 1rem !important;
  }
}
@media only screen and (max-width: 400px) {
  #page {
    overflow: hidden;
  }
  .hero .btn {
    width: 80%;
    justify-content: center;
    margin-left: 10% !important;
    margin-right: 10% !important;
  }
  .btn-group {
    margin-left: 10%;
  }
  .hero .dropdown-menu {
    width: 80%;
    justify-content: center;
    margin-left: 10% !important;
    margin-right: 10% !important;
    top: 26rem;
  }
}
@media only screen and (max-width: 620px) {
  #page .container #home-form {
    margin-bottom: 2rem;
  }
  .btn-group,
  .btn-group-vertical {
    display: contents;
  }
  #contribute {
    width: unset;
  }
}
#contribute:hover {
  color: #fff;
}
label {
  font-size: 18px;
  font-weight: 100;
}
#toolscheck {
  font-size: 16px;
  font-weight: 100;
}
hr {
  margin-top: 2rem;
  margin-bottom: 4rem;
  border: none;
}
.pull-left a {
  color: #fff;
  text-decoration: underline;
}
.pull-left b {
  font-weight: 600;
}
header {
  -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 2s; /* Firefox < 16 */
  -ms-animation: fadein 2s; /* Internet Explorer */
  -o-animation: fadein 2s; /* Opera < 12.1 */
  animation: fadein 2s;
}

.navbarlibravatar {
  background: #335ecf; /* Old browsers */
  background: -moz-linear-gradient(
    -45deg,
    #335ecf 0%,
    #368dd9 100%
  ); /* FF3.6-15 */
  background: -webkit-linear-gradient(
    -45deg,
    #335ecf 0%,
    #368dd9 100%
  ); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(
    135deg,
    #335ecf 0%,
    #368dd9 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#335ecf', endColorstr='#368dd9',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  border-radius: unset;
  color: #fff;
  border: 0;
}

.navbarlibravatar a {
  color: #fff;
}

.navbarlibravatar .navbar-nav > li > a:hover,
.navbarlibravatar .navbar-nav > li > a:focus,
.navbarlibravatar .navbar-nav > .open > a {
  background-color: rgba(255, 255, 255, 0.12) !important;
}
.navbarlibravatar .dropdown-menu {
  background-color: #327fd6;
  border: 0;
}
.navbarlibravatar .navbar-right .dropdown-menu {
  background-color: #368dd9;
}
.navbarlibravatar .dropdown-menu > li > a {
  color: #ffffff;
}
.navbarlibravatar .dropdown-menu > li > a:hover {
  background-color: rgba(0, 0, 0, 0.2);
}
.navbar-toggle {
  position: absolute;
  right: 0;
  top: 0;
  padding: unset;
  background-color: transparent;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
  margin-top: auto;
  margin-bottom: auto;
}
.navbarlibravatar .navbar-brand:hover {
  color: #fff !important;
  text-decoration: none !important;
}
.navbar-header .navbar-toggle {
  padding-top: 0.2rem;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.panel {
  margin-top: 1rem;
  border-radius: 16px;
  -webkit-box-shadow: 10px 10px 24px -3px rgba(0, 0, 0, 0.41);
  -moz-box-shadow: 10px 10px 24px -3px rgba(0, 0, 0, 0.41);
  box-shadow: 10px 10px 24px -3px rgba(0, 0, 0, 0.41);
  border: 0;
}
.panel-heading {
  background: #335ecf; /* Old browsers */
  background: -moz-linear-gradient(
    -45deg,
    #335ecf 0%,
    #368dd9 100%
  ); /* FF3.6-15 */
  background: -webkit-linear-gradient(
    -45deg,
    #335ecf 0%,
    #368dd9 100%
  ); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(
    135deg,
    #335ecf 0%,
    #368dd9 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#335ecf', endColorstr='#368dd9',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  color: #ffffff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.panel-title label {
  margin-bottom: 0;
}
.panel-title a {
  color: #ffffff;
}
.unconfirmed-mail-form {
  display: inline-block;
  margin-right: 2rem;
  margin-bottom: 0rem;
}
#page .container .panel-body {
  min-width: 130px !important;
  min-height: 110px !important;
}
#id_export_file {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

#id_export_file + label {
  font-weight: 600;
  color: #335ecf;
  display: inline-block;
  margin: auto;
}

#id_export_file:focus + label,
#id_export_file + label:hover {
  color: #335ecf;
}

#id_photo {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

#id_photo + label {
  font-weight: 600;
  color: #335ecf;
  display: inline-block;
  margin: auto;
}

#id_photo:focus + label,
#id_photo + label:hover {
  color: #335ecf;
}

.navbar-toggle {
  font-size: 26px;
  margin-top: 0;
  padding-top: 0px;
  padding-bottom: 0px;
  font-weight: normal;
}

/* Form System - Standardized Styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  background-clip: padding-box;
  border: 2px solid rgba(51, 94, 207, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
}

.form-control:hover {
  border-color: rgba(51, 94, 207, 0.6);
}

.form-control:focus {
  border-color: #335ecf;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(51, 94, 207, 0.1);
}

.form-control:disabled {
  background-color: #f8f9fa;
  opacity: 0.65;
  cursor: not-allowed;
}

.form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

/* Enhanced form validation styling */
.alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-danger::before {
  content: "⚠️ ";
  margin-right: 0.5rem;
}

/* Form field error states */
.form-group.has-error .form-control {
  border-color: #dc3545;
}

.form-group.has-error .form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.has-error .form-label {
  color: #dc3545;
}

/* Field-level error messages */
.field-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.field-error::before {
  content: "• ";
}

/* Success states */
.form-group.has-success .form-control {
  border-color: #28a745;
}

.form-group.has-success .form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.field-success {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.field-success::before {
  content: "✓ ";
}

/* Form layouts */
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.form-col {
  flex: 1 0 0%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

/* Select styling */
.form-control select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Textarea styling */
.form-control textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox and radio styling */
.form-check {
  position: relative;
  display: block;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.form-check-input {
  position: absolute;
  margin-top: 0.3rem;
  margin-left: -1.25rem;
}

.form-check-label {
  margin-bottom: 0;
  font-weight: 400;
  color: #333;
}

/* Form container */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Theme compatibility overrides for forms */
.form-control {
  color: #333 !important;
  background-color: #fff !important;
  border-color: rgba(51, 94, 207, 0.3) !important;
}

.form-control:hover {
  border-color: rgba(51, 94, 207, 0.6) !important;
}

.form-control:focus {
  border-color: #335ecf !important;
  box-shadow: 0 0 0 3px rgba(51, 94, 207, 0.1) !important;
}

.form-label {
  color: #333 !important;
}

/* Form spacing and typography improvements */
form {
  margin-bottom: 2rem;
}

form h1,
form h2,
form h3 {
  margin-bottom: 1.5rem;
  color: #333;
}

form p {
  margin-bottom: 1rem;
  color: #666;
  line-height: 1.6;
}

/* Remove default margins from form elements */
.form-group:last-child {
  margin-bottom: 0;
}

/* Button group styling for forms */
.button-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  justify-content: flex-start;
  align-items: center;
}

.button-group .btn {
  flex-shrink: 0;
  margin: 0;
}

/* Ensure hero section btn-group is not affected */
.hero .btn-group {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Form section headers */
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.form-section h3 {
  margin-bottom: 1rem;
  color: #335ecf;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Help text styling */
.form-help {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
  font-style: italic;
}

/* Required field indicators */
.form-label.required::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
}

/* Responsive form adjustments */
@media (max-width: 768px) {
  .form-container {
    padding: 1rem;
    margin: 0 1rem;
  }

  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .form-row {
    flex-direction: column;
  }

  /* Button group mobile styling */
  .button-group {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 0.75rem;
  }

  .button-group .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Ensure hero buttons are not affected on mobile */
  .hero .btn-group {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}
.checkbox input,
.radio input {
  display: none;
}
.checkbox input + label,
.radio input + label {
  padding-left: 0;
}
.checkbox input + label:before,
.radio input + label:before {
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  display: inline-block;
  letter-spacing: 5px;
  font-size: 20px;
  color: #335ecf;
}
.checkbox input + label:before {
  content: "\f0c8";
}
.checkbox input:checked + label:before {
  content: "\f14a";
}
.radio input + label:before {
  content: "\f10c";
}
.radio input:checked + label:before {
  content: "\f192";
}

@media only screen and (max-width: 470px) {
  .navbar-nav .open .dropdown-menu > li > a {
    color: #fff;
  }
  .nav .open > a,
  .nav .open > a:focus,
  .nav .open > a:hover {
    background-color: #eeeeee40;
    border-color: #337ab7;
    color: #fff;
  }
}
.input-group-addon:last-child {
  border: 1px solid #5555554d;
  border-radius: 4px;
}

@media only screen and (min-width: 600px) {
  .btn-group,
  .btn-group-vertical {
    display: inline;
  }
}
@media only screen and (min-width: 2000px) {
  footer::before {
    background: none !important;
  }
  footer {
    height: 8rem;
    position: relative;
    bottom: 0;
  }
  footer .container {
    padding-top: 3rem;
  }
}
@media only screen and (min-width: 412px) and (max-width: 582px) {
  #page .container.row {
    display: inline-block;
  }
}
@media only screen and (max-width: 599px) {
  .hero .dropdown-menu {
    width: 56%;
    justify-content: center;
    margin-left: 2.5% !important;
    margin-right: 10% !important;
    top: 22rem;
  }
}
@media only screen and (max-width: 470px) {
  .hero .dropdown-menu {
    width: 80%;
    justify-content: center;
    margin-left: 10% !important;
    margin-right: 10% !important;
    top: 22rem;
  }
  .dropdown-menu > li > a {
    white-space: unset !important;
  }
}
@media only screen and (max-width: 427px) {
  .hero .dropdown-menu {
    width: 80%;
    justify-content: center;
    margin-left: 10% !important;
    margin-right: 10% !important;
    top: 26rem;
  }
}
@media only screen and (max-width: 290px) {
  .hero .dropdown-menu {
    margin-top: 7rem;
    width: 90%;
    margin-left: 5% !important;
    margin-right: 5% !important;
  }
}
@media only screen and (max-width: 230px) {
  .hero .dropdown-menu {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 11rem !important;
  }
}
.profile-container {
  border-top: solid 5px #2f95edb3;
  display: grid;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.profile-container img {
  margin: 0.5em;
}
.panel-body.profile > div,
.panel-body.profile > img {
  text-align: left;
}
.panel-heading.profile {
  background: none;
  border-top-left-radius: unset;
  border-top-right-radius: unset;
}
.profile-container > h3 {
  color: #353535;
  font-weight: bold;
}
.profile-container > ul > li > a,
.profile-container button {
  color: #353535;
  text-decoration: none;
}
.profile-container.active {
  border-top: solid 5px #335ecf;
}
.profile-container ul > li > button:hover,
.profile-container ul > li > a:hover {
  color: #335ecf;
}
.email-profile {
  grid-area: email;
}
.profile-container {
  padding-top: 2rem;
}
.profile-container > img {
  grid-area: img;
  margin: auto;
}
.profile-container > ul {
  grid-area: list;
  list-style-type: none;
  padding: 0;
  font-size: 18px;
}
.profile-container > ul > li {
  padding-top: 0.5rem;
}
@media only screen and (max-width: 420px) {
  .profile-container > ul > li {
    padding-top: 0.85rem;
  }
}
.profile-container > ul > li > a:hover {
  text-decoration: none;
}
.profile-container {
  display: grid;
  grid-template-areas:
    "img email email email email email"
    "img list list list list list";
  grid-gap: 0;
  grid-template-columns: 20% 80%;
}
@media only screen and (max-width: 700px) {
  .profile-container {
    grid-template-columns: 40% 60%;
  }
}
.profile-container > div,
profile-container > img {
  text-align: center;
}
.profile-container.active > img {
  max-height: 120px;
  max-width: 120px;
}
@media only screen and (max-width: 420px) {
  .profile-container.active > img {
    max-height: 80px;
    max-width: 80px;
  }
}
.profile-container > ul {
  display: none;
}
.profile-container.active > ul {
  display: block;
}
.profile-container > img {
  max-height: 80px;
  max-width: 80px;
}
h3.panel-title {
  margin-top: unset;
}
.profile-container > h3 {
  padding-top: 26px;
}
@media only screen and (max-width: 470px) {
  .profile-container > h3 {
    padding-top: 20px;
  }
}
.profile-container:hover {
  cursor: pointer;
}
.profile-container.active > h3 {
  padding-top: 12px;
}
.profile-container.active {
  cursor: pointer;
  background: #dcdcdcb5;
}
.profile-container.active:hover {
  cursor: auto;
}
@media only screen and (min-width: 768px) {
  .profile-container:hover ul {
    display: block !important;
  }
  .profile-container:hover {
    background: #dcdcdcb5;
  }
  .profile-container:hover img {
    max-height: 120px;
    max-width: 120px;
  }
  .profile-container:hover h3 {
    padding-top: 12px;
  }
}
.alert-success {
  color: #353535;
  background-color: #3582d71f;
}

/* Photo assignment page styles */
.nobutton {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.photo-card {
  width: 100%;
  margin: 0;
}

.photo-card .panel {
  width: 100% !important;
  margin: 0 !important;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .action-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.action-buttons .btn {
  width: 100%;
  text-align: center;
}

.action-buttons .btn-primary {
  color: #fff !important;
}

.action-buttons .btn-secondary {
  color: #335ecf !important;
}

@media (min-width: 768px) {
  .action-buttons .btn {
    width: auto;
    min-width: 200px;
  }
}
