body:has(.tabs-wrapper) {
    background-color: color-mix(in oklab, var(--light-one) 70%, white);
}

/* Style the tabbed menu */
.tabs-wrapper {
    max-width: 520px;
    margin-inline: auto;
    margin-block: 3.2rem;
}

.tabs-wrapper h1 {
    text-align: center;
    font-size: 1.75rem;
}

.tabs-wrapper .input-group {
    margin-bottom: 1.75rem;
}

.tabs-wrapper .input-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.tabs-wrapper .input-group input,
.tabs-wrapper .input-group select {
    display: block;
    width: 100%;
    padding: 10px 36px 10px 10px;
    border: 1px solid var(--light-two);
    border-radius: 5px;
    outline: none;
    color: var(--body-type-color);
    background-color: white;
}

.tabs-wrapper .input-group {
    position: relative;
}

.tabs-wrapper .input-group.password svg {
    width: 16px;
    height: fit-content;
    stroke: gray;
    position: absolute;
    right: 12px;
    top: 35px;
    background-color: white;
    display: none;
}

.tabs-wrapper .input-group #hide-password {
    fill: gray;
}

.tabs-wrapper .input-group svg.active {
    display: inline-block;
}

.tabs-wrapper .input-group input[placeholder] {
    font-size: 14px;
}

.tabs-wrapper .input-group button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    font-weight: 600;
    margin-top: 2rem;
}

.tab {
    display: flex;
    overflow: auto;
}

.tab a {
    text-decoration: none;
}

.tab button {
    display: flex;
    width: 100%;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 12px 10px 12px;
    font-size: 13px;
}

.tab button.active {
    border-bottom: 5px solid var(--primary);
    padding-bottom: 9px;
    color: var(--primary);
}

.tabcontent {
    display: none;
    border: none;
    margin: 2rem 0;
    padding: 3rem 1.125rem 1.525rem 1.125rem;
    background-color: white;
}

.tabcontent p {
    color: red;
    font-size: smaller;
}

.tabcontent p strong {
    color: black;
}

.tabcontent.active {
    display: block;
}

footer {
    margin-top: auto;
}

.newsletter-email-notification {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 2.75rem 0;
}

.checkbox-wrapper {
    position: relative;
}

.checkbox-wrapper .checked {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    border: 1px solid red;
}

.checkbox-wrapper input:checked ~ svg {
    height: calc(var(--size) * 0.6);
    -webkit-animation: draw-checkbox-28 ease-in-out 0.2s forwards;
    animation: draw-checkbox-28 ease-in-out 0.2s forwards;
}

.checkbox-wrapper label:active::after {
    background-color: var(--light-four);
}

.checkbox-wrapper label {
    line-height: var(--size);
    cursor: pointer;
    position: relative;
}

.checkbox-wrapper small {
    line-height: var(--size);
    font-size: 0.75rem;
}

.checkbox-wrapper label:after {
    content: "";
    height: var(--size);
    width: var(--size);
    margin-right: 8px;
    float: left;
    border-radius: 3px;
    transition: 0.15s all ease-out;
}

.checkbox-wrapper label:after {
    border: 2px solid var(--third);
}

.checkbox-wrapper svg {
    stroke-width: 3px;
    height: 0;
    width: calc(var(--size) * 0.6);
    position: absolute;
    left: calc(var(--size) * 0.21);
    top: calc(var(--size) * 0.2);
    stroke-dasharray: 33;
}

/* Input validation */
.create-account-form .input-group small {
    margin-top: 0.35rem;
}

.create-account-form .input-group input:valid {
    border: white;
    outline: 1px solid green;
}

.create-account-form .input-group input.in-focus:invalid {
    outline: 1px solid red;
    border: white;
}

.create-account-form .input-group .error {
    color: red;
    font-size: 0.75em;
    display: block;
}

.create-account-form .file-input-wrapper label {
    width: 100%;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.create-account-form .file-input-wrapper .file-upload input {
    display: none;
}

.create-account-form .file-input-wrapper .file-upload {
    display: block;
    padding: 4px 10px;
    cursor: pointer;
    background-color:var(--light-two);
    border-radius: 5px;
    height: 48px;
}

.create-account-form .file-input-wrapper svg {
    display: block;
    margin: 0.2125rem auto 0 auto;
    fill: var(--primary);
    background-color: transparent;
}

.create-account-form .file-input-wrapper small {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    color: red;
}

.create-account-form .file-input-wrapper small.selected {
    font-weight: bold;
    color: var(--secondary);
}

.checkbox-wrapper svg {
    stroke: var(--primary);
}

.checkbox-wrapper svg {
    stroke: var(--third);
}

@media screen and (min-width: 768px) {
    .tab button {
        padding: 14px 16px 14px 16px;
        font-size: 17px;
    }

    .tab button.active {
        font-weight: 700;
    }

    .tabcontent {
        padding: 3rem 1.5rem 1.525rem 1.5rem;
    }
}
