.checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-family: sans-serif;
  font-size: 16px;
}

.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}
.checkbox-box {
    position: relative;
    width: 32px;
    height: 32px;
    border: 2px solid #888;
    border-radius: 4px;
    margin-right: 8px;
    transition: border-color 0.2s, background-color 0.2s;
    flex-shrink: 0;
}

.checkbox-box::after {
    content: '';
    position: absolute;
    /* put tick's reference point at center of box */
    top: 50%;
    left: 50%;
    /* tick dimensions */
    width: 16px;
    height: 24px;
    border: solid white;
    border-width: 0 4px 4px 0;
    /* first move it back by half its own size, then rotate & hide */
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.2s ease-in-out;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-box {
    background-color: #28a745;
    border-color: #28a745;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-box::after {
    /* same translate+rotate, but now fully visible */
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

/* focus styles, etc. unchanged */
.char-limit {
    position: relative;
    display: inline-block; /* or block, whatever fits your layout */
}

.char-limit span.char-counter {
    position: absolute;
    bottom: -24px;
    right: 8px;
    font-size: 0.8em;
    color: #555;
    pointer-events: none;
}

.char-limit.tick span.char-counter {
    right: 18px;
}

.char-limit span.char-counter.over {
    color: #e00; /* red when over limit */
}

.explainer {
    margin-bottom: 1em;
    position: relative;
}

.explanation {
    display: none;
    margin-top: 0.5em;
    padding: 0.5em;
    border-left: 3px solid #888;
    background: #f9f9f9;
}

.explainer.open .explanation {
    display: block;
}
.hero-banner-2 .text_block {
    padding: 240px 0 50px;
}

@media (max-width: 1399px) {
    .hero-banner-2 .text_block {
        padding: 240px 0 25px;
    }
}

@media (max-width: 1199px) {
    .hero-banner-2 .text_block {
        padding: 150px 0 0;
    }
}
/*.image-question .marker {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,0,0,0.6);
    border: 0px solid white;
    pointer-events: none;
    display: none;
}*/
/*FROM OVERLAY*/
#form-section {
    position: relative; /* make it the positioning context */
}

#form-section #form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253,0.25);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
    z-index: 1000;
    box-sizing: border-box;
}

#form-section #form-overlay .overlay-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 40vw;
    width: 90%;
    text-align: left;
}
#form-section #form-overlay .overlay-content .inputs {
    text-align: center;
        max-width: 95vw;
}

@media (max-width: 1199px) {
    #form-section #form-overlay .overlay-content {
        max-width: 90vw;
    }
}

.team-photo {
    max-width: 100%;
    height: auto; /* Maintain natural height */
    max-height: 340px; /* Limit height if needed */
    object-fit: contain; /* Keep full image visible */
    aspect-ratio: auto; /* Let browser calculate */
}
.label-with-buttons {
    display: flex;
    flex-wrap: wrap; /* allow wrapping on smaller screens */
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-custom {
    background-color: #007bff;
    color: #fff;
    border-radius: 2rem;
    padding: 0.25rem 1rem;
    font-weight: 500;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
    font-size: 0.875rem;
}

.btn-custom:hover {
    background-color: #0056b3;
}

.question-wrapper {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.03);
}

.question-wrapper h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #343a40;
    flex: 0 1 auto;
}

.question-wrapper h3 {
    flex: 0 0 auto;
}
/* or simply remove the flex rule */
@media (min-width: 576px) {
    .question-wrapper h3 {
        flex: 0 0 auto;
    }
}

.char-limit textarea {
    width: 100%;
    resize: vertical;
}

.char-counter {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* --- Mobile-specific styles --- */
@media (max-width: 576px) {
    .label-with-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-group {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-custom {
        width: 100%;
        text-align: center;
    }

    .question-wrapper {
        padding: 1rem;
    }

    .question-wrapper h3 {
        font-size: 1.1rem;
    }
}
@media (min-width: 577px) {
    .audio-button.button-group {
        width: auto; /* let them size naturally */
        justify-content: flex-start; /* or any desktop alignment */
    }

    .audio-button.btn-custom,
    .audio-button .btn {
        width: auto;
        text-align: left; /* adjust text alignment as needed */
    }
}
/* Default desktop styles */
.button-group {
    display: flex;
    flex-wrap: nowrap; /* no wrapping on desktop */
    gap: 0.5rem;
}

/* Allow wrapping only on small screens */
@media (max-width: 576px) {
    .button-group {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
    }

    .btn-custom {
        width: 100%; /* stack full width on mobile */
        text-align: center;
    }
}


/* Full-screen overlay */
#choice-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  display: none;               /* .open toggles this */
  align-items: flex-start;      /* top by default (desktop) */
  justify-content: center;
  padding-top: 3rem;
  z-index: 10000;
  box-sizing: border-box;
}

/* The dialog box */
#choice-modal .box {
  background: #fff;
  border-radius: 12px;
  width: min(560px, 92vw);      /* desktop/tablet */
  max-height: 90vh;             /* if content is tall, scroll inside */
  overflow: auto;
  padding: 20px 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

/* Mobile tweaks: center the box & use 90% viewport width */
@media (max-width: 576px) {
  #choice-modal {
    align-items: center;               /* vertically center on mobile */
    padding-top: env(safe-area-inset-top, 1rem);
    padding-bottom: env(safe-area-inset-bottom, 1rem);
  }
  #choice-modal .box {
    width: 90vw;                       /* your 90% width requirement */
    max-height: 86vh;                  /* leave a bit of breathing room */
  }
}

/* Show when open */
#choice-modal.open { display: flex; }

#choice-modal .actions { display:flex; gap:10px; margin-top: 14px; flex-wrap:wrap; }
.btn.primary { background:#0d6efd; color:#fff; border:0; border-radius:8px; padding:10px 14px; }
.btn.ghost   { background:#eef3ff; color:#0d6efd; border:0; border-radius:8px; padding:10px 14px; }
.btn.link    { background:transparent; color:#555; border:0; padding:8px 10px; }
.email-line { margin-top:10px; display:flex; gap:8px; align-items:center; }
.email-input { display:none; margin-top:6px; }
.email-input input { width:100%; padding:9px; border:1px solid #ccc; border-radius:6px; }

/* Accesability */
@media (prefers-reduced-motion: reduce) {
    .educate-tilt {
        transform: none !important;
        transition: none !important;
    }
}
:focus-visible {
    outline: 3px solid #000; /* example */
    outline-offset: 2px;
}
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 1000;
    background: #fff;
    padding: .5rem .75rem;
    border: 2px solid currentColor;
}
.home-page-about-us h2
{
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.32px;
}
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.body-content a {
    color: #0d6efd;
}