input[type="button"] {
    display: none;
}

header {
    display: none;
}

div#submitbtn {
    display: none;
}

div#submitbtnpreview {
    display: none;
}

.button, button, input[type="submit"], input[type="reset"], input[type="button"] {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
}


/* Header styling */
.center-header {
    text-align: center;
    padding: 10px 0;
    font-size: 22px !important;
}

/* Basic container styling */

article {
    margin-bottom: 0;
    }

    .content1 {
        max-width: 600px;
        background-color: #f0f0f0;
        border-radius: 5px;
        padding: 40px 20px;
        color: #000000;
    }

    section#content p {
        margin: 12px 0;
    }

    /* Label and input styling */
.questionlabel, span[id^="otherfillinid"] {
    font-weight: bold;
    display: inline-block;
    width: 170px;
    vertical-align: middle;
}

.addresslabel input, .addresslabel select, select, div[id^="other"] input {
    max-width: 100%;
    width: calc(100% - 170px);
    display: inline-block;
    box-sizing: border-box; /* Ensure consistent sizing */
    color: #000000 !important;;
}

div[id^="other"] p {
    margin: 0; 
    display: flex; 
    align-items: center; 
    width: 100%; 
    margin-bottom: 15px; 
}


/* "This is not me" link styling */
.tinm, a#notMeLink {
    display: block;
    margin-left: 170px;
    text-decoration: none;
    padding-bottom: 10px;
    color: #2c2fc7;
    transition: color 0.3s ease;
}

.tinm:hover, a#notMeLink:hover {
    color: #259c88;
    text-decoration: underline;
}

/* Submit button styling */
.centerDN {
    clear: both;
    text-align: center;
    padding-top: 15px;
}

/* Button-like styling for the 'a' tag */
.centerDN a.letsubmit {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #0563c1;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.centerDN a.letsubmit:hover {
    background-color: #1a6aa6;
    color: white;
}


form {
    display: flex;
    margin-bottom: 0;
}

div#container {
    margin: 0 auto;
    padding: 0;
    width: auto;
}

section#content {
    width: 100%;
}

/* checkbox fix 09-2024 --------------------------------------------*/
input[type="checkbox"] + span.questionlabel,
input[type="radio"] + span.questionlabel {
    display: flex; /* Use flexbox to align checkbox and label */
    align-items: center; /* Vertically center the checkbox with the label */
    width: 90%; /* Ensure the span takes full width */
}

input[type="checkbox"] + span.questionlabel label,
input[type="radio"] + span.questionlabel label {
    font-size: 14px;
    display: block; 
    margin-left: 10px; 
    flex-grow: 1; 
}

/* end checkbox fix 09-2024 --------------------------------------------*/


/* Media query for screens smaller than 1081px --------------------------------------------*/
@media only screen and (max-width: 1081px) {
    section#content {
        width: auto;
        width: 100%;
        margin: 0;
    }

    form {
        display: flex;
        margin-bottom: 0;
    }
    
    div#container {
        margin: 0 auto;
        padding: 0;
        width: auto;
    }
    }

    /* Media query for screens smaller than 559px --------------------------------------------*/
    @media only screen and (max-width: 559px) {
    form {
        display: flex;
        margin-bottom: 0;
    }
    
    div#container {
        margin: 0;
        padding: 0;
        width: auto;
    }
}

/* Media query for screens smaller than 400px --------------------------------------------*/
@media only screen and (max-width: 400px) {

    .center-header {
        font-size: 18px !important;
        line-height: 1.2em !important;
    }

    .tinm, a#notMeLink {
        margin-left: 0px;
    }

    .questionlabel {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }

    .addresslabel input, .addresslabel select, .tinm, select {
        display: block;
        width: 100%;
        margin-left: 0;
    }

    span[id^="otherfillinid"] {
        margin-right: 0; /* Remove margin */
        margin-bottom: 5px; /* Add spacing below label */
    }

   div[id^="other"] input {
        width: 100%; /* Full width for input */
    }

    form {
        display: flex;
        margin-bottom: 0;
    }
    
    div#container {
        margin: 0;
        padding: 0;
        width: auto;
    }
}
