:root {
    --bg-color: #f5f5f5;
    --border-color: #afafaf;
}

a{
    text-decoration: underline;
}

#wrap, #rejection{
    width: calc(100% - 15px);
    margin-top: 30px;
    padding-bottom: 30px;
}


/*** form elements ***/
form {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

form * {
    box-sizing: border-box;
}

form button {
    background-color: #666;
    color: #fff;
    border: none;
    border-radius: 2px;
    min-width: 120px;
    margin: 0 2px;
    padding: 8px 15px;
    cursor: pointer;
}
form button:hover {
    background-color: #555;
}
form button.outline {
    background-color: #fff;
    color: #666;
    border: 2px solid #666;
    border-radius: 2px;
    min-width: 120px;
    margin: 0 2px;
    padding: 6px 15px;
    cursor: pointer;
}
form button.outline:hover {
    background-color: #ddd;
}


form fieldset {
    position: relative;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 30px;
    margin: 0 0 20px;
}
#payment-form fieldset{
    padding-top: 20px;
}


form fieldset legend {
    position: relative;
    font-weight: bold;
    padding: 0;
}

form fieldset legend span {
    position: relative;
    z-index: 1;
    padding: 0 8px;
}

form fieldset legend:before {
    position: absolute;
    z-index: 0;
    top: -4px;
    left: 0;
    width: 100%;
    height: 65%;
    content: '';
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

form span.wrap {
    display: inline-block;
}


form label {
    display: inline-block;
    width: 33%;
    min-width: 175px;
    color: #505050;
    vertical-align: top;
}

form label[for="street_nr"] {
    min-width: 0;
    width: 8%;
    text-align: right;
}

#payment-form label{
    width: 90%;
}

form input,
form select {
    min-width: 250px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #999;
    border-radius: 2px;
    padding: 3px 6px;
    transition: opacity 500ms;
}

form input#alias {
    margin-top: 15px;
}

form input#street {
    width: 1%;
    min-width: 161px;
}

form input#street_nr {
    width: 1%;
    min-width: 50px;
}


.register-form input.is-invalid {
    margin-bottom: 0;
}

.register-form input[type=checkbox],
.register-form input[type=radio] {
    min-width: 0;
    margin-left: 0;
    vertical-align: top;
}

.choice-block {
    margin-top: 10px;
}

.choice-block:after {
    display: block;
    clear: both;
    content: "";
}

.choice-block > label {
    display: inline-block;
    vertical-align: top;
}

.choice-block > div:first-of-type {
    display: inline-block;
    width: 63%;
}

.choice-block .radio-group:last-of-type input {
    margin-bottom: 0;
}

.choice-block .radio-group > label {
    width: auto;
    max-width: 95%;
}

/*** subforms ***/
.sub-form {
    border-top: 1px solid #ccc;
    border-radius: 5px 5px 0 0;
    margin-left: -15px;
    margin-right: -15px;
    padding: 30px 15px;
    margin-bottom: 30px;

    background-color: rgba(255, 255, 255, 1);
    background: -moz-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(100%, rgba(250, 250, 250, 1)));
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 1) 100%);
    background: -o-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 1) 100%);
    background: -ms-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 1) 100%);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f5f5f5', GradientType=0);

    -webkit-box-shadow: inset 0 5px 10px -5px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: inset 0 5px 10px -5px rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 5px 10px -5px rgba(0, 0, 0, 0.25);
    display: none;
}

.sub-form:after {
    display: block;
    clear: both;
    content: "";
}

.sub-form > div:last-of-type input {
    margin-bottom: 0;
}

.sub-form .error.invalid-feedback:last-of-type {
    margin-bottom: 0;
}


#profilephoto-form {
    margin-bottom: 0;
}

#profilephoto-form > div:first-of-type {
    float: left;
}

#profilephoto-form > div:last-of-type {
    float: right;
}

#profilephoto-form > div > * {
    display: block;
}

#profilephoto-form input {
    margin-bottom: 15px;
}

#profilephoto-form img {
    margin: auto;
    height: 150px;
    width: auto;
    vertical-align: top;
}



/*** payment-form ***/
#payment-form .form-text{
    margin-bottom: 20px;
}

#payment-form .radio-group{
    margin-bottom: 20px;
}
#payment-form .radio-group:last-of-type{
    margin-bottom: 0;
}
#payment-form button{
    margin-top: 30px;
}
#payment-form button[type="submit"]{
    display: none;
}
#payment-form .spinner{
    position: absolute;
    z-index: 999;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    background-color: rgba(245,245,245,0.75);
    background-image: url('../images/spinner.gif');
    background-repeat: no-repeat;
    background-size: auto 50%;
    background-position: center center;
    display: none;
}







/*** paypal ***/
#paypal-button-container{
    width: 200px;
    margin-top: 15px;
    display: block;
}





/*** helper classes ***/
.error.invalid-feedback {
    display: block;
    margin-bottom: 15px;
    font-size: 12px;
    color: #990000;
}

.radio-group ~ .wrap input.hidden ~ .error.invalid-feedback,
.radio-group .error.invalid-feedback {
    padding-left: 20px;
}

.hidden {
    position: absolute;
    width: 1px;
    min-width: 0;
    height: 0;
    padding: 0;
    opacity: 0;
}

.clearfix::after {
    display: block;
    clear: both;
    content: "";
}
.float-right{
    float: right;
}







/*** alerts ***/
.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 30px;
    border: 1px solid transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: .25rem;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.alert-dismissible .close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: absolute;
    top: 0;
    right: 0;
    padding: .75rem 1.25rem;
    color: inherit;
}
.alert h3{
    margin-top: 0;
    margin-bottom: 10px;
}
.alert p{
    margin-top: 0;
    margin-bottom: 5px;
}