﻿/*Course booking button and form*/

/* flex box columns*/

.group--item--primary
{
    -webkit-box-flex: 2;
    -ms-flex-positive: 2;
    flex-grow: 2;
    margin: 0 1em;
}

.course-booking-form .group--item--secondary {
    max-width: 18rem;
}

.course-booking-form .date-of-birth {
    text-align: center;
}

.course-booking-form .receive-information {
    margin: 2rem 0;
}

.course-booking-form .receive-information label {
    display: block;
    float: right;
    width: 95%;
}
/**/

/*form elements */

.course-booking-form input[type=text] {
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
    background-color: #FFFFFF;
    border-style: solid;
    border-width: 1px;
    border-color: #cccccc;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    color: #444444;
    display: block;
    font-family: inherit;
    margin: 0 0 0.88889rem 0;
    /* padding: 0.44444rem; */
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: border-color 0.15s linear, background 0.15s linear;
    -moz-transition: border-color 0.15s linear, background 0.15s linear;
    -ms-transition: border-color 0.15s linear, background 0.15s linear;
    -o-transition: border-color 0.15s linear, background 0.15s linear;
    transition: border-color 0.15s linear, background 0.15s linear;
}

.course-booking-form textarea {
    width: 100%;
    height: 8em;
    font: inherit;
    min-width: 0;
    display: block;
    width: 100%;
    padding: 0.625em;
    background: white;
    color: #110800;
    border-radius: 0;
    transition: all 300ms ease 0ms;
    margin: 0 0 0.88889rem 0;
}

.course-booking-form .text-danger {
    color: #ff0000;
    display: block;
    margin: -0.5em 0 1em;
}

.course-booking-form .btn--submit {
    width: auto;
    padding: .625rem 1.75rem;
}

.blue-bg {
    background-color: #002d5e;
    padding: 2em;
    color: #fff;
    margin: 1em 0;
}

.captcha .text-danger, .confirm-qualifications .text-danger {
    margin-top: .8em;
}

/**/




.icheckbox, .iradio {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    width: 20px;
    height: 20px;
    background: url(https://www.twi-global.com/site-elements/images/twi-blue-check.png) no-repeat;
    border: none;
    cursor: pointer;
    margin-right: .625rem;
    position: relative;
    top: 2px;
}

.iradio
{
    background-position: -60px 0;
}

.iradio:hover
{
    background-position: -80px 0;
}

.iradio.checked {
    background-position: -100px 0;   
}

.icheckbox
{
    background-position: 0 0;
}


.icheckbox:hover
{
    background-position: -20px 0;
}

.icheckbox.checked {
    background-position: -40px 0;
}

/**/


 a.large-cta {
            width: 100%;
            text-decoration: none;
            text-align: center;
            font-size: 1.6em;
            font-weight: bold;
}

a.large-cta:hover .orange-bg {
    background-color: #ee7c40;
}



.large-cta .blue-bg {
    display: block;
    background-color: #0161aa; 
    color: #fff;  
    padding: 1em;
}

.large-cta .orange-bg {
    display: block;
    background-color: #e65d15;
    color: #fff;
    padding: 1em;
    font-size: 2em;
}

.cta-line1 {
    display: block;
    font-size: 120%;
}

.cta-line2 {
    display: block;
}

.cta-line3 {
    font-size: 80%;
}

.row.booking-button {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* sending animation */ 

#sending {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    float: left;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px;
    z-index: 9999999;
    background: #fff;
    transition: .3s all ease;
    display: none;
}

#sending.loaded {
    opacity: 0;
    visibility: hidden;
    z-index: -1;
}

#sending.ending {
    display: none;
}

.cssload-speeding-wheel {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 3px solid #0161aa;
    border-radius: 50%;
    border-left-color: transparent;
    border-bottom-color: transparent;
    animation: cssload-spin .88s infinite linear;
}
@keyframes cssload-spin {
    100% {
        transform: rotate(360deg);
    }
}

.thank-you, .course-booking-form-message {
    display: none;
}


/**/


@media screen and (min-width: 58.8125em)
{
    .group {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        display: table \9;
        table-layout: fixed \9;
    }

    .group--item {
        -webkit-flex: 1 1 0%;
        -ms-flex: 1 1 0%;
        flex: 1 1 0%;
        min-width: 0;
        min-height: 0;
        display: table-cell \9;
        width: 2% \9;
        margin-top: 0;
    }

    .group--item + .group--item {
        margin-left: 1.5em;
    }

    .group--item--primary + .group--item--secondary, 
    .group--item--secondary + .group--item--primary, 
    .group--item--secondary.sort-last-from-lap 
    {
        margin-left: 3em;
    }

}

