/* ******** LAST UPDATED: 10-9-2025 ******** */
/* ************** internal CSS from the Digital Badge lead form ************** */
body {
    margin: 0;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    background-color: #e0f1f4;
}

.apa-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #d9edf2;
    padding: 20px 40px;
    display: block;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #054345;
}

.apa-header img {
    height: 42px;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: #003A70;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

.nav a:hover {
    text-decoration: underline;
}

.cta-button {
    background-color: #004b4f;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: bold;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #003b3f;
}

.form-container {
    max-width: 700px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h2 {
    text-align: left;
    color: #202635;
    margin-bottom: 0px;
    font-size: 22px;
}

fieldset {
    border: none;
    margin-bottom: 30px;
    margin-left: 0px;
    padding-left: 0px;
}

legend {
    font-size: 18px;
    font-weight: bold;
    color: #007681;
    margin-bottom: 10px;
    padding-left: 0px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #202635;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #202635;
    border-radius: 0px;
    font-size: 14px;
    border-top: none;
    border-left: none;
    border-right: none;
}

textarea {
    resize: vertical;
}

.hidden {
    display: none;
}

button {
    background-color: #003A70;
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background-color: #002952;
}

.apa-footer {
    background-color: #1e2530;
    color: #fff;
    padding: 40px 60px;
    font-size: 14px;
}

.apa-footer .footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px solid #444;
    padding-top: 30px;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.apa-footer .footer-top h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.apa-footer .footer-top a {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
}

.apa-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-col {
    flex: 1 1 300px;
    min-width: 280px;
}

.footer-col img {
    height: 36px;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.footer-col address {
    font-style: normal;
    line-height: 1.6;
}

.footer-col a.email {
    color: #fff;
    text-decoration: underline;
}

/* ********************** */

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top: 6px solid #003A70;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-msg {
    color: red;
    font-size: 13px;
    margin-top: -12px;
    margin-bottom: 12px;
    display: none;
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-modal-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.custom-modal-content h2 {
    margin-top: 0;
    color: #003A70;
}

.custom-modal-content button {
    background-color: #003A70;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.hidden {
    display: none;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row .form-group {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .form-row .form-group {
        flex: 1 1 100%;
    }
}

.form-row .customwidth {
    width: 94%;
}

.apex-select-list {
    width: 104% !important;
}

.apex-select-list select {
    width: 104% !important;
    box-sizing: border-box;
}

.address_style {
    float: right;
    padding-right: 24%;
}

@media (max-width: 786px) {
    .address_style {
        float: left;
    }

    .form-row .customwidth {
        width: 100%;
    }

    .apex-select-list {
        width: 106% !important;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    /* distributes the columns */
    align-items: flex-start;
    flex-wrap: wrap;
    /* responsive fallback */
    gap: 30px;
}

/* ************** ADDITIONAL CSS ************** */
/* additional formatting styles */
h1 {
    font-size: 33px;
}

.intro {
    font-size: 20px;
    line-height: 24px;
    margin-top: 15px;
}

legend>h2 {
    font-size: 18px;
    font-weight: bold;
    color: #007681;
    margin-bottom: 10px;
    padding-left: 0px;
}

/* to style a legend of a fieldset nested within a fieldset - do only 1 level */
.form-group legend {
    color: #212529;
}

/* styles to make sticky footer always on bottom */
body {
    display: flex;
    height: 100vh;
    flex-direction: column;
}

#mainBodyContainer {
    flex: 1 0 auto;
}

/* using SVG for external link icon, for any target="_blank" anchors - modified from https://codepen.io/fathy_ar/pen/WNvZjgK */
a[target="_blank"]::after {
    content: '';
    -webkit-mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 1536 1536' xmlns='http://www.w3.org/2000/svg'><path d='M1408 928v320c0 159-129 288-288 288H288c-159 0-288-129-288-288V416c0-159 129-288 288-288h704c18 0 32 14 32 32v64c0 18-14 32-32 32H288c-88 0-160 72-160 160v832c0 88 72 160 160 160h832c88 0 160-72 160-160V928c0-18 14-32 32-32h64c18 0 32 14 32 32zm384-864v512c0 35-29 64-64 64-17 0-33-7-45-19l-176-176-652 652c-6 6-15 10-23 10s-17-4-23-10L695 983c-6-6-10-15-10-23s4-17 10-23l652-652-176-176c-12-12-19-28-19-45 0-35 29-64 64-64h512c35 0 64 29 64 64z'/></svg>");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 1em 0.75em;
    -webkit-mask-position: center;
    mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 1536 1536' xmlns='http://www.w3.org/2000/svg'><path d='M1408 928v320c0 159-129 288-288 288H288c-159 0-288-129-288-288V416c0-159 129-288 288-288h704c18 0 32 14 32 32v64c0 18-14 32-32 32H288c-88 0-160 72-160 160v832c0 88 72 160 160 160h832c88 0 160-72 160-160V928c0-18 14-32 32-32h64c18 0 32 14 32 32zm384-864v512c0 35-29 64-64 64-17 0-33-7-45-19l-176-176-652 652c-6 6-15 10-23 10s-17-4-23-10L695 983c-6-6-10-15-10-23s4-17 10-23l652-652-176-176c-12-12-19-28-19-45 0-35 29-64 64-64h512c35 0 64 29 64 64z'/></svg>");
    mask-repeat: no-repeat;
    mask-size: 1em 0.75em;
    mask-position: center;
    display: inline-block;
    background-color: currentcolor;
    position: relative;
    /* top: 0.2em; */
    width: 1em;
    height: 1em;
    left: 0.1em;
    /* added this so icon is not totally against the link on display */
}

/* alternate background styling with green right corner stripes - just add a class of .rightCornerStripes to the #mainBodyContainer div */
#mainBodyContainer.rightCornerStripes {
    flex: 1 0 auto;
    background-image: url("../../assets/img/Pattern2-DKTeal.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* additional CSS that may be needed for autogrow on textarea for floating form fields */
.form-floating>.form-control:not(textarea) {
    height: calc(3.5rem + 2px);
    /* Default Bootstrap height for inputs */
}

.form-floating>textarea.form-control {
    min-height: calc(3.5rem + 2px);
    /* Set a minimum height for textarea */
    height: auto;
    /* Allow auto-growing */
}

/* ****** jQuery Validate + BS5 validation specific styles ****** */
/* styles for validation error spacing */
.invalid-feedback {
    margin-top: -15px;
}

/* CHECKBOX groups validation message spacing */
#expertiseArea-error, #interestArea-error, #productType-error, #targetAudience-error, #expertiseNeeded-error {
    margin-bottom: 20px;
}

/* TEXTAREA validation message spacing - note having to escape the SF-generated colons in the CSS */
#LabsExpertSignup\:expertSignUpForm\:shortDescription-error, #LabsExpertSignup\:expertSignUpForm\:professionalSummary-error, #productDescription-error, #requestDescription-error, #goals-error {
    margin-bottom: 20px;
}

/* ALERT CHECKBOX validation messsage spacing */
#LabsExpertSignup\:expertSignUpForm\:privacyPolicyCheckbox-error {
    margin-top: 5px;
}

/* overriding the default Bootstrap CSS to prevent the checkmark from appearing on optional fields even when they are valid (i.e., have a value) */
.form-control.is-valid:not([required]) {
    background-image: none !important;
}