﻿/*320px — 480px: Mobile devices
481px — 768px: iPads, Tablets
769px — 1024px: Small screens, laptops
1025px — 1200px: Desktops, large screens
1201px and more —  Extra large screens, TV*/

.jp-row {
    max-width: 100% !important;
    margin: 0 !important;
}

.jp-checkbox-outline:focus {
    outline: 1px solid;
    outline-offset: 5px;
    outline-color: lightgrey;
}

    .jp-checkbox-outline:focus:not(:focus-visible) {
        outline: none;
    }

/*input,
select,
textarea {
    max-width: 100%;
}*/

/*#endregion Global*/

/*#region Form Controls*/

.jp-form {
    -webkit-box-shadow: 0px 0px 5px -1px rgba(0,0,0,0.35);
    -moz-box-shadow: 0px 0px 5px -1px rgba(0,0,0,0.35);
    box-shadow: 0px 0px 5px -1px rgba(0,0,0,0.35);
    background-color: white;
    padding: 5px 20px;
    border-radius: 10px;
}

.jp-submit-button {
    width: 100%;
    padding: 5px;
    border: 1px solid #848484;
    border-radius: 5px;
    background-color: #0A1C5C;
    color: #FFF;
    text-align: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    outline: none;
}

.jp-submmit-button:hover {
    background-color: #6F7AA0;
    color: #0A1C5C;
}

.jp-submit-button:focus {
    outline: 3px solid;
    outline-offset: 1px;
    outline-color: lightgrey;
}


.jp-submit-button:disabled {
    color: #808080;
    background-color: #CCC;
    border: 1px solid #808080;
    cursor: default;
}

.jp-div-bottom-border {
    border-bottom: 1px solid #e6e6e6;
}

.jp-when-inputs {
    flex: 1 1 30px;
}

@media only screen and (max-width: 480px) {

    .jp-when-inputs {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        padding-bottom: 10px !important;
    }
}

/*#region Validation Styles*/

.jp-required-input {
    border: 1px solid !important;
    border-width: thin !important;
    border-color: #D70040 !important;
}

.jp-required-validator {
    color: #D70040 !important;
}

/*#endregion Validation Styles*/

/*#region Customisations to Bootstrap Styles */

.btn span {
    color: white !important;
}

.jp-form-control {
    font-size: 14px !important;
}

@media only screen and (max-width: 480px) {
    .jp-form-control {
        font-size: 12px !important;
        margin-left: -10px !important;
        min-width: 275px !important;
    }
}

.jp-form-control {
    border-radius: 0 !important;
}

    .jp-form-control:focus {
        outline: none !important;
        box-shadow: none !important;
    }

/*#endregion Customisations to Bootstrap Styles region*/

/*#region jqueryUI datepicker styling*/

/* Previous and Next buttons  */

.ui-datepicker .ui-datepicker-next .ui-icon {
    background: url(/content/images/calendaricon.png);
}

.ui-datepicker .ui-datepicker-prev .ui-icon {
    background: url(/content/images/calendaricon.png);
}

/*.ui-datepicker-header.ui-widget-header {
    background: white !important;
    border: none;
    border-radius: 0;
    font-weight: normal;
}

.ui-datepicker-calendar thead {
    color: #979797;
    border-bottom: 1px solid #979797;
    margin-bottom: 25px !important;
}*/

.ui-state-default {
    color: black !important;
    background: none !important;
}

/*.ui-datepicker-calendar {
    text-align: center;
}*/

/*#endregion jqueryUI datepicker styling*/

/*#region Dropdown Related Styles*/

.jp-depart-dropdown {
    min-width: 170px;
}

.jp-time-dropdown {
    left: 5px;
    min-width: 130px;
}

.jp-radio-button {
    margin-left: 17px;
    padding-top: 5px !important;
    width: 20px;
    height: 20px;
}

.jp-time-arrow {
    width: 30px !important;
    display: block;
    margin: 0 auto;
    padding: 5px 0;
    cursor: pointer;
}

.jp-time-text {
    width: 50% !important;
    display: block;
    margin: 0 auto;
    text-align: center;
}

@media only screen and (max-width: 480px) {

    .jp-depart-dropdown {
        min-width: 110px;
    }

    .jp-time-dropdown {
        min-width: 110px;
    }
}

.jp-dropdown-container {
    width: fit-content;
    padding: 10px;
    background-color: white;
    border: 1px solid #8c8c8c;
    position: absolute;
    margin-top: 15px;
    z-index: 1000;
}

    /*Dropdown Arrow*/
    .jp-dropdown-container:after,
    .jp-dropdown-container:before {
        bottom: 100%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }

    .jp-dropdown-container:after {
        border-color: rgba(255, 255, 255, 0);
        border-bottom-color: white;
        border-width: 14px;
        left: 15%;
        margin-left: -14px;
    }

    .jp-dropdown-container:before {
        border-color: rgba(113, 158, 206, 0);
        border-bottom-color: #8c8c8c;
        border-width: 15px;
        left: 15%;
        margin-left: -15px;
    }

.jp-dropdown-select {
    border: none;
    border-bottom: 1px solid #2e347d !important;
    text-align: center;
    margin-top: 6px;
    max-width: 100%;
}

    .jp-dropdown-select:disabled {
        background-color: white;
    }

    .jp-dropdown-select:hover {
        cursor: pointer;
    }

.jp-dropdown {
    position: relative;
    width: 100%;
    display: inline-block;
    margin-bottom: 0;
    list-style: none;
    padding: 0;
}

    .jp-dropdown > input[type="checkbox"] {
        position: absolute;
        left: -100vw;
    }

    .jp-dropdown > label {
        display: inline-block;
        padding: 6px 15px;
        color: #333;
        line-height: 1.5em;
        text-decoration: none;
        border-bottom: 1px solid #2e347d;
        cursor: pointer;
        width: 100%;
    }

        .jp-dropdown > label:hover,
        .jp-dropdown > a[role="button"]:hover,
        .jp-dropdown > a[role="button"]:focus {
            border-color: #333;
        }

        .jp-dropdown > label:after,
        .jp-dropdown > a[role="button"]:after {
            content: "";
            float: right;
            font-family: FontAwesome;
            display: inline-block;
            margin-left: 6px;
        }

    .jp-dropdown > ul {
        position: absolute;
        z-index: 999;
        display: block;
        left: -200vw;
        top: calc(1.5em + 30px);
        border: 1px solid #8c8c8c;
        background: #fff;
        padding: 10px 0;
        margin: 0;
        list-style: none;
        width: 100%;
        -webkit-box-shadow: 0 3px 8px rgba(0,0,0,.15);
        -moz-box-shadow: 0 3px 8px rgba(0,0,0,.15);
        box-shadow: 0 3px 8px rgba(0,0,0,.15);
    }

        .jp-dropdown > input[type="checkbox"]:checked ~ ul,
        .jp-dropdown > ul:target {
            left: 0;
        }

@media (max-width: 480px) {
    .jp-dropdown > input[type="checkbox"]:checked ~ ul,
    .jp-dropdown > ul:target {
        left: -45px;
    }
}

.jp-dropdown > [type="checkbox"]:checked + label:after,
.jp-dropdown > ul:target ~ a:after {
    content: "";
    float: right;
}

.jp-dropdowna.close {
    display: none;
}

.jp-dropdown > ul:target ~ a.close {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    text-indent: -100vw;
    z-index: 1000;
}

.jp-dropdownul li label {
    padding-left: 20px;
}

/*#endregion Dropdown Related Styles*/

/*#endregion Form Controls*/
