/* Techsavanna brand — light blue theme for public Website/Web Form pages
   (see totaldms_custom/utils/brand.py). Frappe's website Bootstrap build
   compiles .btn-primary etc. with a literal hex (#171717), not a CSS var,
   so it has to be overridden directly rather than through --primary alone. */

:root {
    --primary: #3A86FF;
    --primary-light: rgba(58, 134, 255, 0.12);
}

.btn-primary {
    color: #fff;
    background-color: #3A86FF;
    border-color: #3A86FF;
}

.btn-primary:hover {
    color: #fff;
    background-color: #1D4ED8;
    border-color: #1D4ED8;
}

.btn-primary:focus,
.btn-primary.focus {
    color: #fff;
    background-color: #1D4ED8;
    border-color: #1D4ED8;
    box-shadow: 0 0 0 0.2rem rgba(58, 134, 255, 0.5);
}

.btn-outline-primary {
    color: #1D4ED8;
    border-color: #1D4ED8;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #1D4ED8;
    border-color: #1D4ED8;
}

a:not(.btn) {
    color: #1D4ED8;
}

a:not(.btn):hover {
    color: #1E3A8A;
}

.form-control:focus {
    border-color: #3A86FF;
    box-shadow: 0 0 0 0.2rem rgba(58, 134, 255, 0.25);
}

.navbar-brand img {
    max-height: 40px;
}

/* Web Form banner (see web_form.html's {% block header %}): no dimensions
   are ever set on this <img>, so a raster source gets stretched to the
   full-width strip and turns blurry. Constrain it and keep the source an
   SVG (crisp at any size) instead. */
.web-form-banner-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background-color: #F5FAFF;
    padding: 32px 0;
    box-sizing: border-box;
}
