/* Clearfix */

.group:before,
.group:after {
    content: "";
    display: table;
}

.group:after {
    clear: both;
}

.group {
    zoom: 1;
}


/* Basic overrides */

body {
    font-family: "Open Sans";  
    color: #3d4942;
}

form ul {
    padding: 0;
    margin: 0;
    
}

form ul li {
    list-style: none;
    position: relative;
}

form textarea {
    max-width: 100%;
}

form label {
    touch-action: manipulation;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    display: block;
}

/* 3rd party overrides */
.has-event .pika-button, .is-selected .pika-button {
    background: #c50637;
    box-shadow: inset 0 1px 3px #500;
}

.is-today .pika-button {
    color: #c50637;
    background: #ffe2db;
}

.pika-button:hover, .pika-row.pick-whole-week:hover .pika-button {
    background: #c50637;
}

.pika-single.is-bound {
    border-radius: 2px;
}


/* Widgets */

form {
    padding: 20px;
    padding-right: 30px;
}

form li > label {
    padding-left: 10px;
}

form li {
    padding-bottom: 20px;
    position: relative;
}

form li.hidden {
    display: none;
}

form .errorlist {
    position: relative;
    padding-left: 10px;
    background: #3d4942;
    color: #fff;
    font-weight: bold;
    padding: 10px;
    padding-top: 0;
    margin-bottom: 10px;
    padding-bottom: 15px;
}

form .errorlist:before {
    position: absolute;
    display: block;
    background: #3d4942;
    width: 20px;
    height: 20px;
    top: 100%;
    left: 20px;
    content: '';
    transform: rotate(45deg) translate(-50%, -50%);
}

form .errorlist li {
    padding: 0;
    padding-top: 10px;
}

form input[type="date"],
form input[type="time"] {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 2px;
}

form input[type="submit"] {
    background: #c50637;
    color: #fff;
    text-align: left;
    padding: 20px;
    margin-left: 10px;
    border-radius: 2px;    
    border: none;
    -webkit-appearance: none;
}

form ul li:last-of-type {
    text-align: right;
}

form textarea,
form input[type="text"],
form input[type="email"],
form input[type="number"],
form select {
    width: calc(100% - 10px);
    margin-left: 10px;
    border: 1px solid #ccc;    
    border-radius: 2px;
}

form.event li:nth-child(6),
form.event li:nth-child(10),
form.event li:nth-child(11) {
    padding-bottom: 40px;
}

select {
    -webkit-appearance: none;
}

.date-widget input {
    text-align: center;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
}


.date-widget,
.participant-widget {
    padding-left: 10px;
}

.participant-widget input {
    display: none;
}

.date-widget .label .help-text-button,
.participant-widget .label .help-text-button {
    border-radius: 50%;
    margin-left: 10px;
    color: #c50637;
}

.date-widget .label,
.participant-widget .label {
    float: left;
    width: 50%;
    display: inline-block;
}

.date-widget .input-wrapper,
.participant-widget .buttons {
    position: relative;
    float: left;
    width: 30%;
    margin-left: 20%;
}

.participant-widget .buttons .counter {
    display: block;
    width: 50%;
    background: #fff;
    text-align: center;
    margin-left: 25%;
    margin-right: 25%;
}

.participant-widget .buttons .less,
.participant-widget .buttons .more {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    touch-action: manipulation;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;    
}

.participant-widget .buttons .less {
    left: 0;
}

.participant-widget .buttons .more {
    right: 0;
}

.participant-widget .buttons .more.inactive .button,
.participant-widget .buttons .less.inactive .button {
    background: #ddd;
    opacity: 0;
}

.participant-widget .buttons .button {
    width: 20px;
    height: 20px;
    background: #c50637;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
}

form.disabled .participant-widget .buttons .button {
    background: #ccc;
}

.participant-widget .buttons .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: monospace;
}

.date-widget .label,
.participant-widget.quarter-hours-time .label,
.participant-widget.half-hours .label {
    width: 40%;
}

.date-widget .input-wrapper,
.participant-widget.quarter-hours-time .buttons,
.participant-widget.half-hours .buttons {
    width: 60%;
    margin-left: 0;    
}



.help-text-modal {
    display: none;
}

.help-text-modal.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.help-text-modal.active .exit-area {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: 0.25;
}

.help-text-modal.active .text {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    bottom: 20px;
    background: #fff;
    padding: 20px 20px;
    overflow-y: scroll;
    /*font-size: 12px;    */
    border-radius: 2px;
}

.help-text-modal.active .text div {
    display: none;
}

.help-text-modal.active .text div.active {
    display: block;
}



.button-radio-select {
    display: flex;
    flex-wrap: wrap;
    padding-left: 10px;
}

.button-radio-select.hidden {
    display: none;
}

.button-radio-select input {
    display: none;
}

.button-radio-select label {
    display: block;
    padding: 5px 10px;
    background: #eee;    
    border: 1px solid #eee;
}

.button-radio-select input:checked + label {
    background: #c50637;
    border: 1px solid #c50637;
    color: #fff;
    border-radius: 2px;
}

.button-radio-select .choice-wrapper {
    flex-basis: 100%;
}

.linked-checkbox a {
    color: #000;
    padding-left: 10px;
}

.linked-checkbox {
    padding-left: 10px;
}

.linked-checkbox label {
    padding-left: 10px;
    display: inline;
}

form.disabled .button-radio-select label,
.button-radio-select .choice-wrapper.hidden label {
    background: #fff;
    color: #bbb;
    border: 1px solid #eee;    
    pointer-events: none;
    cursor: not-allowed;
}

form.disabled .button-radio-select input:checked + label {
    background: #ccc;
    border: 1px solid #ccc;
    color: #fff;
}



.price-breakdown {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    border-top: 1px solid #ccc;
    background: #fafafa;
}

.price-breakdown .detailed {
    /*font-size: 12px;*/
    width: 100%;
    margin-bottom: 20px;
}

.price-breakdown .detailed td:nth-of-type(1) {
    padding-right: 10px;
}

.price-breakdown .detailed td:nth-of-type(2) {
    white-space: nowrap;
}

.price-breakdown .savings {
    font-size: 12px;
    white-space: nowrap;
}

.price-breakdown .total-discounted {
    font-weight: bold;
}

.price-breakdown .total {
    text-decoration: line-through;
}

.price-breakdown table {
    display: none;
}

.price-breakdown .short {
    position: relative;
}

.price-breakdown .short:after {
    position: absolute;
    top: 50%;
    right: 0;
    content: '▲';
    font-size: 10px;
    transform: translateY(-50%);
}

.price-breakdown.expanded table {
    display: table;
}

.price-breakdown.expanded .short:after {
    position: absolute;
    top: 50%;
    right: 0;
    content: '▼';
    font-size: 10px;
    transform: translateY(-50%);
}

.notice {
    padding: 30px;
    background: #3d4942;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 30px;    
    font-weight: bold;
}

.notice.hidden {
    display: none;
}

.notice.pdf {
    background: #0a0;
}

input.hidden {
    display: none;
}



/* Ipad + */
@media screen and (min-width: 500px) {
    form {
        max-width: 810px;
        margin: 0 auto;
    }
    
    .price-breakdown {
        max-width: 810px;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
        margin: 0 auto;
    }
    
    .price-breakdown .detailed,
    .price-breakdown .savings {
        font-size: unset;
    }

    .price-breakdown table {
        display: table;
    }

    .price-breakdown .short:after {
        display: none;
    }
    
    .help-text-modal .text {
        max-width: 810px;
        margin: 0 auto;
    }
    
    .date-widget .label,
    .participant-widget.quarter-hours-time .label,
    .participant-widget.half-hours .label {
        width: 50%;
    }

    .date-widget .input-wrapper,
    .participant-widget.quarter-hours-time .buttons,
    .participant-widget.half-hours .buttons {
        width: 30%;
        margin-left: 20%;
    }    
    
    input[type="submit"] {
        cursor: pointer;
    }
    
    .notice {
        margin: 30px auto;
        max-width: 810px;
    }
    
    form.disabled .participant-widget .buttons,
    form.disabled .button-radio-select label {
        cursor: not-allowed;
    }    
    
    .help-text-modal.active .text {
        font-size: unset;
        padding: 30px;
    }
}






















