/**
 * Custom styles for the PHD Ticket external form.
 */

/* Ticket Form */
/* General Formatting */
#ticket-instructions {
    font-size: 16px;
}

#ticket-instructions .asterisk {
    color: #EE0000;
    font-size: 20px;
    top: 4px;
    position: relative;
    line-height: .5;
}

#ticket-information,
#submitter-information {
    margin-bottom: 45px;
}

#submitter-information .submitter-field {
    margin-bottom: 15px;
}

#submitter-information {
    padding-right: 0;
    padding-left: 0;
}

.form-inline.form-type-tel .control-label,
.form-inline.form-type-date .control-label,
.form-inline.form-type-tel .form-control,
.form-inline.form-type-date .form-control {
    display: block;
}

.form-inline.form-type-tel .control-label,
.form-inline.form-type-date .control-label {
    margin-bottom: 5px;
}

.form-inline.form-type-tel .form-control,
.form-inline.form-type-date .form-control {
    width: 100%;
}

#disclaimer {
    padding-left: 15px;
    clear: both;
}

.help-block {
    font-size: 12px;
    margin: 5px 0 10px;
    padding: 0;
}

.icon-before .glyphicon {
    margin-left: -.25em;
    margin-right: .25em;
}

.btn .ajax-throbber {
    margin-left: .5em;
    margin-right: -.25em;
}

.glyphicon-spin {
    -webkit-animation: glyphicon-spin 1s infinite linear;
    -o-animation: glyphicon-spin 1s infinite linear;
    animation: glyphicon-spin 1s infinite linear;
    display: inline-block;
}

@-webkit-keyframes glyphicon-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes glyphicon-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

.popover-content {
    color: #777;
    font-size: 12px;
}

.captcha {
    clear: both;
}

body.path-node .region-info .alert-success .item-list--messages {
    list-style: none;
    padding-left: 0;
}

body.path-node .region-info .alert-success .item-list--messages .item--message:nth-of-type(2) {
    display: none;
}

/* Application Select */
@media (min-width: 992px) {
    #ticket-information #edit-field-application-wrapper .select-wrapper {
        width: 50%;
        margin-right: 0;
        padding-left: 15px;
        padding-right: 0;
    }

    #ticket-information #edit-field-application-wrapper .select-wrapper:nth-of-type(1) {
        padding-left: 0;
        padding-right: 15px;
    }

    #ticket-information #edit-field-application-wrapper .select-wrapper:nth-of-type(3) {
        margin-top: 15px;
        margin-left: 50%;
    }
}

@media (max-width: 991px) {
    #ticket-information #edit-field-application-wrapper .select-wrapper {
        width: 100%;
        margin-top: 15px;
    }

    #ticket-information #edit-field-application-wrapper .select-wrapper:nth-of-type(1) {
        margin-top: 0;
    }
}

#edit-field-application-wrapper .control-label {
    display: none;
}

#ticket-information #edit-field-application-wrapper .select-wrapper label:after,
#node-ticket-application-form .field--name-field-company label.control-label:after,
.form-required:after {
    background-image: url(/themes/custom/bootstrap_phd/images/required.svg);
    -webkit-background-size: 10px;
    background-size: 10px;
    content: "";
    display: inline-block;
    vertical-align: initial;
    line-height: 1;
    height: 10px;
    width: 10px;
    margin-left: 2px;
}

.select-wrapper select {
    width: 100%;
    padding: 6px 12px;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-appearance: menulist-button;
    -moz-appearance: menulist-button;
    appearance: menulist-button;
}

#edit-field-application-wrapper .select-wrapper:after {
    content: none;
}

#edit-field-application-wrapper .select-wrapper {
    margin-right: auto;
}

/* File Attachments */
.field--type-file .alert-dismissible {
    display:  none;
}

.field--type-file thead {
    display: none;
}

.field--type-file button.tabledrag-toggle-weight {
    display: none;
}

.field--type-file .tabledrag-handle {
    display: none;
}

.field--type-file .panel>.panel-collapse>.table {
    margin-bottom: 15px;
}

.field--type-file table tr>td:first-child {
    border-right: none;
}

.field--type-file table tr>td:last-child {
    text-align: center;
    vertical-align: middle;
    border-left: none;
}

.table-striped>tbody>tr:nth-of-type(even) {
    background-color: #ffffff;
}

.js-form-type-managed-file button.js-hide:disabled {
    display: block;
    margin-top: 5px;
}

/* Custom Fields */
.field-multiple-table thead {
    color: #333;
    background-color: #eee;
}

.field-multiple-table h4.label {
    padding: 0;
    font-size: initial;
    font-weight: normal;
    color: initial;
}

button.tabledrag-toggle-weight,
.field-multiple-table th:not(.field-label),
.field-multiple-table .field-multiple-drag {
    display: none;
}
