/* ACCORDION STYLES */
.tabs {
    overflow: hidden;
}

.tab {
    width: 100%;
    color: white;
    overflow: hidden;
}

.tab-label {
    border-bottom: 2px solid var(--color-hertha-digitalblue);
    color: var(--color-hertha-digitalblue);
    font-family: var(--font-default);
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    padding: 1em 0 1rem 0.25rem;
    background: var(--color-hertha-white);
    cursor: pointer;
    margin-bottom: 0;
    transition: all var(--default-transition-time) ease-out;
}

.tab-label svg {
    margin-right: 0.5rem;
}

.tab-label:hover {
    color: var(--color-hertha-midnight);
    fill: var(--color-hertha-midnight);
}

.tab-label:after {
    color: var(--color-hertha-digitalblue);
    content: url('./../img/plus.svg');
    width: 1em;
    height: 1em;
    margin-left: auto;
    text-align: center;
    transition: all 0.35s;
    transform: rotate(45deg);
}

.tab-content {
    max-height: 0;
    padding: 0;
    color: var(--color-hertha-midnight);
    background: white;
    transition: all 0.35s;
}

.tab-close {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    font-size: 0.75em;
    background: var(--color-hertha-midnight);
    cursor: pointer;
    transition: all var(--default-transition-time) ease-out;
}

.tab-close:hover {
    background: var(--color-hertha-digitalblue)
}

.tab-checkbox {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.tab-checkbox:checked +.tab-label {
    background: var(--color-hertha-white);
    color: var(--color-hertha-midnight);
}

.tab-checkbox:checked +.tab-label:after {
    transform: rotate(0deg);
}

.tab-checkbox:checked ~.tab-content {
    max-height: fit-content;
    padding: 0;
    margin-top: 1rem;
}

.form-group.form-group-tab {
    margin-left: 0;
    margin-right: 0;
}

.form-group.hertha-form-50__item,
.form-group.cta-area {
    margin-left: 0;
    margin-right: 0;
}

.col-xs-12 ,.col-sm-12 ,.col-md-12 ,.col-lg-12 {
    padding-left: 0;
    padding-right: 0;
}

.form-group.cta-area{
    padding-right: 10px;
    padding-left: 10px;
}

.tab-indicator {
    position: relative;
}

.tab-indicator-number {
    position: absolute;
    top: 0;
    left: 11px;
}

/* HERTHA FORM 50/50 */
.hertha-form-50 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.hertha-form-50 .hertha-form-50__item:first-child {
    padding-right: 0.5rem;
}

.hertha-form-50 .hertha-form-50__item:last-child {
    padding-left: 0.5rem;
}

.hertha-form-50 .hertha-form-50__item.select {
    width: 250px;
}

.hertha-form-50 .hertha-form-50__item.date {
    width: 55%;
}

.form-group.privacy {
    margin: 2rem 0 ;
}

.form-group .no-number-help-text {
    margin: 0.5rem 0 0.5rem 2.5rem;
}

.privacy .hertha-checkbox input[type=checkbox] {
    width: 7rem;
}

#user\.attributes\.noNumber[aria-invalid="true"]:not(:checked),
#user\.attributes\.gdprAndPrivacy[aria-invalid="true"]:not(:checked),
#user\.attributes\.parentalApproval[aria-invalid="true"]:not(:checked){
    border: 3px solid var(--color-hertha-red);
}

#parentalApproval {
    visibility: hidden;
    margin: 0;
    height: 0;
}

#parentalApproval.visible{
    visibility: visible;
    margin: auto;
    height: auto;
}

#parentalApproval .hertha-checkbox{
    height: inherit;
    flex-wrap: wrap;
    padding: 0;
}

#parentalApproval .hertha-checkbox span{
    width: 80%;
    margin-left: 1rem;
    font-weight: 600;
}

#parentalApproval .hertha-checkbox span#input-error-parentalApproval{
    font-weight: initial;
}

.tab-checkbox[data-errors="true"] ~ .tab-content .hertha-form-50 .hertha-form-50__item.select,
#kc-register-form > div.tabs > div:nth-child(1) > div > div:nth-child(6) > div  {
    margin-bottom: 0;
}
.tab-checkbox[data-errors="true"] ~ .tab-content div:not(.hertha-form-50) {
    height: fit-content;
}

#kc-register-form .form-group.privacy .hertha-checkbox {
    flex-wrap: wrap;
}

#kc-register-form .form-group.privacy .hertha-checkbox input {
    width: auto;
}

#kc-register-form .form-group.privacy .hertha-checkbox label {
    width:80%;
}

select.pf-c-form-control[aria-invalid="true"] {
    --pf-c-form-control--invalid--BackgroundPosition: 95% 5px;

}

.tab-checkbox[data-errors="true"] ~ .tab-content div:nth-of-type(2),
.tab-checkbox[data-errors="true"] ~ .tab-content .form-group.hertha-form-50__item.date .hertha-input {
    margin-bottom: 15px;
}

#user\.attributes\.country ~ label{
    top: 10px;
    position: absolute;
    left: 1.7rem;
    font-size: 12px;
}

#kc-registration > div > a {
    margin-top: 5px;
}

.modalWrapper {
    box-sizing: border-box;
}

.modalWrapper p {
    margin: 10px 0;
}

.modalWrapper div {
    display: flex;
}

.toggleBtn {
    border: none;
    width: auto;
    text-decoration: underline;
    background: none;
    width: max-content;
    padding: 0;
}

.modalWrapper Button.pf-c-button.hertha-accept-button {
    margin-top: 10px;
    width: 50%;
}

#modal {
    display: none;
    position: absolute;
    top: 380px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-hertha-white);
    border: 1px solid #004FA5;
    padding: 40px;
    z-index: 10000;
    box-shadow: var(--pf-global--BoxShadow--lg);
    width: 600px;
}

#modal-info {
    background: #0050a5e0;
    position: absolute;
    bottom: 0;
    left: 0;
    height: auto;
    width: 100%;
    z-index: 4000;
    padding: 40px;
}

#modal-info p {
    color: #fff;
}

.modal-close-btn {
    border: none;
    width: auto;
    text-decoration: underline;
    background: none;
    position: absolute;
    top: 10px;
    right: 10px;
}


.modal-close-btn::after {
    content:url("../img/plus.svg");
}

.modal-info-btn {
    border: none;
    text-decoration: underline;
    background: none;
}

.modal-info-btn::after {
    content: url("../img/info.svg");
    width: 20px;
    height: 20px;
    pointer-events: none;
  }

#modal-info .modal-close-btn {
    background: white;
    border-radius: 3px;
    padding: 2px;
}

#modal-info .modal-close-btn img{
    width: 15px;
}

#modal-info a{
    color: white;
    text-decoration: underline;
}

Button#registerConsentToggleBtn {
    color: #0088ce;
}

select.pf-c-form-control[readonly] option{
    display:none;
}

input[type='checkbox'][readonly],
input[type='checkbox'][readonly] + label.hertha-checkbox-label {
    pointer-events: none;
}

input[type='checkbox'][readonly] + label.hertha-checkbox-label a,
input[type='checkbox'][readonly] + label.hertha-checkbox-label button {
    pointer-events: all;
}

.form-input-info {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-hertha-white);
    border: 1px solid #004FA5;
    padding: 30px;
    z-index: 10000;
    box-shadow: var(--pf-global--BoxShadow--lg);
    width: 600px;
    max-width: 95%;
}
.login-pf-page .form-input-info .form-input-info--message {
    color: var(--color-hertha-midnight);
}

/*STYLING MOBILE */
@media (max-width: 766px)  {
    .hertha-input__label {
        font-size: 0.7rem;
    }

    .hertha-input__input#user\.attributes\.dateOfBirth{
        font-size: 1.1rem;
    }

    select.pf-c-form-control {
        font-size: 1.1rem;
    }

    .pf-c-button.pf-m-block.hertha-login-button {
        margin: 0;
    }

    .hertha-form-50 .hertha-form-50__item.date {
        width: 70%;
    }

    #user\.attributes\.country ~ label {
        left: 1.2rem;
    }

    #modal{
        max-width: 90vw;
    }

    .modalWrapper Button.pf-c-button.hertha-accept-button {
        width: 100%
    }

}

@media (max-width: 358px) {
    #kc-locale {
        top: 7rem;
    }

    .login-pf-header #kc-page-title {
        margin-top: 3.5rem;
    }

    .tab:nth-of-type(2) .tab-content .hertha-form-50:nth-of-type(2) .hertha-form-50__item:last-child {
        width: 95%;
    }

    #user\.attributes\.gender {
        font-size: 1rem;
    }

    #user\.attributes\.dateOfBirth {
        width: 98%;
    }

    .pf-c-button.pf-m-block.hertha-login-button {
        width: 95%;
        margin: 0 auto;
    }

    #modal{
        padding: 25px;
    }
    .modalWrapper Button.pf-c-button.hertha-accept-button {
        width: 100%
    }
}
