/**
 * Public-facing styles for MGF OSM Connector waiting list forms & reports.
 * Ported from the original GilbertWeb Connector public stylesheet.
 */

span.required-field {
    color: #ff0000;
    padding: 5px;
}

label.error {
    color: #ff0000;
    padding-top: 5px;
}

#nw_successMessage.gilbertwebSuccess,
#nw_errorMessage.gilbertwebWarning {
    display: none;
}

#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    cursor: pointer;
    min-width: 100%;
}

.loader {
    display: none;
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px !important;
    height: 120px !important;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 50%;
    right: 50%;
    left: 50%;
    bottom: 50%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#waitingList input[type="text"],
#waitingList input[type="password"],
#waitingList input[type="date"],
#waitingList input[type="email"],
#waitingList input[type="tel"],
#waitingList input[type="search"],
#waitingList input[type="url"],
#waitingList textarea {
    -webkit-appearance: none;
    background-color: #fff;
    border: none;
    box-shadow: 0px 1px 0px rgb(0 0 0 / 3%), inset 1px 1px 4px 1px rgb(0 0 0 / 20%);
    color: rgba(0, 0, 0, 0.75);
    display: block;
    font-size: 16px;
    padding: 8px;
    width: 100%;
    border-radius: 3px;
}

#waitingList [type="checkbox"],
#waitingList [type="radio"] {
    box-sizing: border-box;
    padding: 0;
    display: inline-block !important;
    width: 5% !important;
    vertical-align: middle;
}

span#waitingList-search-addon {
    padding: 10px;
}

.mgf-osm-error {
    color: #b32d2e;
    font-weight: 600;
}

.mgf-osm-offline-message {
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 12px 16px;
    margin: 16px 0;
}
