@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --border-radius: 4px;
    --button-background-color: #0073aa;

    --error-background-color: rgba(255,0,0,0.6);
    --error-border-color: #900;
    --error-text-color: white;

    --success-background-color: #e8ffe8;
    --success-border-color: #090;
    --success-text-color: #060;
}

/* Register */
.dhreg-wrap {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    transition: all .3s ease;
    padding: 0 20px;
    gap: 30px;
    /* font-size: 16px;
    line-height: 19px; */
    font-family: "Monterrat", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    letter-spacing: 1px;
}
@media screen and (max-width: 768px) {
    .dhreg-wrap {
        flex-flow: column wrap;
    }
}
.dhreg-wrap h1, .dhreg-wrap h2, .dhreg-wrap h3, .dhreg-wrap h4, .dhreg-wrap h5, .dhreg-wrap h6 {
    color: inherit;
    color: var(--wp-preset-color-contrast-2);
    font-family: inherit;
    font-weight: 200;
}
.dhreg-wrap h1 small, .dhreg-wrap h2 small, .dhreg-wrap h3 small, .dhreg-wrap h4 small, .dhreg-wrap h5 small, .dhreg-wrap h6 small {
    font-weight: 100;
    color: inherit;
    opacity: 0.7;
}
.dhreg-wrap * {
    box-sizing: border-box;
}
.dhreg-wrap p {
    font-weight: 300;
    padding-bottom: 2px;
}
.dhreg-wrap form p {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
}
.dhreg-wrap p br {
    display: none !important;
}
.dhreg-lookup,
.dhreg-results {
    box-sizing: border-box;
    margin: 0 0 1em 0;
    /* overflow: hidden; */
    transition: all .3s ease;
    position: relative;
}
.dhreg-lookup {
    /* flex-basis: 32.220%; */
    flex-basis: calc(40% - 30px);;
}
.dhreg-results:empty {
    flex-basis: 0%;
}
.dhreg-results {
    /* flex-basis: 66.108%; */
    flex-basis: 60%;
}
.dhreg-lookup:has(+.dhreg-results:empty) {
    flex-basis: 100%;
}
.dhreg-error {
    padding: .5em 1em 1em 1em;
    border: 1px solid var(--error-border-color);
    background: var(--error-background-color);
    color: var(--error-text-color);
    border-radius: var(--border-radius);
}
p.dhreg-error {
    padding-bottom: 1em;
}
.dhreg-error a {
    color: var(--error-text-color);
}
.dhreg-success {
    padding: .5em 1em .5em 1em;
    border: 1px solid var(--success-border-color);
    color: var(--success-text-color);
    background-color: var(--success-background-color);
    border-radius: var(--border-radius);
}
.dhreg-warning {
    padding: .5em 1em;
    border: 1px solid #009;
    color: #009;
    background-color: #d3d7ff;
}
.dhreg-notice {
    padding: .5em 1em;
    border: 1px solid #990;
    color: #440;
    background-color: #fcfcd1;
}
table.dhreg-summary {
    border-collapse: collapse;
}
table.dhreg-summary th,
table.dhreg-summary td {
    padding: .25em 2em .25em 0;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

/* Form Elements */
.dhreg-wrap input[type="text"],
.dhreg-wrap input[type="email"],
.dhreg-wrap input[type="url"],
.dhreg-wrap input[type="tel"],
.dhreg-wrap input[type="number"],
.dhreg-wrap input[type="password"],
.dhreg-wrap input[type="file"],
.dhreg-wrap .dhreg-results input[type="date"],
.dhreg-wrap input {
    width: 100%;
    /* padding: .8em 1em; */
    padding: 8px 16px;
    margin: 0 0 4px 0;
    box-sizing: border-box;
    max-width: min(90%, 300px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.5);
    box-sizing: border-box;
    font-size: inherit;
    transition: all .1s ease;
    background: white; 
    color: black;
}
.dhreg-wrap .dhreg-results input[type="date"] {
    max-width: max(240px, 50%);
}
.dhreg-wrap input[type="text"]:focus,
.dhreg-wrap input[type="email"]:focus,
.dhreg-wrap input[type="url"]:focus,
.dhreg-wrap input[type="tel"]:focus,
.dhreg-wrap input[type="number"]:focus,
.dhreg-wrap input[type="password"]:focus,
.dhclaim-wrap input[type="file"]:focus,
.dhreg-wrap input:focus {
    outline: 1px solid var(--button-background-color);
    transform: scale(1.03);
    left: 10px;
    box-shadow: 0 0 12px 0 rgba(0,0,0,0.15);
}
.dhreg-wrap .dhreg-results input[type="text"],
.dhreg-wrap .dhreg-results input[type="email"],
.dhreg-wrap .dhreg-results input[type="url"],
.dhreg-wrap .dhreg-results input[type="tel"],
.dhreg-wrap .dhreg-results input[type="number"],
.dhreg-wrap .dhreg-results input[type="password"],
.dhreg-wrap .dhreg-results input {
    max-width: max(80%, 300px);
}
.dhreg-wrap select {
    width: 100%;
    /* padding: .8em 1em; */
    padding: 8px 16px;
    margin: 0 0 1em 0;
    box-sizing: border-box;
    max-width: min(90%, 300px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.5);
    box-sizing: border-box;
    max-width: max(240px, 50%);
    font-size: 1rem;
}
.dhreg-wrap select:focus {
    outline: 1px solid var(--button-background-color);
    transform: scale(1.03);
    left: 10px;
    box-shadow: 0 0 12px 0 rgba(0,0,0,0.15);
}
.dhreg-wrap .dhreg-results input#api_owner_state,
.dhreg-wrap .dhreg-results input#api_owner_postal_code,
.dhreg-wrap .dhreg-results input#api_product_model_year{
    max-width: max(240px, 50%);
    padding: 8px 16px;
}
.dhreg-wrap button[type="submit"] {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    background: var(--button-background-color);
    color: #fff;
    outline: 1px solid #0000;
    text-decoration: none;
    text-shadow: none;
    white-space: nowrap;
    align-items: center;
    border: 0;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    cursor: pointer;
    /* display: inline-flex; */
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    /* height: 36px; */
    margin: 0;
    padding: 12px 34px !important;
    text-decoration: none;
    transition: box-shadow .1s linear, background-color .1s linear, color .1s linear;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dhreg-wrap button[type="submit"]:hover:not(:disabled) {
    background: #005177;
}
.dhreg-wrap label {
    display: inline-block;
    width: 100%;
    padding-bottom: 2px;
    font-size: .9rem;
    color: inherit;
    color: var(--wp--preset--color--contrast);
    opacity: 0.8;
}
.dhreg-wrap textarea {
    background: white;
    border: 1px solid rgba(0,0,0,0.5);
    width: 100%;
    max-width: max(80%, 300px);;
    min-width: 240px;
    min-height: 6em;
}
.dhreg-wrap textarea:focus {
    outline: 1px solid var(--button-background-color);
    transform: scale(1.03);
    left: 10px;
    box-shadow: 0 0 12px 0 rgba(0,0,0,0.15);
}