﻿@keyframes fade-in {
    from {
        transform: translateX(0) scale(.5);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes checkbox-checked {
    from {
        transform: scale(1);
    }

    80% {
        transform: scale(1.5);
    }

    to {
        transform: scale(1);
    }
}

/* input placeholder styling */
::-webkit-input-placeholder {
    color: #d1d1d1;
}

::-moz-placeholder {
    color: #d1d1d1;
}
/* firefox 19+ */
:-ms-input-placeholder {
    color: #d1d1d1;
}
/* ie */
input:-moz-placeholder {
    color: #d1d1d1;
}

body {
    background: #fafafa;
    font-family: sans-serif;
    margin: 0;
}

sub,
sup {
    font-weight: normal;
    color: #b5b5b5;
}

header {
    height: 30px;
    background: #288688;
    line-height: 30px;
    color: #FFF;
}

    header a {
        color: #fff;
        text-decoration: none;
        display: inline-block;
        padding: 0 .5em;
        background: #227577;
        transition: background .2s;
    }

        header a:hover,
        header a:focus {
            background: #1c6263;
        }

.row {
    max-width: 800px;
    margin: 0 auto;
}

.form-container {
    margin: 1em auto;
    border-radius: 2px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
    background: #fff;
    overflow: hidden;
}

    .form-container label {
        color: #357273;
        font-weight: bold;
        width: 250px;
    }

    .form-container input {
        font-size: 1em;
        padding: 0.5em 0.5em;
        box-sizing: border-box;
        border-style: solid;
        border-width: 1px;
        border-color: #d4d4d4;
        /*transition: box-shadow .2s, border-color .2s, transform .2s;*/
        transition: box-shadow .2s, border-color .2s;
    }

        .form-container input[type="text"],
        .form-container input[type="password"],
        .form-container input[type="email"],
        .form-container input[type="tel"],
        .form-container input[type="number"] {
            width: 275px;
        }

            .form-container input[type="text"]:focus,
            .form-container input[type="password"]:focus,
            .form-container input[type="email"]:focus,
            .form-container input[type="tel"]:focus,
            .form-container input[type="number"]:focus {
                border-color: #288688;
                /*border-left: .5em solid #288688;*/
                transform: scale(1.05);
                box-shadow: 0 5px 5px rgba(0, 0, 0, 0.10);
            }

        .form-container input[type="checkbox"] {
            height: 1em;
            width: 1em;
            padding: 0;
            margin: 0 1em 0 0;
        }

            .form-container input[type="checkbox"]:checked {
                animation: checkbox-checked .3s;
            }

        .form-container input[type="submit"],
        .form-container a.button {
            -webkit-appearance: none;
            border-radius: 0;
            background: #288688;
            border: 1px solid #288688;
            color: #fff;
            cursor: pointer;
            position: relative;
            padding: 1em;
            display: table;
            overflow: hidden;
            height: 100%;
            min-width: 150px;
            box-sizing: border-box;
            margin-right: 15px;
            text-align: center;
            text-decoration: none;
            vertical-align: middle;
            transition: .2s background, .2s color;
        }

            .form-container input[type="submit"]:hover,
            .form-container input[type="submit"]:focus,
            .form-container a.button:hover,
            .form-container a.button:focus {
                border: 1px solid #39a4a7;
                background: #39a4a7;
                text-decoration: none;
            }

            .form-container a.button.button-close {
                background: transparent;
                color: #288688;
            }

                .form-container a.button.button-close:hover,
                .form-container a.button.button-close:focus {
                    background: #39a4a7;
                    color: #FFF;
                }

    .form-container .form-row {
        padding: 1.5em 2em;
        border-top: 1px solid rgba(0, 0, 0, 0.075);
        display: flex;
    }

    .form-container > .form-row:first-child {
        border-top: none;
    }

    .form-container .form-item {
        font-size: 0.95em;
        color: #737373;
    }

    .form-container .form-message span {
        display: block;
    }

        .form-container .form-message span:not(:empty) {
            font-weight: bold;
            text-align: center;
            padding: 1em;
            color: #288688;
            animation: fade-in 1s cubic-bezier(0.075, 0.820, 0.165, 1.000);
        }

        .form-container .form-message span:empty {
        }

        .form-container .form-message span.error {
            color: #d22121;
            font-size: 0.85em;
        }

.form-details {
    font-size: 0.85em;
    color: #a5a5a5;
}

.footer-row {
    text-align: center;
    margin: 3em 0;
}

    .footer-row a {
        text-decoration: none;
        background: #ffffff;
        color: #0072c6;
        display: inline-block;
        min-width: 150px;
        padding: 1em;
        border: 1px solid;
        transition: .2s all;
    }

        .footer-row a:hover {
            background: #0072c6;
            color: #fff;
        }

footer {
    text-align: center;
    margin: 3em 0;
    color: #c9c9c9;
}

@media only screen and (max-width: 800px) {
    .row > h1 {
        padding: 0 1em;
    }

    .row > p,
    .row > .form-details {
        padding: 0 2em;
    }

    .row > ul {
        padding: 0 4em;
    }

    .form-container {
        box-shadow: none;
    }

        .form-container .form-row {
            display: block;
        }

        .form-container input,
        .form-container input[type="text"],
        .form-container input[type="password"],
        .form-container input[type="email"],
        .form-container input[type="tel"],
        .form-container input[type="number"],
        .form-container a.button {
            width: 100%;
        }

            .form-container input[type="submit"],
            .form-container a.button,
            .form-container .form-message {
                margin-bottom: 1em;
            }

        .form-container label {
            display: block;
            padding-bottom: .5em;
        }
}
