/* -----------------------------------------
   Fonts
----------------------------------------- */
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../fonts/IBMPlexSans-Regular.woff2') format('woff2'),
        url('../fonts/IBMPlexSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../fonts/IBMPlexSans-Italic.woff2') format('woff2'),
        url('../fonts/IBMPlexSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../fonts/IBMPlexSans-Bold.woff2') format('woff2'),
        url('../fonts/IBMPlexSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../fonts/IBMPlexSans-BoldItalic.woff2') format('woff2'),
        url('../fonts/IBMPlexSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Label directly preceding a required field, or preceding a group
   (e.g. a set of radios) that contains one. */
label:has(+ input:required:not([type='radio'])):after,
label:has(+ * input:required):after,
label:has(+ * select:required):after {
    content: '*';
    color: inherit;
}

/* -----------------------------------------
   Design tokens
----------------------------------------- */
:root {
    --leo-green-dark: #004837;
    --leo-green-text: #004837;
    --leo-border: #2b4a3d;
    --leo-body: rgba(0, 17, 16, 0.8);
    --bs-body-font-family: 'IBM Plex Sans', Arial, sans-serif;
    --bs-font-sans-serif: 'IBM Plex Sans', Arial, sans-serif;
}

body {
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    color: rgba(0, 17, 16, 0.8);
}

a {
    color: var(--leo-body);
    text-decoration: none;
}


/* -----------------------------------------
   Top disclaimer bar
----------------------------------------- */
.disclaimer-bar {
    font-size: 0.75rem;
    padding: 1rem 0;
    color: #001110;
    text-align: center;
}

/* -----------------------------------------
   Header / logo bar
----------------------------------------- */
.logo-bar {
    padding: 1rem 0;
}

/* -----------------------------------------
   Simple header rule (used on interior pages
   that have no hero banner image)
----------------------------------------- */
.header-rule {
    border: none;
    border-top: 1px solid #001110;
    margin: 0;
}

/* -----------------------------------------
   Hero heading strip beneath the banner image
----------------------------------------- */
.hero-heading {
    background-color: var(--leo-green-dark);
    color: #fff;
    padding: 2.5rem 0;
}

.hero-heading h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0;
}

/* -----------------------------------------
   Interior page copy (privacy / cookies / terms)
----------------------------------------- */
.page-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.page-copy {
    font-size: 0.875rem;
}

.page-copy h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.page-copy h2 {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-copy h2:has(+ .lead-paragraph) {
    margin-bottom: 0;
}

.page-copy .lead-paragraph {
    font-size: 0.9375rem;
    margin-top: 0;
}

.page-copy h3 {
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-copy address {
    font-style: normal;
}

.page-copy ol {
    padding-left: 1.25rem;
}

/* -----------------------------------------
   Form
----------------------------------------- */
.consent-form label {
    font-weight: 600;
}

.consent-form input[type='text'],
.consent-form input[type='email'],
.consent-form input[type='tel'],
.consent-form select,
.consent-form textarea {
    border-color: #004837 !important;
    border-width: 2px !important;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.consent-form .form-group-label {
    margin-bottom: 0.5rem;
}

.consent-form .form-check-label {
    font-weight: 400;
}

.consent-form textarea {
    min-height: 120px;
}

.consent-form .form-check-input {
    border-color: #004837 !important;
    border-width: 2px !important;
}

.consent-form .btn-submit {
    color: var(--leo-green-dark);
    border: 1px solid var(--leo-green-dark);
    background: transparent;
    padding: 0.5rem 1.5rem;
}

.consent-form .btn-submit:hover {
    background-color: var(--leo-green-dark);
    color: #fff;
}

.consent-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: default;
    background: transparent;
    color: var(--leo-green-dark);
}

.reference-code {
    font-size: 0.75rem;
    color: #001110;
}

/* -----------------------------------------
   Form validation messages
----------------------------------------- */
.field-error {
    color: #dc3545;
    font-size: 0.8125rem;
    margin: 0.25rem 0 0;
}

/* -----------------------------------------
   Age/HCP gate popup
----------------------------------------- */
.hcp-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 17, 16, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
}

.hcp-gate-overlay.d-none {
    display: none;
}

.hcp-gate {
    background: #fff;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

.hcp-gate p {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hcp-gate p a {
    text-decoration: underline;
}

.hcp-gate .form-check {
    margin-bottom: 1rem;
}

.hcp-gate .form-check-input {
    border-color: var(--leo-border);
    border-radius: 0;
    flex-shrink: 0;
}

.hcp-gate .btn-submit {
    color: var(--leo-green-dark);
    border: 1px solid var(--leo-green-dark);
    background: transparent;
    padding: 0.5rem 1.5rem;
}

.hcp-gate .btn-submit:hover {
    background-color: var(--leo-green-dark);
    color: #fff;
}

.hcp-gate .field-error {
    text-align: center;
}

.hcp-gate .reference-code {
    text-align: right;
    margin: 1.5rem 0 0;
}

.hcp-gate .form-check-input,
.consent-form .form-check-input {
    width: 1.5em;
    height: 1.5em;
}

@media (min-width: 768px) {
    .hcp-gate .form-check-label {
        white-space: nowrap;
    }
}

/* -----------------------------------------
   Footer
----------------------------------------- */
.footer-links {
    font-size: 0.875rem;
    padding: 1rem 0;
    color: #001110 !important;
}

.footer-main {
    background-color: var(--leo-green-dark);
    color: #fff;
    padding: 2rem 0 1rem;
}

.footer-main h2 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-main address {
    font-style: normal;
    font-size: 0.875rem;
}

.footer-copy {
    font-size: 0.875rem;
    margin-top: 1.5rem;
}