.epower-search-form #autocomplete {
    width: 100% !important;
}

.epower-search-form div.error {
    background-image: none;
    background-color: transparent;
    color: #000;
}

.tickets-search-form .passengers-cabin-class-wrapper.collapsed .passengers-cabin-class {
    display: none;
}

input.ui-spinner-input.error {
    background-color: red;
}

.epower-search-form .form input.error[type=text] {
    border: solid 1px #ce5483;
    moz-box-shadow: inset 0px 3px 6px #ffe7f0;
    -webkit-box-shadow: inset 0px 3px 6px #ffe7f0;
    box-shadow: inset 0px 3px 6px #ffe7f0;
}

.header-wide-wrapper {
    position: relative;
    height: 400px;
}

.epower-search-form {
    background: rgba(255,255,255,0.9);
    padding: 0 15px 10px 15px;
}

.epower-search-form .form {
    padding-top: 15px;
    position: relative;
    clear: both;
}

.epower-search-form .form .form-wrapper, .epower-search-form .form .passengers-cabin-class-wrapper, .epower-search-form .form .form-item-departure-date, .epower-search-form .form .form-item-return-date {
    width: 50%;
    float: left;
    position: relative;
}
.epower-search-form .form .form-item-departure-date, .epower-search-form .form .form-item-return-date {
    width: 100%;
}

.epower-search-form .main-row > div {
    padding-left: 0;
    padding-right: 0;
}
.epower-search-form .main-row .dates-group {
    width: 30%;
}
.epower-search-form .main-row .submit-group {
    width: 12%;
    padding-left: 10px;
}
.epower-search-form .form .form-wrapper > .form-item:before, .epower-search-form .form .passengers-cabin-class-wrapper .title:before {
    position: absolute;
    left: 5px;
    right: auto;
    top: 50%;
    color: #3378c4;
    text-align: center;
    -webkit-transform: translate(0, -50%);
    -moz-transform: translate(0, -50%);
    transform: translate(0, -50%);
    font-size: 21px;
    pointer-events: none;
    width: 34px;
}

.epower-search-form .form .form-item-return-date.form-disabled:before {
    opacity: .5;
}

#edit-from-group > .form-item:before, #edit-to-group > .form-item:before {
    font-size: 25px;
}

.epower-search-form .form .form-item-return-date label {
    width: 16px;
    height: 16px;
    border: 1px solid #e2e2e2;
    right: 5px;
    top: 50%;
    margin-top: -8px;
    background: url('/sites/all/themes/paravion_responsive/images/close-gray.svg') center center no-repeat #f2f2f2;
    background-size: 10px 10px;
}
.epower-search-form .form .form-item-return-date label:hover {
    border-color: #9b9b9b;
}

.epower-search-form .form input[type=text],
.epower-search-form .form .passengers-cabin-class-wrapper {
    color: #333;
    font-weight: 400;
    border: solid 1px #babec2;
    background: #fff;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
}
.epower-search-form .form .passengers-cabin-class-wrapper {
    font-size: 13px;
    width: 8%;
    -webkit-border-radius: 0 3px 3px 0;
    -moz-border-radius: 0 3px 3px 0;
    border-radius: 0 3px 3px 0;
    display: table;
}

.epower-search-form .form input[type=text] {
    padding: 8px 10px 8px 40px;
    width: 100%;
    border-right-width: 0;
    height: 52px;
}
#edit-from-group input[type=text] {
    -webkit-border-radius: 3px 0 0 3px;
    -moz-border-radius: 3px 0 0 3px;
    border-radius: 3px 0 0 3px;
}

.epower-search-form .form .passengers-cabin-class-wrapper .title {
    padding: 8px 10px 8px 40px;
    cursor: pointer;
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    height: 50px;
}
.epower-search-form .form .passengers-cabin-class-wrapper .title span {
    display: none;
}

.epower-search-form .form input[type="text"]:hover,
.epower-search-form .form .passengers-cabin-class-wrapper:hover {
    border: solid 1px #9b9b9b;
}
.epower-search-form .form input[type="text"]:hover {
    border-right-width: 0;
}

.epower-search-form .form input[type="text"]:disabled {
    opacity: .5;
}

.epower-search-form .form input[type="submit"] {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 10px 0;
    width:100%;
    text-transform: uppercase;
    height: 52px;
    float: right;
    font-weight: bold;
    font-size: 14px;
}

.epower-search-form .form .passengers-cabin-class {
    background: #fff;
    position: absolute;
    -webkit-box-shadow: 3px 3px 6px rgba(182, 212, 233, .6);
    -moz-box-shadow: 3px 3px 6px rgba(182, 212, 233, .6);
    box-shadow: 3px 3px 6px rgba(182, 212, 233, .6);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #dddddd;
    border-top: 2px solid #3378c4;
    display: none;
    width: 209px;
    left: 0;
    margin-top: 10px;
    top: 100%;
    z-index: 5;
}
.epower-search-form .form .passengers-cabin-class:before {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #3378c4;
    position: absolute;
    left: 17px;
    top: -8px;
    content: "";
}
.epower-search-form .form .passengers-cabin-class:after {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #fff;
    position: absolute;
    left: 16px;
    top: -7px;
    content: "";
    z-index: 2;
}
.epower-search-form .passengers-buttons-area {
    padding: 10px;
    background-color: #f0f0f0;
}
.epower-search-form .passengers-buttons-area .close {
    width: 100%;
    background-color: #3378c4;
    color: #fff;
    font-size: 14px;
    padding: 5px 10px;
    text-align: center;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    cursor: pointer;
}
.epower-search-form .passengers-buttons-area .close:hover {
    opacity: .9;
}

.epower-search-form .form .passengers-cabin-class label {
    position: static;
    width: auto;
    height: auto;
    font-weight: 400;
    font-size: 14px;
}

.epower-search-form .form .passengers-cabin-class .passenger-container {
    padding: 8px 10px;
    display: block;
    clear: both;
    border-bottom: 1px solid #f0f0f0;
}

.epower-search-form .form .passengers-cabin-class-wrapper .passengers-frontend-container {
    overflow: hidden;
}

.epower-search-form .form .passengers-cabin-class-wrapper .form-item-cabin-class {
    margin: 10px 0 5px 0;
}

.epower-search-form .form .passengers-cabin-class-wrapper .form-item-cabin-class label {
    display: block;
}

.epower-search-form .form .passengers-cabin-class .passenger-container label {
    float: left;
    width: 58%;
    padding-top: 3px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
}

.epower-search-form .form .passengers-cabin-class .passenger-container .passenger-description {
    font-size: 11px;
    line-height: 1.1em;
    font-weight: 400;
    color: #808080;
    display: block;
    padding-top: 0;
    text-align: left;
}

.epower-search-form .form .passengers-cabin-class .passenger-container .ui-spinner {
    float: right;
    width: 40%;
    position: relative;
    text-align: right;
}
.epower-search-form .form .passengers-cabin-class .passenger-container .ui-spinner a:hover {
    opacity: .9;
}

.epower-search-form .form .passengers-cabin-class .passenger-container .ui-icon {
    background: none;
    text-indent: 0;
    cursor: pointer;
    line-height: 24px;
    height: 24px;
    position: static;
    margin: 0;
    width: 100%;
}

.epower-search-form .form .passengers-cabin-class .passenger-container a:hover {
    text-decoration: none;
}

.epower-search-form .form .passengers-cabin-class #edit-cabin-class {
    font-size: 13px;
    width: 100%;
    color: #333;
    font-weight: 700;
    border: solid 1px #babec2;
    background: #fff;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    padding: 7px 5px;
    moz-box-shadow: inset 0px 3px 6px #f2f2f2;
    box-shadow: inset 0px 3px 6px #f2f2f2;
}

.epower-search-form .form .passengers-cabin-class .ui-spinner {
    border: 0;
    display: block;
    padding: 5px 0;
}

.epower-search-form .form .passengers-cabin-class .ui-spinner-up,
.epower-search-form .form .passengers-cabin-class .ui-spinner-down {
    display: block;
    float: left;
    padding: 3px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #3378c4;
    width: auto;
    height: auto;
    position: static;
    height: 30px;
    width: 24px;
    line-height: 28px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.epower-search-form .form .passengers-cabin-class .ui-spinner-up {
    float: right;
}

.epower-search-form .form .passengers-cabin-class .ui-spinner-input {
    background: #fff;
    border-left: transparent;
    border-right: transparent;
    display: block;
    float: left;
    padding: 3px 3px 2px 3px;
    font-size: 12px;
    font-weight: 700;
    width: 25px;
    text-align: center;
    height: 30px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    border: 0 none;
    margin: 0;
}


.epower-search-form .form .passengers-cabin-class .ui-spinner-input:hover {
    border: 0 none;
}

.epower-search-form .form .passengers-cabin-class .ui-spinner-input.error {
    border: 0 none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    color: #ce5483;
}

.epower-search-form .form .secondary-row {
    clear: both;
    padding-top: 8px;
    font-size: 13px;
}

.epower-search-form .form .secondary-row > div {
    float: left;
    width: 22%;
}
.ro .epower-search-form .form .secondary-row > div.form-item-flight-type {
    width: 20%;
}
.epower-search-form .form .secondary-row > div.form-item-flexible-dates {
    width: 40%;
}

.epower-search-form .form .secondary-row select {
    border: 0;
    background: transparent;
    outline: none;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.epower-search-form .secondary-row .selectric-wrapper {
    display: inline-block;
    vertical-align: middle;
}
.epower-search-form .secondary-row .selectric {
    background-color: transparent;
    border: 0 none;
}
.epower-search-form .secondary-row .selectric .label {
    font-size: 13px;
    line-height: 1.2em;
    margin-left: 0;
    border-bottom: 1px dashed #757575;
    padding: 0 2px;
    height: auto;
    margin-right: 20px;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.epower-search-form .secondary-row .selectric .button {
    background: transparent;
    width: 20px;
    height: 16px;
}

.epower-search-form .secondary-row .selectric-open .selectric-items {
    width: auto !important;
    margin-top: -1px;
    z-index: 1;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    overflow: hidden;
}

.epower-search-form .secondary-row .selectric .button:after {
    border-width: 6px 6px medium;
}
.epower-search-form .secondary-row .selectric-items li {
    padding: 6px 10px;
    line-height: 1.2em;
    font-size: 13px;
    white-space: nowrap;
    border-top: 1px solid #e3e3e3;
    background-color: #fff;
}
.epower-search-form .secondary-row .selectric-items li:first-child {
    border-top: 0 none;
}
.epower-search-form .secondary-row .selectric-items li.highlighted, .epower-search-form .secondary-row .selectric-hover .selectric-items li:hover {
    background-color: #f2f2f2;
}

.form-item-from label, .form-item-to label, .passengers-cabin-class-wrapper label, .form-item-departure-date label, .form-item-return-date label {
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 32px;
}

.form-item-departure-date label, .form-item-return-date label {
    cursor: pointer;
}

.form-item-from label:before, .form-item-to label:before, .form-item-departure-date:before, .form-item-return-date:before {
    top: 6px;
    right: 4px;
    font-size: 16px;
    color: #666;
}

.form-type-select label {
    font-weight: 400;
}

.form-item-flexible-dates label {
    padding-left: 4px;
    cursor: pointer;
    vertical-align: middle;
}

.form-item-flexible-dates input[type="checkbox"] {
    margin-top: 3px;
}

.epower-search-form .form .flight-type-oneway .form-item-return-date label  {
    width: 100%;
    height: 100%;
    background: none transparent;
    border: 0 none;
    right: 0;
    top: 0;
    margin: 0;
}



@media (max-width: 999px) {

    .epower-search-form .main-row .dates-group {
        width: 50%;
    }
    .epower-search-form .main-row .submit-group {
        width: 35%;
    }
    #edit-to-group input[type="text"] {
        border: solid 1px #babec2;
        -webkit-border-radius: 0 3px 3px 0;
        -moz-border-radius: 0 3px 3px 0;
        border-radius: 0 3px 3px 0;
    }
    #edit-to-group input[type="text"]:hover {
        border: solid 1px #9b9b9b;
    }

    .epower-search-form .form .form-item-departure-date input[type="text"] {
        -webkit-border-radius: 3px 0 0 3px;
        -moz-border-radius: 3px 0 0 3px;
        border-radius: 3px 0 0 3px;
    }

    .epower-search-form .form .passengers-cabin-class-wrapper, .epower-search-form .form .form-item-departure-date, .form .form-item-return-date, .epower-search-form .form input[type=submit] {
        margin-top: 10px;
    }

    .epower-search-form .form .secondary-row {
        clear: both;
        padding: 10px 0 0 0px;
    }

    .epower-search-form .form .secondary-row > div, .epower-search-form .form .secondary-row > div.form-item-flight-type, .epower-search-form .form .secondary-row > div.form-item-flexible-dates {
        width: 33.3%;
        padding-left: 0;
    }

    .epower-search-form .form .passengers-cabin-class-wrapper {
        width: 15%;
    }
}

@media (max-width: 767px) {
    .header-slide-content {
        display: none;
    }
    .epower-search-form {
        background: none transparent;
    }

    .epower-search-form .form input[type=submit] {
        float: right;
        margin-top: 5px;
        padding-top: 6px;
        padding-bottom: 6px;
        width: 100%;
    }

    .epower-search-form .form .passengers-cabin-class-wrapper, .epower-search-form .form .form-item-departure-date, .form .form-item-return-date {
        margin-top: 0;
    }

    .epower-search-form .form .form-item-flight-type {
        width: auto;
        padding-right: 10px;
    }
    #header-presentation .video, .epower-search-form .form .secondary-row  {
        display: none;
    }
    .header-wide-wrapper .region.region-header-wide > .block {
        margin-left: 0;
        margin-right: 0;
    }
    .epower-search-form .form .form-item-flight-type {
        width: 50%;
    }

    #epower-search-tickets-form .location-icon, #epower-search-tickets-form .calendar-icon, #epower-search-tickets-form .passengers-icon {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        margin: -20px 0 0 -20px;
        width: 40px;
        height: 40px;
        background-color: #3477c5;
        border: 3px solid #fff;
        box-sizing: border-box;
        -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%;
        color: #fff;
        text-align: center;
        font-size: 18px;
        line-height: 2.1em;
        z-index: 1;
    }
    #epower-search-tickets-form .calendar-icon {
        font-size: 18px;
        line-height: 2em;
    }
    #epower-search-tickets-form .passengers-icon, #epower-search-tickets-form .one-way .calendar-icon{
        right: 10px;
        left: auto;
        border-color: #fff;
        text-indent: 0;
    }
    #epower-search-tickets-form .passengers-icon {
        font-size: 22px;
        line-height: 1.75em;
    }

    #epower-search-tickets-form .row-wrapper {
        margin-top: 10px;
    }

    .epower-search-form .form input[type="text"], .epower-search-form .form input[type="text"]:hover {
        border-width: 1px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        padding-left: 10px;
    }
    .epower-search-form .form .form-item-return-date label {
        display: none;
    }
    #edit-from-group, .epower-search-form .form .form-item-departure-date {
        padding-right: 3px;
    }
    #edit-to-group, .epower-search-form .form .form-item-return-date {
        padding-left: 3px;
    }
    #edit-from-group input[type="text"], #edit-to-group input[type="text"], .epower-search-form .form .form-item-departure-date input[type="text"], .epower-search-form .form .passengers-cabin-class-wrapper {
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        border-width: 1px;
    }
    #edit-to-group input[type="text"], .epower-search-form .form .form-item-return-date input[type="text"] {
        text-align: right;
    }
    .epower-search-form .form .form-wrapper > .form-item:before, .epower-search-form .form .passengers-cabin-class-wrapper .title:before {
        display: none;
    }
    .epower-search-form .main-row .dates-group {
        width: auto;
    }
    .epower-search-form .form .passengers-cabin-class-wrapper {
        width: 100%;
        float: none;
    }
    .epower-search-form .form .passengers-cabin-class-wrapper .title {
        text-align: left;
        padding-left: 10px;
        font-size: 16px;
     }
    .epower-search-form .main-row .submit-group {
        width: auto;
        float: none;
        padding-left: 0;
    }

    .epower-search-form .form-type-radios > div, .form-type-radios > li {
         -webki-border-radius: 3px 0 0 3px;
         -moz-border-radius: 3px 0 0 3px;
         border-radius: 3px 0 0 3px;
     }
    .epower-search-form .form-type-radios > div:last-child, .form-type-radios > li:last-child {
        -webki-border-radius: 0 3px 3px 0;
        -moz-border-radius: 0 3px 3px 0;
        border-radius: 0 3px 3px 0;
    }

    .epower-search-form .form .passengers-cabin-class .ui-spinner-input:hover {
        padding-left: 3px;
    }

    .epower-search-form .form .passengers-cabin-class-wrapper .title span {
        display: inline-block;
    }

    .epower-search-form .form .flight-type-oneway .form-item-return-date {
        display: none;
    }
    .epower-search-form .form .flight-type-oneway .form-wrapper {
        width: 100%;
    }
    .epower-search-form .form .flight-type-oneway .form-wrapper input {
        padding-right: 30px;
    }
    #epower-search-tickets-form .flight-type-oneway .calendar-icon {
        right: 10px;
        left: auto;
    }
    .front #header-presentation {
        display: none;
    }
    .front .region.region-header-wide {
        position: static;
    }
    .epower-search-form .form .flight-type-oneway .form-item-departure-date {
        padding-right: 0;
    }
}
