/* CForms - Template for Point Steps */

.cforms-steps ul {
    list-style: none;
    margin: 0;
    overflow: hidden;
}

.steps-items:before, .steps-items:after {
    content: ' ';
    display: table;
}
.steps-items:after {
    clear: both;
}

.steps-inner {
    max-width: 820px;
    margin: 0 auto;
}

.cforms-steps {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: #f5f5f5;
}

.cforms-steps ul {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.cforms-steps li {
    float: left;
}

.cforms-steps a {
    position: relative;
    display: block;
    padding: 20px 35px 20px 40px;
    /* important overrides media queries */
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    color: #aaa;
    cursor: pointer;
}

.cforms-steps a:hover {
    background: #eee;
}

.cforms-steps a.step-active {
    color: #777;
    background-color: #fafafa;
}

.cforms-steps a span:first-child {
    display: inline-block;
    width: 22px;
    height: 22px;
    padding: 2px;
    margin-right: 5px;
    border: 2px solid #aaa;
    border-radius: 50%;
    background-color: #fff;
}

.cforms-steps a.step-active span:first-child {
    color: #fff;
    border-color: #777;
    background-color: #777;
}

.cforms-steps a:before,
.cforms-steps a:after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 1;
    display: block;
    width: 0;
    height: 0;
    border-top: 32px solid transparent;
    border-bottom: 32px solid transparent;
    border-left: 16px solid transparent;
}

.cforms-steps a:before {
    margin-left: 1px;
    border-left-color: #d5d5d5;
}

.cforms-steps a:after {
    border-left-color: #f5f5f5;
}

.cforms-steps a:hover:after {
    border-left-color: #eee;
}

.cforms-steps a.step-active:after {
    border-left-color: #fafafa;
}

.cforms-steps li:last-child a:before,
.cforms-steps li:last-child a:after {
    display: none;
}

@media (max-width: 720px) {
    .cforms-steps a {
        padding: 15px;
    }

    .cforms-steps a:before,
    .cforms-steps a:after {
        border-top-width: 26px;
        border-bottom-width: 26px;
        border-left-width: 13px;
    }
}
@media (max-width: 620px) {
    .cforms-steps a {
        padding: 10px;
        font-size: 12px;
    }

    .cforms-steps a:before,
    .cforms-steps a:after {
        border-top-width: 22px;
        border-bottom-width: 22px;
        border-left-width: 11px;
    }
}
@media (max-width: 520px) {
    .cforms-steps a {
        padding: 5px;
    }

    .cforms-steps a:before,
    .cforms-steps a:after {
        border-top-width: 16px;
        border-bottom-width: 16px;
        border-left-width: 8px;
    }

    .cforms-steps li a span:first-child {
        display: block;
        margin: 0 auto;
    }

    .cforms-steps li a span:last-child {
        display: none;
    }
}
