/* custom.css */
html, body {
  height: 100%;
  margin: 0;
}

.wrapper{min-height: 100%;margin-bottom: -82px;}
.push{height: 82px;}
footer .copyright{
    height: 82px;
    background: #169045;
    padding: 30px 0;
    text-align: center;
    color: #fff;
    font-weight: bold;
    width:100%;
}
.homepage{padding-top:2rem;}

body.ios input[type="text"],
body.ios input[type="number"],
body.ios select, body.ios #form_dateOfBirth select{
  appearance: none;
  -webkit-appearance: none;
  background:unset;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  outline: none;
  width:100%;
  max-width:200px;
}
body.ios select, body.ios #form_dateOfBirth select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M6 8L0 0h12L6 8z" fill="%23333"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}
body.android input[type="text"],
body.android input[type="number"],
body.android select, body.android #form_dateOfBirth select {
  appearance: none;
  -webkit-appearance: none;
  background:unset;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 16px;
  color: #444;
  outline: none;
  width:100%;
  max-width:200px;
}
body.android select, body.android #form_dateOfBirth select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M5 6L0 0h10L5 6z" fill="%23444"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}
body.android select.spinner, body.ios select.spinner, body.ios #form_dateOfBirth select, body.android #form_dateOfBirth select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px 16px;
  width: 100%;
  font-size: 16px;
  color: #444;
  outline: none;
  cursor: pointer;
  position: relative;
}
/* Add a custom arrow for the dropdown */
body.android select.spinner::after, body.ios select.spinner::after, body.ios #form_dateOfBirth select:after, body.android #form_dateOfBirth select:after{
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  background:unset;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6" width="10" height="6"><path d="M0 0l5 6 5-6H0z" fill="%23444"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translateY(-50%);
  pointer-events: none;
}
/* Hover and focus styles */
body.android select.spinner:hover, body.ios select.spinner:hover, body.android #form_dateOfBirth select:hover, body.ios #form_dateOfBirth select:hover
body.android select.spinner:focus, body.ios select.spinner:focus, body.android #form_dateOfBirth select:focus, body.ios #form_dateOfBirth select:focus {
  border-color: #666;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M5 6L0 0h10L5 6z" fill="%23444"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}
/* Optional: Disable spinner style */
body.android select.spinner:disabled, body.ios select.spinner:disabled, body.ios #form_dateOfBirth select:disabled, body.android #form_dateOfBirth select:disabled {
  background-color: #f5f5f5;
  color: #aaa;
  border-color: #ddd;
  cursor: not-allowed;
}
body.android select:hover:focus, body.ios select:hover:focus {
  background : transparent;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M6 8L0 0h12L6 8z" fill="%23333"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}
.spinner-wrapper::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 16px;
  height: 16px;
  background-image: url('spinner-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}
tr.top_image_grid{display: flex;justify-content: space-between;}
tr.top_image_grid td{padding-bottom:10px;}
tr.top_image_grid span{
    font-weight: bold;
    color: #000;
    font-size: 16px;
    display:block;
}

.mobile_symbol{display:none !important;}
.desktop_symbol{display:block !important;}

/* body.local-de .test-inner.pcs .choices input + label  { font-size: 12px; } */

.language-selection { display:flex; justify-content: end; align-items: center; }
.language-selection select { width: auto !important; min-width: 110px; padding: 6px 24px 6px 16px !important; }

@media screen and (min-width: 960px) {
    .recall_options label{padding-bottom:10px;}
}

@media screen and (max-width: 960px) {
    body{background:unset;}
    body p{font-size:17px;color:#000000;line-height:1.5;}
    header.base-green{text-align: left;padding:20px 1.5rem;margin-bottom: 25px;}
    main{box-shadow: unset;border: unset;padding: 0 1.5rem !important;margin: 0 0 20px 0 !important;border-radius: unset;}
    main.homepage .flex.content-wrapper{display:block;}
    .homepage .content-wrapper>div:first-child{padding-right:0;}
    main h1:first-child, main h2:first-child, .background-info h1{
        margin-top: 20px;
        margin-bottom: 1em;
        font-size: 24px;
        font-weight: bold;
        color: #000;
    }
    .info-form label:not(.label_with_style){display:block;margin-right:0;margin-bottom:0;}
    table.radiobut.nomargin tr:nth-child(1) td:nth-child(2), table.radiobut.nomargin tr:nth-child(1) td:nth-child(3), table.radiobut.nomargin tr:nth-child(1) td:nth-child(5), table.radiobut.nomargin tr:nth-child(1) td:nth-child(8){display:none;}
    table.radiobut.nomargin tr td{width:33%;}
    table.radiobut.nomargin tr:nth-child(5) td:nth-child(2), table.radiobut.nomargin tr:nth-child(5) td:nth-child(3), table.radiobut.nomargin tr:nth-child(5) td:nth-child(4){display:none;}
    table.radiobut.nomargin tr:nth-child(7) td:nth-child(2), table.radiobut.nomargin tr:nth-child(7) td:nth-child(3){display:none;}
    table.radiobut.nomargin tr:nth-child(8) td:nth-child(5){display:none;}
    main.recall div.flex{display:block;}
    .recall table{width:auto;}
    .recall td{padding: 0 !important;width: 10% !important;}
    .recall td img{width:60px;height:50px;}
    .recall .recall_options{display: grid;grid-template-columns: 1fr 1fr;gap: 10px;}
    .recall .recall-question-input{padding:0;}
    .desktop_symbol{display:none !important;}
    .mobile_symbol{display:block !important;}
    #symbols-test #test-inner tr{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        gap: 0;
        width: 100%;
    }
    #symbols-test #test-inner .table-button.selects{margin-top:10px;}
    #symbols-test #test-inner tr td select{font-size:11px;margin:0 auto;display:block;padding:10px 0;text-align:center;}
    /*#symbols-test .table-button.selects tbody{overflow-x: auto;display: block;}*/
    main.pcs .test-inner.pcs{flex-direction: column;}
    main.pcs .test-inner.pcs .pcs-table-row .row-item{justify-content: space-between;}
    main.pcs .test-inner.lcs{flex-direction: column;}
    form .Table-one{width:100%;}
    form .Table-one tr{display:block;}
    form .Table-one tr td:nth-child(2){display:flex;}
    .center-controls{display:block !important;}
    #form_save, button.nav{font-size: 1.2em;margin-bottom:15px;}
    .cft-score.overall-risk{box-shadow: unset;padding: 0;}
    main.clearfix div.flex{display:block;}
    main.clearfix div.flex article{box-shadow: unset;padding: 0;}
    main.clearfix div.flex article.cognitive-results{margin-left:0;}
    .bottom_page_button{display:block !important;}
    .cft-score h1{font-size:20px !important;}
    .bottom_page_button button{font-size:1em;}
    .background-info #form>div:not(:last-child){margin-bottom:0;}
    #symbols-test #test-finished, #symbols-test .right-controls{padding:0 !important;}
    .pcs-intro table.radiobut { font-size: 14px; }
}

@media (max-width: 768px) {
  .radiobut { margin-bottom: 15px; }
  .radiobut tr { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
  .radiobut input[type="radio"] + label { font-size: 1rem; }
  .radiobut td.message { width: 100%; text-align: center; order: 2; }
  .radiobut td.message p { padding:0; margin-top:0; margin-bottom:15px; font-size: 1rem; }
  .radiobut tr:not(:last-child) td { border-bottom-width: 0.5em; }
}

.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
