﻿html, body, p {
    font-family: Sans-Serif;
}

input {
    -webkit-writing-mode: horizontal-tb !important;
    text-rendering: auto;
    color: -internal-light-dark(black, white);
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    text-align: start;
    appearance: auto;
    background-color: -internal-light-dark(rgb(255, 255, 255), rgb(59, 59, 59));
    -webkit-rtl-ordering: logical;
    cursor: text;
    margin: 0em;
    font: 400 13.3333px Arial;
    padding: 1px 2px;
    border-width: 2px;
    border-style: inset;
    border-color: -internal-light-dark(rgb(118, 118, 118), rgb(133, 133, 133));
    border-image: initial;
}

input[type="text" i] {
    padding: 1px 2px;
}

input[type=text], form textarea {
    width: 97%;
    background-color: #fff;
    border: none;
    box-shadow: 0 0 3px #cbcbcb;
    margin-top: 7px;
    margin-bottom: 7px;
    padding-top: 13px;
    padding-bottom: 13px;
    padding-left: 3%;
    font-style: italic;
    font-size: 16px;
    color: #9b9c9e;
}

.block form, .block p {
    padding: 0px 0px;
}

form {
    margin-top: 0px;
    margin-bottom: 0px;
}

h2 {
    font-size: 120%;
    text-transform: none;
    font-weight: 400;
    text-align: left;
    padding-bottom: 20px;
    padding-top: 15px;
}

input[type=submit] {
    display: block;
    margin: auto;
    margin-bottom: 7px;
    width: 96%;
    max-width: 275px;
    padding: 16px;
    padding-left: 4%;
    padding-right: 4%;
    background-color: #12a7df;
    cursor: pointer;
    color: white;
    border: none;
    font-weight: 700;
    font-size: 14px;
}

.selectItem {
    width: 97%;
    background-color: #FFF;
    border: none;
    box-shadow: 0 0 3px #cbcbcb;
    margin-top: 7px;
    margin-bottom: 7px;
    padding-top: 13px;
    padding-bottom: 13px;
    padding-left: 3%;
    font-style: italic;
    font-size: 16px;
    color: #9b9c9e;
}

select:required {
    border-right: 5px solid red;
}

select:valid {
    border-right: 5px solid green;
}

/* ============================================================
   GridEx download-form card
   The form can be embedded in pages with either a light or dark
   theme. Rather than depend on the embedding page's own CSS (no
   GridEx WordPress theme stylesheet exists), this card is fully
   self-contained: an explicit white surface with dark text and
   normalized field sizing, so it always renders the same way
   regardless of what surrounds it.
   ============================================================ */
#whitepaper-download {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    padding: 24px;
    box-sizing: border-box;
    max-width: 480px;
    margin: 0 auto;
}

#whitepaper-download h2,
#whitepaper-download h3,
#whitepaper-download p,
#whitepaper-download label,
#whitepaper-download li,
#whitepaper-download span {
    color: #1a1a1a !important;
}

/* Text inputs and selects rendered at identical size */
#whitepaper-download input[type=text],
#whitepaper-download select.selectItem {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 48px !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #d5d5d5 !important;
    box-shadow: none !important;
    border-radius: 4px;
    margin-top: 7px !important;
    margin-bottom: 10px !important;
    padding: 0 12px !important;
    font-style: normal !important;
    font-size: 16px !important;
    line-height: 46px !important;
}

#whitepaper-download select.selectItem {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 36px !important;
}

#whitepaper-download select:required {
    border-right: 3px solid #e05d44 !important;
}

#whitepaper-download select:valid {
    border-right: 1px solid #d5d5d5 !important;
}

#whitepaper-download input[type=submit],
#whitepaper-download .whitepaper-submit {
    display: block;
    margin: 16px auto 0;
    width: 100%;
    max-width: 275px;
    padding: 14px;
    background-color: #12a7df;
    cursor: pointer;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

#whitepaper-download a.button {
    color: #ffffff !important;
}


