/* ******** LAST UPDATED: 4-16-2026 ******** */
/* ************** internal CSS from the Digital Badge lead form ************** */
body {
    margin: 0;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    background-color: #202635; /* Note: For LABS this is background-color: #e0f1f4; */
}

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

.apa-header img {
    height: 36px; /* Note: For LABS this is 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: 20px 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;
}

/* ********************** Speaker Preference Section ********************** */

.speaker-pill {
    border: 1px solid #d0d7d0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-align: left;
  }
  
  /* Hover */
  .speaker-pill:hover {
    border-color: #7aa87a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  
  /* Keyboard focus (WCAG 2.2 AA) */
  .btn-check:focus + .speaker-pill {
    outline: 3px solid #1f7a1f;
    outline-offset: 2px;
  }
  
  /* Checked state */
  .btn-check:checked + .speaker-pill {
    background: #e6f4e6;
    border-color: #1f7a1f;
  }
  
  /* Avatar */
  .speaker-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  /* Prevent overflow in flex layout */
  .speaker-text {
    min-width: 0;
  }
  
  /* Name */
  .speaker-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2d1f;
    line-height: 1.2;
  
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Topics */
  .speaker-topics {
    font-size: 0.75rem;
    color: #4f6b4f;
  
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

/* ********************** Workplacewellbeing Footer ********************** */

.apa-footer-workplacewellbeing {
    background-color: #1e2530;
    color: #ffffff;
    font-size: 16px;

    /* Keep vertical spacing here */
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Border now matches container width */
.apa-footer-inner {
    border-top: 2px solid #ffffff;
    padding-top: 40px;
}

/* Image */
.apa-footer-workplacewellbeing img {
    max-width: 300px;
    height: auto;
    margin-bottom: 12px;
}

/* Links */
.apa-footer-workplacewellbeing a {
    color: #ffffff;
    text-decoration: underline;
}

.apa-footer-workplacewellbeing a:hover,
.apa-footer-workplacewellbeing a:focus {
    text-decoration: none;
}

/* WCAG 2.2 AA focus visibility */
.apa-footer-workplacewellbeing a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

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

.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 {
    color: #202635;
    font-size: 33px;
}

h1.white {
    color: #FFFFFF;
    font-size: 48px;
    line-height: 1.2;
}

.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 */
#ReviewLead\:submissionForm\:shortDescription-error, #ReviewLead\:submissionForm\:professionalSummary-error, #productDescription-error, #requestDescription-error, #goals-error {
    margin-bottom: 20px;
}

/* ALERT CHECKBOX validation messsage spacing */
#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;
}