/* BUTTON */
.pf-c-button.pf-m-primary {
    background-color: var(--color-hertha-digitalblue);
    border-color: var(--color-hertha-blue);
    color: var(--color-hertha-blue);
    cursor: pointer;
    display: inline-block;
    font-family: var(--font-headline);
    font-size: 1.125rem;
    line-height: 1;
    margin-right: 1.5rem;
    min-height: 3.5rem; /* IE bug fix */
    outline: none;
    overflow: hidden;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transform: skewX(15deg);
    vertical-align: middle;
}

.pf-c-button.pf-m-primary::after {
    background: var(--color-hertha-cyan);
    content: '';
    height: 490%;
    position: absolute;
    right: -200%;
    top: 0;
    transform: translateX(-10%) translateY(-61%);
    transition: transform var(--default-transition-time) ease-out;
    width: 140%;
}

.pf-c-button.pf-m-primary:hover, .pf-c-button.pf-m-primary:focus {
    text-decoration: none;
    transition: color 0.7s ease-out;
}



.pf-c-button.pf-m-primary:hover .btn-text, .pf-c-button.pf-m-primary:focus .btn-text {
    color: var(--color-hertha-cyan);
    line-height: 1;
    text-transform: uppercase;
}

.pf-c-button.pf-m-primary:hover::after, .pf-c-button.pf-m-primary:focus::after {
    transform: translateX(-120%) translateY(-35%);
}

.pf-c-button.pf-m-primary:focus {
    outline: none;
}

.pf-c-button.pf-m-primary:disabled {
    border-color: var(--color-hertha-heather);
    color: var(--color-hertha-blue);
    cursor: not-allowed;
    transition: none;
}

.pf-c-button.pf-m-primary:disabled:after {
    background: var(--color-hertha-cyan);
}

.btn-text {
    color: var(--color-hertha-digitalblue);
    display: inline-block;
    font-family: var(--font-headline);
    position: relative;
    transform: skewX(-15deg);
    z-index: 1;
}

/* FORM INPUT */
.pf-c-form-control {
    background: transparent;
    border-color: var(--color-hertha-steel);
    border-width: 2px;
    border-style: solid;
    border-radius: 4px;
    font-size: 1.25rem;
    line-height: 1.6;
    padding: 1.5rem 1.5rem 0.5rem;
    touch-action: manipulation;
    width: 100%;
}

select.pf-c-form-control {
    padding: 1.5rem 1.5rem 0.5rem;
}

.pf-c-form-control:hover, .pf-c-form-control:focus {
    border-bottom-color: var(--color-hertha-steel);
    padding-bottom: 0.5rem;
}

.pf-c-form-control:not(textarea) {
    height: 4rem;
}

.hertha-input {
    height: 4rem;
    position: relative;
    width: 100%;
}

.hertha-input__input {
    background-color: transparent;
    color: var(--color-hertha-midnight);
    border: 2px solid var(--color-hertha-steel);
    border-radius: 4px;
    font-size: 1.25rem;
    line-height: 1.6;
    padding: 1.5rem 1.5rem 0.5rem;
    touch-action: manipulation;
    width: 100%;
}

.hertha-input__input:placeholder-shown +.hertha-input__label {
    cursor: text;
    max-width: 66.66%;
    white-space: nowrap;
    text-overflow: ellipsis;
    transform: translate(0px, 0.5rem) scale(1.5);
    transform-origin: 0 0;
}

.hertha-input__input:focus +.hertha-input__label, .hertha-input__input:active +.hertha-input__label {
    color: var(--color-hertha-steel);
    transform: translate(-3px, -5px) scale(1);
}

.hertha-input__input:not(:placeholder-shown) +.hertha-input__label {
    transform: translate(-3px, -5px) scale(1);
}

.hertha-input .modal-info-btn {
    position: absolute;
    right: 0.5rem;
    top: 1.2rem;
}

::-webkit-input-placeholder {
    color: var(--color-hertha-steel);
    opacity: 0;
    transition: inherit;
}

::-moz-placeholder {
    color: var(--color-hertha-steel);
    opacity: 0;
    transition: inherit;
}

::-ms-input-placeholder {
    color: var(--color-hertha-steel);
    opacity: 0;
    transition: inherit;
}

input:focus::-webkit-input-placeholder {
    opacity: 1;
}

input:focus::-moz-placeholder {
    opacity: 1;
}

input:focus::-ms-input-placeholder {
    opacity: 1;
}

.hertha-input__label {
    color: var(--color-hertha-midnight);
    position: absolute;
    font-size: 0.75rem;
    left: 1.75rem;
    line-height: 1.25;
    top: 1rem;
    touch-action: manipulation;
    transition: all var(--default-transition-time) ease-in-out;
    transform: translate(-1px, 0.75rem) scale(1.5);
}

.pf-c-form-control[aria-invalid="true"] {
    border-color: var(--color-hertha-red);
}

.required {
    font-family: var(--font-default);
    color: var(--color-hertha-red);
}

/* CHECKBOX */
.hertha-checkbox {
    display: flex;
    align-items: flex-start;
}

.hertha-checkbox input[type=checkbox] {
    border: 2px solid var(--color-hertha-steel);
    border-radius: 0;
    cursor: pointer;
    margin-top: 0.25rem;
    position: relative;
    height: 1.5rem;
    width: 1.5rem;
    min-width: 1.5rem;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.hertha-checkbox input[type=checkbox]:focus {
    outline: none;
}

.hertha-checkbox input[type=checkbox]:checked, .hertha-checkbox input[type=checkbox]:checked:hover {
    background: var(--color-hertha-white);
}

.hertha-checkbox input[type=checkbox].incomplete:checked, .hertha-checkbox input[type=checkbox].incomplete:checked:hover {
    background: var(--color-hertha-geyser);
}

.hertha-checkbox input[type=checkbox].incomplete:checked, .hertha-checkbox input[type=checkbox]:checked:disabled {
    background: var(--color-hertha-geyser);
}

.hertha-checkbox input[type=checkbox][readonly],
.hertha-checkbox input[type=checkbox][readonly]:hover,
.hertha-checkbox input[type=checkbox][readonly].incomplete:hover,
.hertha-checkbox input[type=checkbox][readonly]:checked:hover,
.hertha-checkbox input[type=checkbox][readonly].incomplete:checked:hover {
    background-color: var(--pf-c-form-control--readonly--focus--BackgroundColor);
    border: 2px solid var(--color-hertha-steel);
}

.hertha-checkbox input[type=checkbox]:disabled {
    cursor: not-allowed;
}

.hertha-checkbox input[type=checkbox]:after, .hertha-checkbox input[type=checkbox]:disabled:after {
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    content: "";
}

.hertha-checkbox input[type=checkbox]:checked:after {
    border-color: transparent var(--color-hertha-digitalblue) var(--color-hertha-digitalblue) transparent;
    border-style: solid;
    border-width: 2px;
    left: 1px;
    top: 1px;
    transform: rotate(37deg);
    transform-origin: 100% 100%;
    height: 14px;
    width: 8px;
}

.hertha-checkbox input[type=checkbox].incomplete:checked:after, .hertha-checkbox input[type=checkbox]:disabled:checked:after {
    border-color: transparent var(--color-hertha-steel) var(--color-hertha-steel) transparent;
}

.hertha-checkbox input[type=checkbox] + label {
    cursor: pointer;
    margin-left: 1rem;
    margin-bottom: 0;
}

.hertha-checkbox input[type=checkbox]:disabled + label {
    cursor: not-allowed;
}


@media (max-width: 766px) {
    .hertha-input__label {
        left: 1rem;
    }
    .hertha-input__input {
        padding: 1.5rem 1rem 0.5rem;
    }
    .hertha-input__input:focus +.hertha-input__label, .hertha-input__input:active +.hertha-input__label {
        transform: translate(3px, -5px) scale(1);
    }
    .hertha-input__input:not(:placeholder-shown) +.hertha-input__label {
        transform: translate(3px, -5px) scale(1);
    }
    select.pf-c-form-control {
        padding: 1.5rem 1rem 0.5rem;
    }
}


