/* --------------------------------

Primary style

-------------------------------- */
*, *::after, *::before {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: "Roboto", sans-serif;
    color: #1f4c74;
    background-color: #f2f2f2;
}

a {
    color: #dab433;
    text-decoration: none;
}

svg {
    max-width: 100%;
}

/* --------------------------------

Patterns - reusable parts of our design

-------------------------------- */
.cd-btn {
    display: inline-block;
    padding: 1em 2em;
    color: #dab433;
    border: 2px solid #dab433;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.no-touch .cd-btn:hover {
    background-color: #dab433;
    color: #f2f2f2;
}

/* --------------------------------

Main Content

-------------------------------- */
.cd-main-content {
    position: relative;
    width: 100%;
    height: 100vh;
    display: table;
}

.cd-main-content .center {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.cd-main-content h1 {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 1em;
}

@media only screen and (min-width: 768px) {
    .cd-main-content h1 {
        font-size: 4rem;
        font-weight: 300;
    }
}

/* --------------------------------

Modal Window

-------------------------------- */
.cd-modal {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    visibility: hidden;
    -webkit-transition: visibility 0s 0.6s;
    -moz-transition: visibility 0s 0.6s;
    transition: visibility 0s 0.6s;
}

.cd-modal svg {
    position: absolute;
    top: 0;
    left: 0;
}

.cd-modal svg > path {
    fill: #FFFFFF;
}

.cd-modal .modal-close {
    /* 'X' icon */
    position: absolute;
    z-index: 1;
    top: 20px;
    right: 5%;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3) url(../img/cd-icon-close.svg) no-repeat center center;
    /* image replacement */
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    /* Force hardware acceleration*/
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    visibility: hidden;
    opacity: 0;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
    -webkit-transition: -webkit-transform 0.3s 0s, visibility 0s 0.3s, opacity 0.3s 0s;
    -moz-transition: -moz-transform 0.3s 0s, visibility 0s 0.3s, opacity 0.3s 0s;
    transition: transform 0.3s 0s, visibility 0s 0.3s, opacity 0.3s 0s;
}

.no-touch .cd-modal .modal-close:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.cd-modal.modal-is-visible {
    visibility: visible;
    -webkit-transition: visibility 0s 0s;
    -moz-transition: visibility 0s 0s;
    transition: visibility 0s 0s;
}

.cd-modal.modal-is-visible .modal-close {
    visibility: visible;
    opacity: 1;
    -webkit-transition: -webkit-transform 0.3s 0s, visibility 0s 0s, opacity 0.3s 0s;
    -moz-transition: -moz-transform 0.3s 0s, visibility 0s 0s, opacity 0.3s 0s;
    transition: transform 0.3s 0s, visibility 0s 0s, opacity 0.3s 0s;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.cd-modal-content {
    position: relative;
    height: 100vh;
    overflow-y: auto;
    padding: 3em 5% 4em;
    opacity: 0;
    -webkit-transform: translateY(50px);
    -moz-transform: translateY(50px);
    -ms-transform: translateY(50px);
    -o-transform: translateY(50px);
    transform: translateY(50px);
    -webkit-transition: opacity 0.3s 0s, -webkit-transform 0.3s 0s;
    -moz-transition: opacity 0.3s 0s, -moz-transform 0.3s 0s;
    transition: opacity 0.3s 0s, transform 0.3s 0s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cd-modal-content p {
    color: #000000;
    line-height: 1.6;
    /*margin: 2em 0;*/
}

.modal-is-visible .cd-modal-content {
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
    -webkit-overflow-scrolling: touch;
    -webkit-transition: opacity 0.3s 0.3s, -webkit-transform 0.3s 0.3s;
    -moz-transition: opacity 0.3s 0.3s, -moz-transform 0.3s 0.3s;
    transition: opacity 0.3s 0.3s, transform 0.3s 0.3s;
}

@media only screen and (min-width: 768px) {
    .cd-modal-content {
        padding: 3em 10% 4em;
    }

    .cd-modal-content p {
        font-size: 2.4rem;
    }
}

/* --------------------------------

 Cover Layer - hide main content when modal is fired

-------------------------------- */
.cd-cover-layer {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #f2f2f2;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 0.3s 0.3s, visibility 0s 0.6s;
    -moz-transition: opacity 0.3s 0.3s, visibility 0s 0.6s;
    transition: opacity 0.3s 0.3s, visibility 0s 0.6s;
}

.cd-cover-layer.modal-is-visible {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0s;
    transition: opacity 0.3s 0s, visibility 0s 0s;
}

.k-state-disabled {
    opacity: 0.1;
}

.k-list-scroller {
    overflow-y: auto;
}

/* --------------------------------

Primary style

-------------------------------- */
*, *::after, *::before {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: "Open Sans", sans-serif;
    color: #0f222b;
    background-color: #0f222b;
}

a {
    color: #95ac5f;
    text-decoration: none;
}

input {
    font-family: "Open Sans", sans-serif;
    font-size: 1.6rem;
}

/* --------------------------------

Header - not needed in production

-------------------------------- */
.cd-main-header {
    height: 170px;
    line-height: 170px;
    text-align: center;
}

.cd-main-header h1 {
    color: #ffffff;
    font-weight: 300;
    font-size: 2rem;
}

@media only screen and (min-width: 1024px) {
    .cd-main-header {
        height: 220px;
        line-height: 220px;
    }

    .cd-main-header h1 {
        font-size: 2.6rem;
    }
}

/* --------------------------------

Pricing tables

-------------------------------- */
.cd-pricing {
    width: 90%;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
}

.cd-pricing > li {
    position: relative;
    margin: 0 auto 2.5em;
    background-color: #ffffff;
    border-radius: .3em .3em .25em .25em;
    box-shadow: 0 2px 8px rgba(2, 4, 5, 0.5);
    margin-top: 10px
}

.cd-pricing > li.empty-box {
    box-shadow: none;
}

.cd-pricing > li.empty-box::after {
    /* placeholder visible when .cd-form is open - in this case same color of the background */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
}

@media only screen and (min-width: 768px) {
    .cd-pricing {
        max-width: 1000px;
    }

    .cd-pricing > li {
        width: 32%;
        float: left;
        margin-right: 2%;
        margin-bottom: 0;
    }

    .cd-pricing > li:last-of-type {
        margin-right: 0;
    }
}

@media only screen and (min-width: 1024px) {
    .cd-pricing > li {
        width: 28.0%;
        float: left;
        margin-right: 10px;
    }
}

.cd-pricing-header {
    padding: 1.3em 1em;
    background-color: #2C3E50;
    border-radius: .25em .25em 0 0;
    box-shadow: inset 0 1px 0 #2C3E50;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cd-pricing-header h2, .cd-pricing-header .cd-price {
    line-height: 1.2;
}

.cd-pricing-header h2 {
    font-size: 2rem;
    margin-bottom: 0.15em;
}

.cd-pricing-header .cd-price {
    display: inline-block;
    font-weight: bold;
}

.cd-pricing-header .cd-price::after {
    clear: both;
    content: "";
    display: table;
}

.cd-pricing-header span {
    float: left;
}

.cd-pricing-header span:nth-of-type(2) {
    color: #c1cfa2;
}

.cd-pricing-header span:nth-of-type(2)::before {
    content: '/';
}

@media only screen and (min-width: 768px) {
    .cd-pricing-header h2 {
        font-size: 2.6rem;
    }
}

.cd-pricing-features {
    padding: 2.8em 1em 2.5em;
}

.cd-pricing-features li {
    line-height: 1.5;
    margin-bottom: .4em;
}

.cd-pricing-features li:last-of-type {
    margin-bottom: 0;
}

.cd-pricing-features em {
    position: relative;
    padding-left: 28px;
}

.cd-pricing-features em::before {
    /* this is the icon (check or cross) next to the plan feature */
    position: absolute;
    content: '';
    left: 0;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    height: 24px;
    width: 24px;
    background: url(../img/cd-icons-plan.svg) no-repeat -24px 0;
}

.cd-pricing-features .available em::before {
    background-position: 0 0;
}

.cd-pricing-footer {
    padding-bottom: 1.7em;
}

.cd-pricing-footer a {
    -webkit-transition: -webkit-transform 0.3s;
    -moz-transition: -moz-transform 0.3s;
    transition: transform 0.3s;
}

.empty-box .cd-pricing-footer a {
    /* scale down to 0 the action button when sign up form is visible */
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
}

/* --------------------------------

Form

-------------------------------- */
.cd-form {
    position: fixed;
    z-index: 2;
    background-color: #ffffff;
    border-radius: .25em;
    visibility: hidden;
    -webkit-transition: visibility 0s 0.8s;
    -moz-transition: visibility 0s 0.8s;
    transition: visibility 0s 0.8s;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cd-form::before {
    /* never visible - this is used in jQuery to check the current MQ */
    display: none;
    content: 'mobile';
}

.cd-form::after {
    /* gradient visible at the bottom of the form - to indicate it's possible to scroll */
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 30px;
    width: 100%;
    border-radius: 0 0 .25em .25em;
    background-color: rgba(255, 255, 255, 0);
    background-image: -webkit-linear-gradient(bottom, white, rgba(255, 255, 255, 0));
    background-image: linear-gradient(to top, white, rgba(255, 255, 255, 0));
    pointer-events: none;
}

.cd-form .cd-plan-info {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    text-align: center;
}

.cd-form .cd-plan-info > * {
    width: 100%;
}

.cd-form .cd-pricing-features {
    position: relative;
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0s;
    transition: opacity 0.3s 0s, visibility 0s 0s;
}

.cd-form .cd-pricing-features::before {
    /* this is the layer which covers the .cd-pricing-features when the form is open - visible only on desktop */
    content: '';
    position: absolute;
    /* fix a bug while animating - 1px white space visible */
    top: -5px;
    left: 0;
    /*height: calc(100% + 5px);*/
    width: 100%;
    background-color: #95ac5f;
    will-change: transform;
    -webkit-transform: scaleY(0);
    -moz-transform: scaleY(0);
    -ms-transform: scaleY(0);
    -o-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: center top;
    -moz-transform-origin: center top;
    -ms-transform-origin: center top;
    -o-transform-origin: center top;
    transform-origin: center top;
    -webkit-transition: -webkit-transform 0.6s 0.2s;
    -moz-transition: -moz-transform 0.6s 0.2s;
    transition: transform 0.6s 0.2s;
}

.cd-form .cd-pricing-footer {
    display: none;
}

.cd-form .cd-more-info {
    position: absolute;
    z-index: 1;
    height: 100%;
    width: 210px;
    bottom: 0;
    left: 0;
    padding: 285px 1.8em 2em;
    background-color: #f2f2f2;
    border-radius: .25em 0 0 .25em;
    /* hidden on mobile */
    display: none;
    -webkit-transition: opacity 0.6s;
    -moz-transition: opacity 0.6s;
    transition: opacity 0.6s;
}

.cd-form .cd-more-info h3 {
    line-height: 2;
}

.cd-form .cd-more-info p {
    font-size: 1.3rem;
    color: #999999;
    line-height: 1.6;
}

.cd-form form {
    padding-top: 90px;
    height: 100%;
    overflow: hidden;
}

.cd-form form.is-scrollable {
    overflow-y: auto;
}

.cd-form fieldset {
    opacity: 0;
    margin: 1.5em 2em;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    -webkit-transform: translateY(50px);
    -moz-transform: translateY(50px);
    -ms-transform: translateY(50px);
    -o-transform: translateY(50px);
    transform: translateY(50px);
    -webkit-transition: opacity 0.2s, -webkit-transform 0.2s;
    -moz-transition: opacity 0.2s, -moz-transform 0.2s;
    transition: opacity 0.2s, transform 0.2s;
}

.cd-form fieldset > div,
.cd-form fieldset .cd-credit-card > div {
    padding-top: 1.2em;
}

.cd-form fieldset > .cd-credit-card {
    padding-top: 0;
}

.cd-form fieldset div::after {
    clear: both;
    content: "";
    display: table;
}

.cd-form fieldset:last-of-type > div {
    padding-top: 0;
}

.cd-form legend {
    width: 100%;
    font-size: 2.3rem;
    line-height: 1.2;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #e5e5e5;
}

.cd-form input[type="radio"],
.cd-form label {
    cursor: pointer;
}

.cd-form label {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b2b2b2;
}

.cd-form input[type="radio"] + label {
    color: #0f222b;
}

.cd-form input[type="text"],
.cd-form input[type="email"],
.cd-form input[type="password"],
.cd-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    height: 45px;
    border: 2px solid #e5e5e5;
    border-radius: 0;
    background: transparent;
}

.cd-form input[type="text"]:focus,
.cd-form input[type="email"]:focus,
.cd-form input[type="password"]:focus,
.cd-form select:focus {
    outline: none;
    border-color: #95ac5f;
}

.cd-form input[type="text"],
.cd-form input[type="email"],
.cd-form input[type="password"] {
    width: 100%;
    display: block;
    margin-top: 6px;
    padding: 0 16px;
}

.cd-form select {
    padding: 0 25px 0 15px;
    font-size: 1.4rem;
}

.cd-form select::-ms-expand {
    /* remove default arrows in IE */
    display: none;
}

.cd-form .cd-credit-card b {
    display: block;
}

.cd-form .cd-credit-card p {
    padding-bottom: 0.5em;
}

.cd-form .cd-credit-card p:last-of-type {
    width: 100px;
}

.cd-form .cd-select {
    display: inline-block;
    position: relative;
    margin-top: 6px;
}

.cd-form .cd-select::after {
    /* arrow icons */
    content: '';
    position: absolute;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 10px;
    height: 6px;
    width: 10px;
    background: url(../img/cd-icon-arrow.svg) no-repeat center center;
    pointer-events: none;
}

.cd-form .cd-close {
    /* 'X' close icon */
    position: absolute;
    z-index: 2;
    right: 0;
    top: 0;
    height: 40px;
    width: 40px;
    background: url(../img/cd-icon-close.svg) no-repeat center center;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
    -webkit-transition: -webkit-transform 0.2s;
    -moz-transition: -moz-transform 0.2s;
    transition: transform 0.2s;
    /* image replacement */
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    color: transparent;
}

.cd-form.is-visible {
    /* form is visible */
    visibility: visible;
    -webkit-transition: visibility 0s 0s;
    -moz-transition: visibility 0s 0s;
    transition: visibility 0s 0s;
}

.cd-form.is-visible .cd-pricing-features {
    /* desktop only */
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.6s 0s, visibility 0s 0.8s;
    -moz-transition: opacity 0.6s 0s, visibility 0s 0.8s;
    transition: opacity 0.6s 0s, visibility 0s 0.8s;
}

.cd-form.is-visible form {
    -webkit-overflow-scrolling: touch;
}

.cd-form.is-visible fieldset {
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition: -webkit-transform 0.3s 0.6s, opacity 0.3s 0.6s;
    -moz-transition: -moz-transform 0.3s 0.6s, opacity 0.3s 0.6s;
    transition: transform 0.3s 0.6s, opacity 0.3s 0.6s;
}

.cd-form.is-visible fieldset:nth-of-type(2) {
    /* delay second fieldset animation */
    -webkit-transition: -webkit-transform 0.3s 0.7s, opacity 0.3s 0.7s;
    -moz-transition: -moz-transform 0.3s 0.7s, opacity 0.3s 0.7s;
    transition: transform 0.3s 0.7s, opacity 0.3s 0.7s;
}

.cd-form.is-visible fieldset:nth-of-type(3) {
    /* delay second fieldset animation */
    -webkit-transition: -webkit-transform 0.3s 0.8s, opacity 0.3s 0.8s;
    -moz-transition: -moz-transform 0.3s 0.8s, opacity 0.3s 0.8s;
    transition: transform 0.3s 0.8s, opacity 0.3s 0.8s;
}

.cd-form.is-visible .cd-close {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    -webkit-transition: -webkit-transform 0.3s 0.8s;
    -moz-transition: -moz-transform 0.3s 0.8s;
    transition: transform 0.3s 0.8s;
}

@media only screen and (min-width: 768px) {
    .cd-form::before {
        /* never visible - this is used in jQuery to check the current MQ */
        content: 'desktop';
    }

    .cd-form .cd-pricing-header {
        border-radius: .25em 0 0 0;
    }

    .cd-form .cd-pricing-features {
        -webkit-transition: padding 0.3s 0.2s;
        -moz-transition: padding 0.3s 0.2s;
        transition: padding 0.3s 0.2s;
    }

    .cd-form .cd-more-info {
        display: block;
        opacity: 0;
    }

    .cd-form form {
        padding: 0 0 0 210px;
    }

    .cd-form .half-width {
        width: 48%;
        float: left;
        margin-right: 4%;
    }

    .cd-form .half-width:nth-of-type(2n) {
        margin-right: 0;
    }

    .cd-form input[type="submit"] {
        float: right;
    }

    .cd-form .cd-close {
        /* move close icon outside the form container */
        top: -40px;
        right: -5px;
    }

    .cd-form.is-visible .cd-pricing-features {
        padding-top: 0;
        opacity: 1;
        visibility: visible;
        -webkit-transition: padding 0.3s;
        -moz-transition: padding 0.3s;
        transition: padding 0.3s;
    }

    .cd-form.is-visible .cd-pricing-features::before {
        -webkit-transform: scaleY(1);
        -moz-transform: scaleY(1);
        -ms-transform: scaleY(1);
        -o-transform: scaleY(1);
        transform: scaleY(1);
        -webkit-transition: -webkit-transform 0.4s 0s;
        -moz-transition: -moz-transform 0.4s 0s;
        transition: transform 0.4s 0s;
    }

    .cd-form.is-visible .cd-more-info {
        opacity: 1;
    }
}

@media only screen and (min-width: 1024px) {
    .cd-form .cd-credit-card p:nth-of-type(2) {
        width: 25%;
        margin-right: 4%;
    }

    .no-csstransitions .cd-form .cd-credit-card p:nth-of-type(2) {
        width: 48%;
        margin-right: 0;
    }

    .cd-form .cd-credit-card p:nth-of-type(3) {
        width: 19%;
        margin-right: 0;
    }
}

/* --------------------------------

Buttons

-------------------------------- */
.cd-pricing-footer a, .cd-form input[type="submit"] {
    display: inline-block;
    padding: 1em 1.8em;
    /*border-radius: 50em;*/
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: bold;
}

.cd-pricing-footer a {
    border: 1px solid rgba(223, 79, 113, 0.4);
    color: #df4f71;
}

.cd-form input[type="submit"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    background-color: #df4f71;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

/* --------------------------------

Shadow layer

-------------------------------- */
