/* Styles for page area above calculator */

.alert {
  background-color: #F7FAFC;
  padding: 8px;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #cbd5e0;
}

.alert div {
  margin: 8px 0;
}

.title {
  text-align: center;
  margin: 20px 0 14px 0;
  font-weight: bold;
  font-size: 24px;
}

.subtitle {
  text-align: center;
  margin: 10px 0 10px 0;
  font-size: 15px; 
}

.subtitle a{
  color: #1d4ed8;
}

.third-title{
  font-style: italic;
  text-align: center;
  margin: 0 0 0 0;
  color: #718096;
}

.invisible{
  visibility: hidden;
}

/* Calculator-specific styles */
.calculator {
  margin-top: 10px;
  padding: 16px 24px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
}

#errors, #errors-header {
  color: #D63E04;
}

#errors-header .error-total {
  text-transform: uppercase;
  font-weight: bold;
}

#errors-header li {
  font-style: italic;
}

/* Turn off number spinners */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance:textfield;
}
/* Larger than default form */
#prescreener-form.usa-form, .usa-list li {
  max-width: none;
}

/* Keep input fields the same max width */
#prescreener-form.usa-form .usa-input, #prescreener-form.usa-form .usa-select {
  /* max-width: 20rem; */
}

fieldset.usa-fieldset:not(:first-child) {
  margin-top: 1.5rem;
}

fieldset.usa-fieldset.no-padding-top{
  margin-top: 0rem;
}

fieldset.usa-fieldset legend {
  font-weight: bold;
  width: 100%;
}

.usa-label {
  font-weight: bold;
  max-width: none !important;
}

.label-sub-text {
  color: #2F4F4F;
}

.currency_field_wrapper {
  position: relative;
}

.currency_field_wrapper input {
  padding-left: 20px;
}

.dollar_sign {
  position: absolute;
  top: 9px;
  left: 8px;
}

.field-required {
  line-height: 1.625;
  font-weight: 400;
  font-style: italic;
  color: #b50909;
}

.field-optional {
  line-height: 1.625;
  font-weight: 400;
  font-style: italic;
  color: #090cb5;
}

/* Calculator results styles */
#results {
  margin-top: 1.5em;
  margin-bottom: 24px;
}

.pass-green {
  color: #00a91c;
}

.fail-red {
  color: #d54309;
}

.explanation-link {
  cursor: pointer;
  font-weight: bold;
}

.explanation-link.clicked {
  cursor: default;
  font-style: italic;
  color: black;
  text-decoration: none;
}

.explanation-link.clicked:hover {
  color: black;
}

/* Utility classes */

.hidden {
  display: none;
}

#main {
  padding-bottom: 80px;
}

#snapscreener-body #main{
  padding-bottom: 40px;
}

/* Gross income dev table */
.tests-table { 
    border-collapse: collapse; 
    margin: 50px auto;
    text-align: center;
    border: 1px solid #cbd5e0;
}
  
.tests-table tr,  .tests-table td, .tests-table th  {
  text-align: center;
    padding-right: 1rem;
    padding-left: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.tests-table th {
  font-weight: bold;
}

.tests-table tr:nth-child(even), th{
  background-color: #F7FAFC;
}
.tests-table tr:nth-child(odd), th{
  background-color: white;
}

.pointer{
  cursor: pointer;
}

.hotline-or, .hotline-number, .hotline-email{
  display: inline;
}


/* Header */
header{
  margin-bottom: 20px;
}
#main-header{
  background-color: #F1F5F9;
  border-bottom: 1px solid #cbd5e0;
  padding: 25px 0px;
}
#project-logo{
  float: left;
  padding-top: 2px;
  width: 42px;
  height: 44px;
  margin-right: 8px;
}
#project-title{
  font-weight: bold;
  font-size: 22px;
  color: #000000;
}
#project-subtitle{
  font-style: italic;
  font-size: 16px;
  color: #718096;
}

#dev-state-change{
  width: 220px;
  margin-top: -44px;
  float: right;
}

#sub-header-message{
  background-color: #2d3748;
  color: white;
  padding: 12px 12px;
  text-align: center;
}

#sub-header-message a{
  color: white !important;
}

#sub-header-warning{
  background-color: #E53E3E;
  color: white;
  padding: 12px 12px;
  text-align: center;
}

.italic{
  font-style: italic;
}

@media only screen and (max-width: 1023px) {
  #main-header {
    padding: 25px 20px;
  }
  #footer-disclaimer{
    padding: 1rem;
  }
  .calculator {
    padding: 0 0;
    box-shadow: none;
  }
}

@media only screen and (max-width: 500px) {
  #dev-state-change{
    width: 160px;
  }
  .calculator {
    padding: 0 0;
    box-shadow: none;
  }
}

@media only screen and (max-width: 690px) {
  #dev-state-change{
    width: 190px;
  }
}
@media only screen and (max-width: 480px) {
  header{
    margin-bottom: 0px;
  }
  #dev-state-change{
    width: 70px;
  }
  .title{
    font-size: 22px;
  }
  .third-title a{
    margin-top: 6px;
    display: block;
  }  
  #project-subtitle{
    width: 300px;
  }
}


@media only screen and (max-width: 440px) {
  .hidden-under-440{
    display: none;
  }
}

@media only screen and (max-width: 400px) {
  #main-header{
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media only screen and (max-width: 360px) {
  #main-header{
    padding-left: 6px;
    padding-right: 6px;
  }
  #project-subtitle{
    width: 240px;
    font-size: 14px;
  }
}

/* USWDS Overrides */
.usa-prose>p{
  max-width: none;
}

/* Footer overrides */
/* Colors MIT license via https://tailwindcss.com/docs/background-color#app  */
.usa-footer__primary-section{
  background-color: #f7fafc;
  border-top: 1px solid #cbd5e0;
}

#show-test-limits-footer{
  font-weight: bold;
}

#footer-disclaimer{
  font-style: italic;
  font-size: 16px;
  color: #4a5568;
  padding-bottom: 30px;
}

#no-state-selected-title{
  text-align: center;
}

#no-state-selected{
  margin-top: 40px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  padding-bottom: 60px;
}

#no-state-selector{
  margin-left: 5%;
  width: 90%;
  cursor: pointer;
  margin: 0 auto;
}

.underline{
  text-decoration: underline;
}

.no-underline{
  text-decoration: none;
}

.d-inline{
  display: inline;
}

#copy-link{
  color: #1b6aa5;
  margin-left: 12px;
  cursor: pointer;
  vertical-align: -2px;
}

#copy-link-text, #print-link-text{
  vertical-align: 3px;
}


#copy-link-tag{
  margin-left: 4px;
  vertical-align: 3px;
  background-color: #059669 !important;
  text-transform: none !important;
}

#print-link{
  color: #1F2937;
  margin-left: 14px;
  cursor: pointer;
  vertical-align: -2px;
}

#print-link svg{
  vertical-align: -2px;
  margin-right: 3px;
}

/* Content print ready */
.calculator.print-ready{
  box-shadow: none;
  padding: none;
  margin-top: 10px;
}
#main.print-ready{
  padding-bottom: 0px;
}

/* Student question */
#student_info_box.usa-alert--info{
  background-image: none;
}
#student_info_box.usa-alert{
  padding-left: 0rem;
  padding-right: .5rem;
  padding-top: .125rem;
  padding-bottom: 0;
}
#student_info_box.usa-alert ul {
  padding-left: 0.3rem;
}

#student_info_box .usa-alert__text p{
  margin-left: -16px;
}

/* Language */
#lang-toggle{    
  padding-top: 14px;
  text-align: center;
  margin-bottom: 14px;
  font-size: 0;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.lang-option{   
  position: relative;
  border-radius: 6px;
  border-width: 1px;
  padding: 8px 12px;
  margin: 0 0 0 -1px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25rem; 
  color: #111827; 
  cursor: pointer;
  border-color: #d1d5db;
  border-style: solid;
  box-shadow: none;
}
@media only screen and (max-width: 320px) {
  .lang-option{  
    padding: 8px 8px;
  }
}
.lang-option:focus{
  z-index: 100 !important;
}
.lang-option:nth-child(1){
  border-top-right-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
}
.lang-option:nth-child(2){
  border-radius: 0px !important;
}
.lang-option:nth-child(3){
  border-top-left-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
}
.lang-option.active{
  background-color: #F3F4F6;
} 
.lang-option:not(.active){
  background-color: white;
}

.en-lang .es, .en-lang .hc{
  display: none;
}
.es-lang .en, .es-lang .hc{
  display: none;
}
.hc-lang .en, .hc-lang .es{
  display: none;
}

.link-not-button{
  cursor: pointer;
  background-color: white;
  border: none;
  padding: 0px;
}

.first-field-padding{
  margin-top: 8px;
}

select{
  cursor: pointer;
}

.custom-radio .usa-radio{
  margin-top: 8px;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
}
.custom-radio .usa-radio label:before {
  height: 39px;
  border-radius: 4px;
  width: 80px;
  position: absolute;
  z-index: -100;
  box-shadow: 0 0 0 2px #1b1b1b4d;
  margin-top: -8px;
}
.custom-radio .usa-radio__input:checked+.usa-radio__label:before {
  background-color: #005ea21a;
  -webkit-box-shadow: 0 0 0 2px #005ea2;
  box-shadow: 0 0 0 2px #005ea2;
}
.custom-radio .usa-radio__label{
  text-align: center !important;
  border-radius: 4px;
  padding: 0.55rem 1rem 0.55rem 1rem;
  width: 80px !important;
  margin-right: 14px;
  text-indent: 4px;
  margin-bottom: 0px;
  -webkit-user-select: none; 
  -ms-user-select: none;
  user-select: none;
}
.usa-checkbox{
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; 
  -ms-user-select: none;
  user-select: none;
}

/* Display */
.d-none{
  display: none;
}

#resize-force{
  height: 1px;
}
#resize-force.big{
  height: 2px;
}

/* Fix */
.usa-checkbox__label:before{
  margin-right: 8px !important;
}


/* More custom styles */
@media screen and (max-width: 630px) {
  .title, .subtitle, .third-title {
      text-align: left;
  }
}

#lang-toggle{    
padding-top: 24px;
text-align: center;
}
.lang-option{    
display: inline;
cursor: pointer;
padding: 8px;
padding-left: 12px;
padding-right: 12px;
border: 1px solid #D1D5DB;
border-radius: 4px;
}
.lang-option.active{
background-color: #2563EB;
color: white;
} 

.en-lang .es{
display: none;
}
.es-lang .en{
display: none;
}

select{
cursor: pointer;
}

.border-b-0{
  border-bottom: none !important;
}

.no-padding-no-margin{
  padding: 0; 
  margin: 0;
}

.med-table-small-text{
  border-top: none !important; 
  font-size: 15px;
  color: #4b5563;
  text-align: center;
}

.med-table-footer-small-text{
  border-top: none !important; 
  font-size: 15px;
  color: #4b5563;
  text-align: center;
}

.med-pathways-table{
  width:100%; 
  margin-bottom: 4px;
}