/* BUTTON */

/* LINK BUTTONS */
.link-button {
    cursor: pointer;
    padding: 0;
    border: 0;
    background-color: transparent;
    color: inherit;
    text-transform: inherit;
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    transition: color var(--default-transition-time) ease-out;
}

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

.pf-c-button.pf-m-primary::after {
    background: var(--color-hertha-digitalblue);
    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-white);
    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 {
    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);
    text-align: center;
    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%;
}

.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: 2rem;
}

.hertha-input {
    display: flex;
    height: 2rem;
    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-origin: left;
    transform: translate(0px, 0.75rem) scale(1.5);
}

.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);
}

::-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]: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: 10px;
    width: 5px;
}

.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);
    }
    #form-buttons {
        margin-left: 20px;
    }
}
