﻿/* Ripped straight from the old Media Request form. Lots of potential for improvement here I'm sure. */

body {
    padding: 20px 0 100px 0;
}

h1,
h2,
h3,
.control-label {
    color: #159594;
    padding: 0;
}

input {
    z-index: 100;
}

.formname {
    display: inline-block;
    width: 66%;
    text-align: right;
    padding-top: 0.25rem;
}

.heading {
    border-top: solid black 1px;
    padding-top: 1rem;
    color: #008995;
    font-weight: bold;
    font-size: 14pt;
}

.container.confirm {
    margin: 2rem;
    max-width: 60rem;
}

.container.details {
    text-align: left;
    border-top: 1px solid;
    margin: 60px 0px;
    max-width: 800px;
}

.header {
    position: relative;
    margin: 25px;
}

.logo {
    max-width: 33%;
    min-width: 250px;
    display: inline-block;
    vertical-align: bottom;
}

.title {
    display: inline-block;
    position: absolute;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    right: 0;
    bottom: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #159594;
    font-weight: 700;
}

.info {
    border-top: #9ba9ad solid 1px;
    padding-top: 20px;
    text-align: left;
    margin: 25px;
}

/* Form */

.form-control:focus {
    border-color: #159594;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(21, 149, 148, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(21, 149, 148, .6);
}

.form-horizontal .form-group {
    margin: 15px 0;
}

.form-group.required .control-label:after {
    color: #d00;
    content: "*";
    margin-left: 2px;
    top: 7px;
}

.radio.required .room-number:before {
    color: #d00;
    content: "*";
}

.panel {
    box-shadow: 0 0 4px rgba(0, 0, 0, .14), 0 4px 8px rgba(0, 0, 0, .28) !important;
}

.panel-default > .panel-heading,
.ui-widget-header {
    font-weight: bold;
    font-size: 16px;
    color: #eee !important;
    background-color: #008998 !important;
    border: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Form Elements */

.glyphicon.glyphicon-minus.close.minimize {
    margin-right: 16px;
}

i.fa.fa-times.close {
    font-size: 34px;
    line-height: 22px;
    color: #fff;
}

.checkbox.checkbox-inline.terms {
    display: block;
    text-align: right;
    padding-bottom: 20px;
    margin-right: 10px;
    float: none;
}

.checkbox-inline {
    float: left;
}

.no-close .ui-dialog-titlebar-close {
    display: none;
}

.no-close button {
    border-radius: 4px;
    background-color: #008998;
    color: #fff;
    padding: 6px 12px;
    text-align: center;
    border: solid #2e6da4 1px;
    box-shadow: none;
}

.format-check {
    float: right;
}

.col-sm-10.check {
    float: right;
    min-height: 41px;
}

label.form-check-label {
    float: right;
}

/* buttons */

.buttons {
    position: relative;
    display: block;
    text-align: right;
    float: right;
    width: 30em;
}

.btn-primary:disabled {
    background-color: #9ba9ad;
    border-color: #6f6f6f;
}

#btn-request {
    margin-right: 10px;
    background-color: #008998;
}

.btn-primary.receipt {
    margin-top: 25px;
}

.btn-primary {
    background-color: #159594;
    border-color: #159594;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited,
.btn-primary:disabled
.open > .dropdown-toggle.btn-primary {
    background-color: #159594
}

#dialog,
#terms {
    display: none;
}

.icon-q {
    height: 1em;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.tip {
    visibility: hidden;
    position: absolute;
    z-index: 200;
    top: -45px;
    left: 8%;
    background: #fff;
    border: solid #ccc 1px;
    padding: 16px;
    box-shadow: 0 0 4px rgba(0, 0, 0, .14), 0 4px 8px rgba(0, 0, 0, .28) !important;
}

.field.tip {
    max-width: 40rem;
    transform: translateY(-100%);
    top: -10px;
    left: 14%;
}

.button.tip {
    text-align: left;
    max-width: 40rem;
    transform: translateY(-100%);
    top: -10px;
    right: 60px;
}

.format.tip {
    max-width: 40rem;
    transform: translateY(-100%);
    top: -10px;
}

.time.tip {
    max-width: 40rem;
    transform: translateY(-100%);
    left: 40%;
}

.qty.tip {
    left: 30%;
    top: -10px;
    transform: translateY(-100%);
}

.form-group.row,
.form-group.required,
.form-group.address {
    position: relative;
}

.checkbox {
    padding-left: 5px;
}

.radio-inline {
    margin-left: 5px;
}

.checkbox.checkbox-inline:hover + .tip,
.control-label:hover + .tip,
.qty:hover + .tip,
.btn.disabled:hover + .tip,
#btn-request:hover + .tip,
input[name*="qty"]:hover + .tip,
input[name*="roomnumber"]:hover + .tip {
    visibility: visible;
    transition-delay: 280ms;
    display: block;
}

.btn-primary.receipt {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

@media screen and (max-width: 755px) {
    .col-sm-10.check {
        float: none;
        min-height: none;
    }

    .quality {
        margin-left: 13px;
    }

    .radio-inline {
        margin-left: 15px;
    }

    label {
        margin-left: 10px;
    }

    .formname {
        text-align: left;
    }
}

.dropdown-menu {
    left: auto;
}

.plus {
    width: 10%;
}

input[name*="qty"] + .tip {
    width: 300%;
}

input[name*="roomnumber"] + .tip {
    width: 500%;
}

.margin-top {
    margin-top: 6px;
}

.flex {
    display: flex;
}

.radio-buttons {
    margin: 5px 0 10px 20px;
}

.room-number {
    padding-left: 5px;
    width: 12%;
    display: flex;
}

.panel-heading {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    margin-left: -1px;
    margin-right: -1px;
}

.ui-widget-header {
    margin: -3px -3px 0 -2px;
}

.roomnumber-margin {
    margin-left: 5px;
    margin-right: -10px;
}

.visuallyhidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 20px 0 0 25px !important;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}
