
/* Style the input fields */
input {
    padding: 10px;
    width: 100%;
    font-size: 17px;
    font-family: Raleway;
    border: 1px solid #aaaaaa;
}

/* Mark input boxes that gets an error on validation: */
.product-select .form-control.invalid .select2-selection, .product-select .invalid .select2-selection, input.invalid {
    background-color: #ffdddd;
}

/* Hide all steps by default: */
.formTab {
    display: none;
}

/* Make circles that indicate the steps of the form: */
.step {
    height: 2rem;
    width: 2rem;
    margin: 0 2px;
    background-color: #bbbbbb;
    border: none;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
    vertical-align: middle;
    color: #333;
    line-height: 1.8rem;
    font-size: 1rem;
}

.bet-steps {
    width: 6rem;
    height: 0.2rem;
    background: #ddd;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    /*margin-top: 1.5rem;*/
}

/* Mark the active step: */
.step.active {
    opacity: 1;
    border: 2px solid #45af50;
    background: #fff;
    font-weight: bold;
}

/* Mark the steps that are finished and valid: */
.step.finish {
    background-color: #45af50;
    color: #fff;
}

.step-outer {
    display: inline-block;
    vertical-align: top;
    position: relative;
    height: 4rem;
}
.step-label {
    display: block;
    width: 9rem;
    text-align: center;
    position: absolute;
    left: -3rem;
    color: #999;
    margin-top: 0.3rem;
    font-size: 1rem;
}

.product-select .form-control {padding: .975rem .75rem;}
.product-select .form-control, .product-select .select2 {
    font-size: 2rem;
    height: auto !important;
    width: 100% !important;
}
.subscription-price {
    font-size: 3rem;
}

#payment-form-wrapper {
    display: none;
}

.already-registered {
    font-size: 1rem;
    max-width: 30rem;
    text-align: left;
    margin: 3rem auto;
}
.sub-prod-selection {
    font-size: 1.4rem;
}

.sub-prod-selection .custom-radio, .sub-prod-selection .custom-checkbox {
    padding-left: 2.4rem;
    margin-bottom: 0.5rem;
}
.sub-prod-selection .custom-control-label::before {
    width: 1.8rem;
    height: 1.8rem;
    top: 0;
}
.sub-prod-selection .custom-control-label::after {
    top: 0;
    left: 0;
    width: 1.8rem !important;
    height: 1.8rem !important;
    margin: 0;
}

/**********  **************/
/* Variables */
:root {
    --body-color: rgb(247, 250, 252);
    --button-color: rgb(30, 166, 114);
    --accent-color: #17a2b8;
    --link-color: #ffffff;
    --font-color: rgb(105, 115, 134);
    --body-font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 6px;
    --form-width: 400px;
    --gray-border: #eee;
    --gray-light: #efefef;
}

/* Layout */
.sr-root {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 980px;
    padding: 48px;
    align-content: center;
    justify-content: center;
    height: auto;
    min-height: 100vh;
    margin: 0 auto;
}
.sr-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    align-self: center;
    padding: 75px 50px;
    background: var(--body-color);
    width: var(--form-width);
    border-radius: var(--radius);
    -webkit-box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
    0px 2px 5px 0px rgba(50, 50, 93, 0.1),
    0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
    -moz-box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
    0px 2px 5px 0px rgba(50, 50, 93, 0.1),
    0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
    box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
    0px 2px 5px 0px rgba(50, 50, 93, 0.1),
    0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
}

.sr-field-error {
    color: #fa755a;
    text-align: center;
    font-size: 1.3rem;
    line-height: 17px;
    margin: 2rem 0;
    height: 54px;
}

/* Inputs */
.sr-input,
#payment-form-wrapper input[type="text"] {
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 22px 12px;
    min-height: 44px;
    width: 100%;
    transition: box-shadow 0.2s ease;
    background: white;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}
.sr-input:focus,
input[type="text"]:focus,
button:focus,
.focused {
    box-shadow: 0 0 0 1px rgba(50, 151, 211, 0.3), 0 1px 1px 0 rgba(0, 0, 0, 0.07),
    0 0 0 4px rgba(50, 151, 211, 0.3);
    outline: none;
    z-index: 9;
}
.sr-input::placeholder,
#payment-form-wrapper input[type="text"]::placeholder {
    color: var(--gray-light);
}
.sr-result {
    height: 44px;
    -webkit-transition: height 1s ease;
    -moz-transition: height 1s ease;
    -o-transition: height 1s ease;
    transition: height 1s ease;
    color: var(--font-color);
    overflow: auto;
}
.sr-result code {
    overflow: scroll;
}
.sr-result.expand {
    height: 350px;
}

.sr-combo-inputs-row {
    box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
    0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
    border-radius: 7px;
}

/* Code block */
code,
pre {
    font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
    font-size: 12px;
}

/* Stripe Element placeholder */
.sr-card-element {
    padding-top: 22px;
}

/* Responsiveness */
@media (max-width: 720px) {
    .sr-root {
        flex-direction: column;
        justify-content: flex-start;
        padding: 48px 20px;
        min-width: 320px;
    }

    .sr-header__logo {
        background-position: center;
    }

    .sr-payment-summary {
        text-align: center;
    }

    .sr-content {
        display: none;
    }

    .sr-main {
        width: 100%;
        height: 305px;
        background: rgb(247, 250, 252);
        box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
        0px 2px 5px 0px rgba(50, 50, 93, 0.1),
        0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
        border-radius: 6px;
    }
}

/* todo: spinner/processing state, errors, animations */

.spinner,
.spinner:before,
.spinner:after {
    border-radius: 50%;
}
.spinner {
    color: #ffffff;
    font-size: 22px;
    text-indent: -99999px;
    margin: 0px auto;
    position: relative;
    width: 20px;
    height: 20px;
    box-shadow: inset 0 0 0 2px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}
.spinner:before,
.spinner:after {
    position: absolute;
    content: "";
}
.spinner:before {
    width: 10.4px;
    height: 20.4px;
    background: var(--accent-color);
    border-radius: 20.4px 0 0 20.4px;
    top: -0.2px;
    left: -0.2px;
    -webkit-transform-origin: 10.4px 10.2px;
    transform-origin: 10.4px 10.2px;
    -webkit-animation: loading 2s infinite ease 1.5s;
    animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
    width: 10.4px;
    height: 10.2px;
    background: var(--accent-color);
    border-radius: 0 10.2px 10.2px 0;
    top: -0.1px;
    left: 10.2px;
    -webkit-transform-origin: 0px 10.2px;
    transform-origin: 0px 10.2px;
    -webkit-animation: loading 2s infinite ease;
    animation: loading 2s infinite ease;
}

.seats-select {
    max-width: 15rem;
    margin: 0 auto;
}
.seats-select input {
    font-size: 1.6rem;
}

.btn.plan-form-btn {
    position: relative;
    white-space: normal;
    padding-bottom: 4rem;
    width: 100%;
    /*border: 1px solid #ddd;*/
}
.btn.plan-form-btn.active {
    /*-webkit-box-shadow: 0 0 0 .2rem rgb(168, 228, 168);
    -moz-box-shadow: 0 0 0 .2rem rgb(168, 228, 168);
    box-shadow: 0 0 0 .2rem rgb(168, 228, 168);*/
    outline: 3px solid rgb(168, 228, 168);
    border: none;
    background: #fff !important;
}

.btn.plan-form-btn:hover {
    -webkit-box-shadow: 0 0 0 .2rem rgba(23,162,184,.3);
    -moz-box-shadow: 0 0 0 .2rem rgba(23,162,184,.3);
    box-shadow: 0 0 0 .2rem rgba(23,162,184,.3);
    background: #fff !important;
}

.plan-form-btn label {
    display: none;
}
.plan-select-icons i {
    font-size: 3rem;
    line-height: 1;
}

.plan-form-btn .check-active {
    display: none;
    color: #53ca53;
}
.plan-form-btn.active .check-active {
    display: block;
}
.plan-form-btn.active .check-inactive {
    display: none;
}
.plan-select-icons {
    position: absolute;
    height: 4.6rem;
    right: 0;
    left: 0;
    bottom: 0;
}

#nextBtn, #submit-btn {
    font-weight: bold;
}

.interview-long-description {
    font-size: 1.2rem;
}

.plan-form-btn {

}

@-webkit-keyframes loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Animated form */

.sr-root {
    animation: 0.4s form-in;
    animation-fill-mode: both;
    animation-timing-function: ease;
}

.hidden {
    display: none;
}

@keyframes field-in {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

@keyframes form-in {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
