@import url(subpagesAll.css);
@import url(subpagesRight.css);
/*colour block right*/
.headingHolder h1 {
    background-color: var(--referral);
}
h2 {
    color: var(--referral);
}
h4 {
    display: inline-block;
    padding-right: 2rem;
    font-size: 1rem;
}
legend+h4,
h4+.emphasis {
    margin-top: 0;
}
h4:has(+.emphasis) {
    margin-bottom: 0;
}
.fixedWidth {
    width: 30rem;
}
/*h4:has(~[type="radio"]) {
    font-weight: normal;
    color: initial;
    font-size: 1rem;
}*/
form p,
form li {
    font-size: 1rem;
}
ol {
    padding-left: 1rem;
    margin-top: 0;
}
fieldset {
    border: 3px solid var(--services);
    margin: 2rem 0 0 0;
    padding: .5rem;
}
fieldset:last-of-type {
    margin-bottom: 3rem;
}
legend {
    font-size: 1.5rem;
    color: var(--services);
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.hiddenLarge {
    display: none;
}
.cols2 {
    columns: 2 20rem;
}
.cols2 [type="checkbox"]+label {
    width: 80%;
}
.pairs label {
    margin-bottom: 2rem;
    width: 30%;
    display: inline-block;
}
.pairs label:has(+textarea) {
    width: 44%;
    vertical-align: top;
}
label:has(+[type="radio"]) {
    vertical-align: initial;
}
.pairsWide label {
    width: 40%;
}
label:has(+[type="radio"]) {
    width: auto;
    display: inline-block;
}
.nopairs * {
    display: block;
}
input:not([type]),
select,
[type="tel"], 
[type="number"], 
[type="email"],
[type="date"] {
    height: 2.5rem;
}
input:not([type]), 
[type="tel"], 
[type="number"], 
[type="email"],
select {
    width: 60%;
}
.goog-te-combo {
     width: initial; 
}
.g-recaptcha {
    /* text-align: center; */
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
[type="checkbox"]~label:not([for="menubutton"]) {
    width: auto;
}
.cols2 .pairs .narrow {
    width: 80%;
}
label {
    padding-right: .5rem;
    vertical-align: top;
}
textarea {
    width: 40%;
    height: 5rem;
}
.middle {
    width: 55%;
}
.wide {
    width: 100%;
}
.containerButtons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
}
input[type="submit"], 
input[value*="Reset"] {
    width: 8rem;
    height: auto;
    padding: 1rem;
    background-color: var(--referral);
    color: var(--neutralLight);
    font-size: 1.2rem;
    border: none;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .5);
    transition: .3s;
}
input[type="submit"]:hover, 
input[value*="Reset"]:hover {
    opacity: .7;
    cursor: pointer;
}
table {
    border-collapse: collapse;
}
thead {
    position: sticky;
    top: 0;
    background-color: var(--neutralLight);
}
td:first-of-type {
    width: 70%;
    height: 5rem;
}
td:nth-of-type(2), td:nth-of-type(3) {
    width: 4%;
    text-align: center;
}
td:nth-of-type(4) {
    width: 10%;
    text-align: center;
    vertical-align: middle;
}
table textarea {
    width: 100%;
    height: 4rem;
    resize: none;
}
tr:nth-of-type(even) {
    background-color: #f4f7f7;
}
.largebottom {
    margin-bottom: 3rem;
}
.emphasis {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--contact);
}
legend+.emphasis {
    margin-top: 0;
}
.check {
    color: red;
    font-weight: bold;
}
#language {
    float: right;
    margin-right: .43rem;
}
@media only screen and (max-width: 1200px) {
    .pairs label:not(.narrow) {
        width: 35%;
    }
    td:first-of-type {
        height: 5rem;
    }
    .middle {
        width: 64%;
    }
}
@media only screen and (max-width: 900px) {
    .hiddenBreak:not(.hours .hiddenBreak) {
        display: block;
    }
}
@media only screen and (max-width: 690px) {
    .textHolder {
        padding-left: 1rem;
    }
}
@media only screen and (max-width: 650px) {
    thead {
        display: none;
    }
    tr:nth-of-type(even) {
        background-color: transparent;
    }
    td:first-of-type {
        display: block;
        width: 100%;
        height: auto;
    }
    td:nth-of-type(2), 
    td:nth-of-type(3) {
        display: inline-block;
        width: 25%;
    }
    td:nth-of-type(4),
    td:nth-of-type(5) {
        display: block;
        width: 100%;
    }
    td textarea {
        width: 100%;
    }
    table input[id*="Yes"], 
    table input[id*="No"] {
        position: relative;
    }
    table input[id*="Yes"]::before,
    table input[id*="No"]::before {
        font-size: 1rem;
        position: absolute;
        left: -2rem;
    }
    table input[id*="Yes"]::before {
        content: "Yes";
    }
    table input[id*="No"]::before {
        content: "No";
    }
    #submit, 
    #reset {
        padding: .5rem;
    }
}
@media only screen and (max-width: 530px) {
    .fixedWidth {
        width: initial;
    }
}
@media only screen and (max-width: 500px) {
    table {
        margin-top: 2rem;
    }
    input:not([type="checkbox"]):not([type="radio"]),
    label:not(label:has(+[type="radio"])):not(label:has(+[type="checkbox"])):not(.narrow),
    select,
    textarea {
        display: block;
        width: 100%;
    }
    [type="checkbox"]+label:not[for="menubutton"] {
        display: inline-block;
        width: auto;
    }
    input:not([type]) {
        width: 100%;
    }
    .pairs label {
        margin-bottom: 0;
    }
    .pairs label:not(.narrow) {
            width: 100%;
    }
    select:not(.goog-te-combo) {
        width: 100%;
    }
    /*.hiddenBreak {
        display: none;
    }*/
    .largebottom {
        margin-bottom: 0;
    }
    td textarea {
        margin-bottom: 2rem;
    }
    .middle {
        width: 100%;
    }
    label[for="language"],
    label[for="reason"],
    label[for="otherCurrentServices"] {
        margin-top: 1rem;
    }
}
@media only screen and (max-width: 400px) {
    td:nth-of-type(2), 
    td:nth-of-type(3) {
        width: 50%;
    }
}    
@media only screen and (max-width: 350px) {
    label:has(+[name="pronoun"]) {
        width: 50%;
    }
}