* {
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    list-style: none;
    margin: 0;
    outline: none;
    padding: 0;
}

a {
    text-decoration: none;
}

body, html {
    height: 100%;
}

body {
    background: #dfebed;
    font-family: 'Roboto', sans-serif;
}

.container {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: right;
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
}

.calendar {
    background: #101010;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
    height: 412px;
    perspective: 1000;
    transition: .9s;
    transform-style: preserve-3d;
    width: 524px;
    margin-right: 24px;
    margin-bottom: 10px;
}

/* Front - Calendar */
.front {
    transform: rotateY(0deg);
}

.current-date {
    border-bottom: 1px solid rgb(28 28 28);
    display: flex;
    justify-content: space-between;
    padding: 22px 40px;
}

.current-date h1 {
    color: #dfebed;
    font-size: 1.4em;
    font-weight: 300;
    display: inline-block;
    margin: 0 10px 0 0;
    padding: 0;
}

.current-date h1:last-child {
    margin: 0;
}

.prev-month, .next-month {
    cursor: pointer;
}

.prev-month {
    opacity: .3;
}

.week-days {
    color: #dfebed;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    padding: 22px 40px;
    margin: 0 !important;
}

.week-days li {
    list-style-type: none !important;
}

.days {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.weeks {
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 0 40px;
}

.weeks div {
    display: flex;
    font-size: 1.2em;
    font-weight: 300;
    justify-content: space-between;
    margin-bottom: 4px;
    width: 100%;
}

.last-month {
    opacity: .3;
}

.weeks span {
    padding: 10px;
    line-height: normal;
}

.weeks span.active {
    background: #c77c06;
    border-radius: 50%;
}

.weeks span:not(.last-month):hover {
    cursor: pointer;
    font-weight: 600;
}

.event {
    position: relative;
}

.event:after {
    content: '•';
    color: #c77c06;
    font-size: 1.4em;
    position: absolute;
    right: -4px;
    top: -4px;
}

/* Back - Event form */

.back {
    height: 100%;
    transform: rotateY(180deg);
}

.back input {
    background: none;
    border: none;
    border-bottom: 1px solid rgb(28 28 28);
    color: #dfebed;
    font-size: 1.4em;
    font-weight: 300;
    padding: 18px 40px;
    width: 100%;
}

.back input.small {
    font-size: 1em;
    width: calc(100% - 124px);
    padding: 8px;
    float: right;
    margin-top: -8px;
}

.info {
    color: #dfebed;
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 1.2em;
    padding: 18px 40px;
}

.info div:not(.observations) {
    margin-bottom: 18px;
}

.info span {
    font-weight: 300;
}

.info .date {
    display: flex;
    justify-content: space-between;
}

.info .date p {
    width: 50%;
    margin-bottom: 14px;
}

.info .address p {
    width: 100%;
    margin-bottom: 14px;
}

.actions {
    bottom: 0;
    border-top: 1px solid rgb(28 28 28);
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
}

.actions button {
    background: none;
    border: 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    padding: 30px 0;
    text-transform: uppercase;
    width: 50%;
}

.actions button:first-of-type {
    border-right: 1px solid rgb(28 28 28);
}

.actions button:hover {
    background: #c77c06;
    cursor: pointer;
}

.actions button:active {
    background: #c77c06;
    outline: none;
}

/* Flip animation */

.flip {
    transform: rotateY(180deg);
}

.front, .back {
    backface-visibility: hidden;
}

.info .time-slots .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.soft {
    font-weight: 100;
    font-size: 14px;
    bottom: 104px;
    position: absolute;
}

input.error::placeholder, .selected-time.error {
    color: #c77c06;
}

.email {
    margin-bottom: 0 !important;
}

.date {
    margin-bottom: 0 !important;
}

.time-slots {
    width: 100px;
    float: right;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    border: 0;
    font-size: 1em;
    padding: 4px;
    border-bottom: 1px solid rgb(28 28 28);
}

.time-slots option {
    color: #000;
}

p.info-date {
    padding-left: 42px;
}

.selected-date {
    font-weight: 300;
    float: right;
}

@media screen and (max-width: 500px) {
    .calendar {
        width: 116%;
        margin: -8%;
        margin-bottom: 8%;
        height: 336px;
    }

    .current-date {
        padding: 10px 14px;
    }

    .current-date h1 {
        font-size: 1em;
        margin: 4px 10px 0 0;
    }

    .week-days {
        padding: 8px 14px;
    }

    .weeks {
        padding: 0 14px;
    }

    .back input {
        font-size: 1em;
        padding: 12px 16px;
    }

    .info {
        font-size: 1em;
        padding: 8px 16px;
    }

    p.info-date {
        display: none;
    }

    .actions button {
        padding: 16px 0;
    }

    .actions button:last-child {
        background: #c77c06;
        border-bottom-right-radius: 4px;
    }

    .email .date {
        margin-bottom: 8px !important;
    }

    .back input.small {
        width: calc(100% - 92px);
    }

    .info .date p {
        width: 100%;
    }

    .time-slots {
        width: 206px;
        padding: 8px 4px;
        margin-bottom: -8px;
        margin-top: -4px;
    }
}

#location {
    display: none;
}