/* ── Apotex Denoza brand font (ELZA Bold)
   Drop ElzaBold.woff2 + ElzaBold.woff into wwwroot/fonts/ to activate.
   ─────────────────────────────────────────────── */
/* @font-face {
    font-family: 'Elza';
    src: url('/fonts/ElzaBold.woff2') format('woff2'),
         url('/fonts/ElzaBold.woff')  format('woff');
    font-weight: 700;
    font-style:  normal;
    font-display: swap;
} */

/* ── Apotex Denoza brand palette ── */
:root {
    --green:         #35B66F;  /* Emerald Green  */
    --green-hover:   #299960;
    --navy:          #0F4C9C;  /* Lake Blue       */
    --sidebar:       #0D2036;  /* Midnight Blue   */
    --vibrant-blue:  #1A56FF;  /* Vibrant Blue    */
    --blue:          #0F4C9C;
    --blue-light:    #e8f0fb;
    --text:          #333;
    --label:         #555;
    --border:        #d0d0d0;
    --error:         #c0392b;
    --orange-bg:     #FFF8ED;
    --orange-bdr:    #F59E0B;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── FONT: swap 'Montserrat' → 'Elza', 'Open Sans' → 'Elza' once font files added.
   For now Montserrat is the closest available bold sans-serif. ── */
body {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #f2f4f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ════════════════════════════════
   HEADER
   ════════════════════════════════ */
.site-header {
    background: var(--sidebar);
    padding: 12px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    z-index: 10;
}

.header-logo { text-decoration: none; flex: 1; }
.header-logo__img {
    height: 38px;
    display: block;
}

.header-nav { display: flex; align-items: center; gap: 8px; }

.lang-switcher { display: flex; align-items: center; gap: 6px; }
.lang-switcher button {
    background: none; border: none;
    color: rgba(255,255,255,0.65);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 600;
    cursor: pointer; padding: 2px 4px;
    letter-spacing: 0.05em; transition: color 0.15s;
}
.lang-switcher button:hover,
.lang-switcher button.active { color: #fff; }
.lang-switcher button.active { text-decoration: underline; }
.lang-sep { color: rgba(255,255,255,0.35); font-size: 12px; }

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
.site-footer {
    background: var(--sidebar);
    color: rgba(255,255,255,0.75);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-brand {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.55); font-size: 11px;
}
.footer-inizio {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 13px;
    color: #fff; line-height: 1.1;
    text-transform: uppercase; letter-spacing: 1px;
}
.footer-inizio small {
    font-size: 8px; letter-spacing: 2px; display: block;
}

.footer-links {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap; flex: 1; justify-content: flex-end;
}
.footer-link { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 12px; }
.footer-link:hover { color: #fff; text-decoration: underline; }
.footer-btn-link { background: none; border: none; cursor: pointer; padding: 0; }
.footer-sep { color: rgba(255,255,255,0.3); }

/* ════════════════════════════════
   LANDING PAGE
   ════════════════════════════════ */
body.landing { background: var(--sidebar); }
body.landing .site-footer { margin-top: 0; }

.landing-wrap {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* ── Sidebar (desktop only) ── */
.landing-sidebar {
    background: var(--sidebar);
    width: 38%;
    max-width: 380px;
    flex-shrink: 0;
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #fff;
}

.sidebar-logo__img {
    width: 200px;
    display: block;
}

.compact-logo__img {
    height: 44px;
    width: auto;
    display: block;
    align-self: flex-start;
}

.landing-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--green);
}
.logo-text sup { font-size: 11px; }
.logo-tagline { font-size: 11px; color: rgba(255,255,255,0.55); }

.landing-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: #fff;
}
.landing-title--sm { font-size: 18px; margin-top: 8px; }

.landing-desc {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
}

/* ── Main panel ── */
.landing-main {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;       /* centre children horizontally */
    justify-content: center;   /* centre children vertically   */
    padding: 48px 40px;
    gap: 0;
}

/* Compact header: hidden on desktop, shown tablet/mobile */
.landing-compact-header { display: none; }

/* Content block: fixed max-width, full-width inside that */
.landing-content {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-prompt { font-size: 15px; color: var(--text); }
.landing-iam    { font-size: 15px; color: var(--text); }

.role-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 4px 0 8px;
}

.role-btn {
    display: block;
    background: var(--green);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 50px;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.02em;
}
.role-btn:hover {
    background: var(--green-hover);
    transform: translateY(-1px);
}

.landing-note {
    font-size: 12px;
    color: var(--label);
    line-height: 1.55;
}

/* ════ TABLET (sidebar collapses) ════ */
@media (max-width: 1023px) {
    .landing-sidebar { display: none; }

    .landing-main {
        background: var(--sidebar);
        padding: 0;
        align-items: stretch;
        justify-content: flex-start;
    }

    /* Dark top section with logo + description */
    .landing-compact-header {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 40px 40px 32px;
        color: #fff;
    }
    .landing-compact-header .landing-desc { color: rgba(255,255,255,0.85); }

    /* White bottom section with buttons */
    .landing-content {
        background: #fff;
        max-width: none;
        padding: 36px 40px 48px;
        flex: 1;
        align-items: center;     /* centre buttons on tablet */
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .landing-content > * { width: 100%; max-width: 460px; }
}

/* ════ MOBILE ════ */
@media (max-width: 640px) {
    .landing-compact-header { padding: 28px 20px 24px; }
    .landing-content { padding: 28px 20px 40px; }
    .role-btn { font-size: 14px; padding: 13px 20px; }
}

/* ════════════════════════════════
   FORM PAGE
   ════════════════════════════════ */
.page-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 60px;
    flex: 1;
}

/* ── Collapsible panels ── */
.panel {
    background: #fff;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.panel__head {
    background: var(--navy);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    gap: 12px;
}
.panel__head:hover { background: #0e3580; }

.panel__title { flex: 1; }
.panel__optional { font-weight: 400; font-size: 13px; opacity: 0.85; }

.panel__chevron {
    font-size: 16px;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.panel--closed .panel__chevron { transform: rotate(180deg); }
.panel--closed .panel__body { display: none; }

.panel__body { padding: 28px 20px 24px; }

/* ── HCP pill sub-type selector ── */
.hcp-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.hcp-pill {
    padding: 6px 18px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.hcp-pill:hover { border-color: var(--navy); color: var(--navy); }
.hcp-pill--active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ── Two-column grid ── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
    align-items: start;
}

/* ── Field ── */
.field label {
    display: block;
    font-size: 11px;
    color: var(--label);
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.field label.required::after { content: ' *'; color: var(--green); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid var(--border);
    border-radius: 0;
    padding: 7px 2px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: transparent;
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none; appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 20px;
    cursor: pointer;
}
.field input:focus,
.field select:focus { border-bottom-color: var(--navy); }
.field input::placeholder { color: #bbb; }

/* ── Inline checkboxes under email field ── */
.inline-checks {
    display: flex; flex-direction: row; gap: 16px; margin-top: 6px;
}

/* ── Phone row ── */
.phone-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
    align-items: start;
}

/* ── Inline pair (label + toggles side by side) ── */
.inline-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    align-items: start;
}
.toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

/* ── Language toggle (styled checkboxes) ── */
.lang-toggle { display: flex; gap: 6px; }
.lang-btn {
    padding: 6px 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    user-select: none;
    transition: all 0.15s;
}
.lang-btn:has(input:checked) {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Checkboxes ── */
.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-group.horizontal { flex-direction: row; gap: 20px; flex-wrap: wrap; }
.checkbox-group label {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--text); cursor: pointer; font-weight: normal;
}
.checkbox-group input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--green); cursor: pointer; flex-shrink: 0;
}

/* ── Consent blocks ── */
.consent-block { margin-top: 8px; }
.consent-block label {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--text); cursor: pointer; line-height: 1.55;
}
.consent-block input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--green); flex-shrink: 0; margin-top: 2px;
}

/* ── Injection date confirmation (orange highlight) ── */
.inject-confirm {
    background: var(--orange-bg);
    border-left: 3px solid var(--orange-bdr);
    padding: 12px 14px;
    border-radius: 2px;
}
.inject-confirm label { font-weight: 600; font-size: 13px; }

/* ── Notes / helper text ── */
.field-note { font-size: 12px; color: var(--label); line-height: 1.5; }

/* ── Section divider ── */
.section-divider {
    border: none; border-top: 1px solid var(--border); margin: 20px 0;
}

/* ── Privacy links ── */
.privacy-links { font-size: 13px; }
.privacy-links a { color: var(--vibrant-blue); text-decoration: none; }
.privacy-links a:hover { text-decoration: underline; }

/* ── Privacy accordion ── */
.privacy-accordion summary {
    font-size: 12px; color: var(--vibrant-blue);
    cursor: pointer; user-select: none;
}
.privacy-accordion[open] summary { margin-bottom: 4px; }

/* ── Pharmacist certificate panel ── */
.cert-row {
    display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.cert-panel {
    background: var(--sidebar);
    color: #fff;
    padding: 20px 24px;
    border-radius: 4px;
    flex: 1; min-width: 200px;
}
.cert-panel__label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cert-panel__content { font-size: 13px; opacity: 0.8; }

/* ── Green pill buttons (role, submit, generate cert) ── */
.btn-green {
    background: var(--green);
    color: #fff;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.03em;
}
.btn-green:hover { background: var(--green-hover); }
.btn-pill { border-radius: 50px; padding: 12px 40px; }
.btn-submit { min-width: 160px; }

/* ── Submit row ── */
.form-submit { margin-top: 28px; text-align: center; }

/* ── Validation ── */
.field-validation-error,
.validation-summary-errors ul li {
    color: var(--error); font-size: 12px; margin-top: 3px; display: block;
}
.validation-summary-errors {
    background: #fdf0ef;
    border-left: 3px solid var(--error);
    padding: 12px 16px; margin-bottom: 20px;
    font-size: 13px; color: var(--error);
}
.input-validation-error { border-bottom-color: var(--error) !important; }

/* ════════════════════════════════
   MODALS
   ════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
}

.modal-card {
    background: #d9d9d9;
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 440px; width: 90%;
    position: relative;
}

.modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none;
    font-size: 18px; cursor: pointer; color: var(--text);
    line-height: 1; padding: 4px;
}
.modal-close:hover { opacity: 0.6; }

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px; font-weight: 600;
    color: var(--navy); text-align: center;
    margin-bottom: 20px; line-height: 1.4;
}

.modal-contact-heading { font-size: 14px; margin-bottom: 12px; }
.modal-contact-item { font-size: 14px; margin-bottom: 6px; }
.contact-placeholder { color: var(--label); }

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
/* ════ Form / global responsive ════ */
@media (max-width: 700px) {
    .form-grid, .phone-row, .inline-pair { grid-template-columns: 1fr; }
    .hcp-pills { flex-direction: column; }
    .checkbox-group.horizontal { flex-direction: column; gap: 8px; }
    .cert-row { flex-direction: column; }
    .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-links { justify-content: flex-start; }
}
