/*
 * InstantSSL theme (instantssl.it), loaded after style.css only for the "is" origin.
 * Palette and menu rules mirror the site's own style.css: green #01b373, navy #051c2c, grey #ecebea.
 */

body.site-is {
    --primary-color: #01b373;
    --primary-hover-color: #019a63;
    --primary-active-color: #017f52;
    --is-navy: #051c2c;
    --is-grey: #ecebea;
    background: #fff;
    color: var(--is-navy);
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Lato, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-weight: 300;
}

:where(body.site-is) a {
    color: #239b56;
}

:where(body.site-is) a:hover {
    color: #2ab063;
}

body.site-is .form-label,
body.site-is .form-control,
body.site-is .form-select {
    color: var(--is-navy);
}

body.site-is .form-control:focus,
body.site-is .form-select:focus,
body.site-is .btn-check:focus + .btn {
    box-shadow: 0 0 0 0.2rem rgba(1, 179, 115, 0.2);
}

body.site-is .btn-primary,
body.site-is .btn-outline-primary {
    --bs-btn-focus-shadow-rgb: 1, 179, 115;
}

body.site-is .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(1, 179, 115, 0.3);
}

body.site-is .card {
    border: 1px solid #e4e8eb;
    box-shadow: 0 2px 12px 0 rgba(158, 164, 168, 0.55);
}

/* Main banner of the form */
body.site-is .card-header.bg-primary {
    background: linear-gradient(to right, rgba(5, 28, 44, 1), rgba(5, 28, 44, 0.85)) !important;
    border-bottom: 4px solid #01b373;
    color: #fff;
}

body.site-is .card-header h1 {
    font-weight: 700;
}

body.site-is .card-header .small {
    font-size: 1rem;
    font-weight: 300;
}

/* Top bar: white, logo on the left, contacts on the right */
.site-header-is {
    margin-bottom: 1px;
    padding: 12px 0;
    background: #fff;
    box-shadow: 0 2px 12px 0 #9ea4a8;
    font-family: inherit;
    position: relative;
    z-index: 500;
}

.site-header-is .logo-img {
    width: 200px;
    height: auto;
}

.site-header-is .site-header-contact {
    font-size: 15px;
    line-height: 24px;
}

.site-header-is .site-header-contact a {
    display: inline-block;
    margin-left: 18px;
    color: var(--is-navy, #051c2c);
    font-weight: 300;
    text-decoration: none;
}

.site-header-is .site-header-contact a strong {
    font-weight: 700;
}

.site-header-is .site-header-contact a span {
    color: inherit;
    font-weight: 300;
}

.site-header-is .site-header-contact a:hover,
.site-header-is .site-header-contact a:hover span {
    color: #01b373;
}

/* Menu cloned from instantssl.it (#submenu), scoped so Bootstrap 5 rules don't leak in */
.site-menu-is {
    background: #ecebea;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.site-menu-is *,
.site-menu-is *::before,
.site-menu-is *::after {
    box-sizing: border-box;
}

.site-menu-is nav {
    display: block;
    padding: 0;
    background: #ecebea;
}

.site-menu-is .container {
    display: block;
}

.site-menu-is ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu-is ul.navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.site-menu-is li {
    position: relative;
    list-style: none;
}

.site-menu-is a {
    display: block;
    color: #000;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-menu-is ul.navbar-nav > li > a {
    padding: 15px 10px;
    font-weight: 600;
    line-height: 20px;
}

.site-menu-is ul.navbar-nav > li:hover {
    box-shadow: inset 0 -3px 0 0 #01b373;
}

.site-menu-is .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 250px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0;
    background: #ecebea;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.site-menu-is #first-dropdown {
    width: 351px;
}

.site-menu-is li.dropdown:hover > .dropdown-menu,
.site-menu-is li.dropdown:focus-within > .dropdown-menu {
    display: block;
}

.site-menu-is .dropdown-menu > li {
    padding: 5px 0;
    border-bottom: 1px solid #000;
}

.site-menu-is .dropdown-menu > li > a {
    padding: 3px 20px;
    font-weight: 400;
    line-height: 1.43;
}

.site-menu-is .dropdown-menu > li:hover,
.site-menu-is .dropdown-menu > li:hover > a,
.site-menu-is .dropdown-menu > li > a:focus {
    background: #01b373;
    color: #fff;
}

/* Touch devices have no hover: show only the top level entries */
@media (max-width: 767px) {
    .site-header-is .site-header-contact a {
        margin: 0 9px;
    }

    .site-menu-is .dropdown-menu {
        display: none !important;
    }

    .site-menu-is ul.navbar-nav {
        justify-content: center;
    }
}
