﻿:root {
    --landing-primary: #ff6a1a;
    --landing-navy: #0c2a5b;
    --landing-bg: #FAF6EE;
    --landing-card: #ffffff;
    --landing-text: #222222;
    --landing-radius-lg: 32px;
    --landing-radius-md: 24px;
    --landing-radius-sm: 10px;
    --landing-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

    body.landing-body {
        background: var(--landing-bg);
        font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        color: var(--landing-text);
    }

        /* Universal Figtree reset — ensures every descendant (including Bootstrap-
           targeted elements like h1-h6, th, td, label, .btn, etc.) inherits Figtree */
        body.landing-body * {
            font-family: inherit;
        }

        body.landing-body,
        body.landing-body input,
        body.landing-body button,
        body.landing-body select,
        body.landing-body textarea,
        body.landing-body a {
            font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        }

.landing-container {
    width: 1600px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
}

/* Header */

.landing-header {
    padding: 0;
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    -webkit-transition: background 0.3s ease, box-shadow 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.landing-header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 10px 15px -5px rgba(51, 51, 51, 0.20);
}

.landing-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.landing-header-left,
.landing-header-center,
.landing-header-right {
    display: flex;
    align-items: center;
}

.landing-header-left {
    justify-self: start;
    margin-left: 20px;
}

.landing-header-center {
    justify-self: center;
    justify-content: center;
    padding: 0 16px;
}

.landing-header-right {
    justify-self: end;
    margin-right: 20px;
}

.landing-logo-link {
    display: inline-flex;
    align-items: center;
}

.landing-logo {
    max-width: 180px;
    height: auto;
    display: block;
}

.landing-participant-site-logo {
    display: block;
    max-width: 230px;
    height: auto;
    width: auto;
}

.landing-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .landing-header-actions > div {
        display: inline-block;
    }

.landing-login-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--landing-primary);
    color: #fff !important;
    text-decoration: none;
    width: 75px;
    height: 40px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0px 10px 15px -5px rgba(51, 51, 51, 0.2);
    transition: box-shadow 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

    .landing-login-pill:hover,
    .landing-login-pill:focus,
    .landing-login-pill:active {
        box-shadow: 0px 15px 20px -5px rgba(255, 138, 74, 0.8);
        outline: none;
        color: #fff !important;
    }

/* Nav bar wrapper */

.navbar-landing-wrapper {
    background-color: black;
    width: 100%;
    color: white;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    z-index: 999;
}

    .navbar-landing-wrapper .navbar.navbar-inverse {
        background-color: black;
        border-color: black;
        border-radius: 0;
        margin: 0;
    }

    .navbar-landing-wrapper .navbar-nav > li > a {
        color: #ffffff !important;
        font-weight: 600;
        font-size: 14px;
    }

        .navbar-landing-wrapper .navbar-nav > li > a:hover {
            color: var(--landing-primary) !important;
            background: transparent;
        }

    .navbar-landing-wrapper .navbar-collapse {
        display: flex !important;
        justify-content: center;
    }

    .navbar-landing-wrapper .navbar-nav {
        float: none !important;
        display: flex;
        justify-content: center;
    }

.landing-page-content {
    padding: 0 0 40px;
}

/* Main / hero */

.landing-main {
    padding-top: 90px;
    padding-bottom: 0;
}

/* When navbar is visible (authenticated pages), push content below both the fixed header (90px) and the fixed navbar (~50px) */
.navbar-landing-wrapper + .landing-main {
    padding-top: 140px;
}

.landing-hero-section {
    margin-top: 0;
}

.landing-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    aspect-ratio: 21 / 10;
}

.landing-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--landing-radius-lg);
    box-shadow: 0px 10px 15px -5px rgba(51, 51, 51, 0.2);
    transition: opacity 0.5s ease-in-out;
}

.landing-hero-card {
    position: absolute;
    right: 48px;
    top: 40%;
    transform: translateY(-40%);
    width: 350px;
    height: 60%;
    max-width: calc(100% - 48px);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow: 0 10px 15px -5px rgba(51, 51, 51, 0.20);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .landing-hero-card > *:last-child {
        margin-top: auto;
    }

    .landing-hero-card h1 {
        margin: 0;
        font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        font-size: 30px;
        line-height: 1.15;
        font-weight: 400;
        color: #111111;
    }

        .landing-hero-card h1 strong {
            font-size: 35px;
            font-weight: 700;
        }

    .landing-hero-card hr {
        border: 0;
        border-top: 1px solid rgba(0, 0, 0, 1);
        margin: 20px 0;
    }

    .landing-hero-card p {
        margin: 0;
        font-size: 22px;
        line-height: 1.15;
        color: #111111;
    }

        .landing-hero-card p strong {
            font-weight: 700;
        }

    .landing-hero-card > div[runat="server"] {
        width: 100%;
    }

        .landing-hero-card > div[runat="server"]:last-of-type {
            margin-top: auto;
        }

    .landing-hero-card .landing-btn-primary,
    .landing-hero-card .landing-btn-secondary {
        margin-top: auto;
    }

    .landing-hero-card > .landing-btn-primary,
    .landing-hero-card > .landing-btn-secondary {
        margin-top: auto;
    }

.landing-btn-primary,
.landing-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    background: var(--landing-primary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    border: none;
    cursor: pointer;
}

.landing-btn-primary {
    margin-top: 0;
    padding: 0 18px;
    height: 60px;
    font-size: 20px;
    border-radius: 16px;
    box-shadow: 0px 10px 15px -5px rgba(51, 51, 51, 0.2);
    transition: box-shadow 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

    .landing-btn-primary:hover,
    .landing-btn-primary:focus,
    .landing-btn-primary:active {
        box-shadow: 0px 15px 20px -5px rgba(255, 138, 74, 0.8);
        outline: none;
    }

.landing-btn-secondary {
    margin-top: 18px;
    padding: 0 14px;
    height: 55px;
    font-size: 20px;
    border-radius: 16px;
    box-shadow: 0px 10px 15px -5px rgba(51, 51, 51, 0.2);
    transition: box-shadow 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

    .landing-btn-secondary:hover,
    .landing-btn-secondary:focus,
    .landing-btn-secondary:active {
        box-shadow: 0px 15px 20px -5px rgba(255, 138, 74, 0.8);
        outline: none;
    }

/* Sections */

.landing-actions,
.landing-resources {
    text-align: center;
}

.landing-actions {
    margin-top: 30px;
}

.landing-resources {
    margin-top: 30px;
    margin-bottom: 20px;
}

    .landing-actions h2,
    .landing-resources h2 {
        margin: 0 0 16px;
        font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        font-size: 35px;
        line-height: 1.15;
        font-weight: 400;
        color: #1f1f1f;
    }

        .landing-actions h2 strong,
        .landing-resources h2 strong {
            font-weight: 700;
        }

.landing-action-grid,
.landing-resource-grid {
    display: grid;
    gap: 22px;
}

.landing-action-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
}

.landing-resource-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 12px;
}

.landing-action-card,
.landing-resource-card {
    background: var(--landing-card);
    border-radius: var(--landing-radius-md);
}

.landing-action-card {
    text-decoration: none;
    color: #111;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    min-height: 100px;
    gap: 15px;
    text-align: left;
    border: 1px solid #DDD6C5;
    box-shadow: none;
}

    .landing-action-card:hover {
        text-decoration: none;
    }

    .landing-action-card img {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        margin: 0 8px;
        border-radius: 9999px;
        box-shadow: 0px 5px 10px -5px rgba(102, 87, 87, 0.5);
    }

    .landing-action-card span {
        font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        font-size: 22px;
        line-height: 1.15;
        font-weight: 700;
    }

.landing-resource-card {
    padding: 24px 18px 18px;
    text-align: left;
    min-height: 215px;
    display: flex;
    flex-direction: column;
    border: 1px solid #DDD6C5;
    box-shadow: none;
}

    .landing-resource-card img {
        width: 60px;
        height: 60px;
        display: block;
        margin: 0 8px 18px;
        border-radius: 9999px;
        box-shadow: 0px 5px 10px -5px rgba(102, 87, 87, 0.5);
    }

    .landing-resource-card h3 {
        margin: 0 8px 10px;
        font-size: 25px;
        line-height: 1.15;
        font-weight: 700;
        color: #131313;
    }

    .landing-resource-card p {
        margin: 10px 8px 30px;
        font-size: 18px;
        line-height: 25px;
        min-height: 72px;
    }

    .landing-resource-card a {
        margin-top: auto;
    }

/* Footer */

.landing-footer {
    background: var(--landing-navy);
    color: #fff;
    margin-top: 20px;
    padding: 10px 0;
    height: 100px;
    display: flex;
    align-items: center;
}

.landing-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    align-items: center;
    gap: 24px;
}

.landing-footer-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.landing-footer-phone {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    box-shadow: 0px 10px 15px -5px rgba(51, 51, 51, 0.2);
}

.landing-footer-contact p,
.landing-footer-right p {
    margin: 0;
    font-size: 15px;
    line-height: 20px;
    font-weight: 400;
}

    .landing-footer-contact p strong,
    .landing-footer-right p strong {
        font-weight: 700;
    }

.landing-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.landing-social-icons {
    display: grid;
    grid-template-columns: repeat(2, 30px);
    grid-template-rows: repeat(2, 30px);
    gap: 10px;
    margin: 0;
    align-items: center;
    justify-items: center;
}

    .landing-social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
    }

    .landing-social-icons img {
        width: 30px;
        height: 30px;
        display: block;
    }

.landing-social-handle {
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
    margin: 0 0 0 10px;
    align-self: center;
}

.landing-footer-right {
    text-align: right;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.landing-footer-csc {
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    object-fit: contain;
    flex-shrink: 0;
}

/* Auth / signup */

.landing-auth-section {
    padding: 32px 0 56px;
}

.landing-auth-card {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    padding: 42px 48px;
}

.landing-auth-header {
    margin-bottom: 28px;
}

.landing-auth-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    color: #131313;
}

.landing-auth-subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
    max-width: 720px;
}

.landing-auth-error {
    margin: 0 0 16px;
    color: #c62828;
    font-weight: 600;
    font-size: 14px;
}

.landing-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.landing-auth-row {
    display: grid;
    grid-template-columns: 230px minmax(360px, 460px);
    column-gap: 26px;
    align-items: center;
}

.landing-auth-label {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f1f1f;
}

.landing-auth-field {
    min-width: 0;
}

.landing-auth-input.form-control {
    width: 100%;
    max-width: 460px;
    height: 52px;
    border: 1px solid #d8d8d8;
    border-radius: 14px;
    box-shadow: none;
    font-size: 15px;
    padding: 12px 16px;
    background: #fff;
    line-height: 1.4;
}

    .landing-auth-input.form-control:focus {
        border-color: #ff6a1a;
        box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.14);
        outline: none;
    }

.landing-auth-date-group {
    display: flex !important;
    align-items: stretch;
    width: 192px;
    max-width: 100%;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

    .landing-auth-date-group .form-control {
        flex: 1 1 auto;
        width: 1% !important;
        min-width: 0;
        height: 52px;
        border: 1px solid #d8d8d8;
        border-right: 0;
        border-radius: 14px 0 0 14px;
        box-shadow: none;
        font-size: 15px;
        padding: 12px 16px;
        background: #fff;
        line-height: 1.4;
        display: block !important;
    }

        .landing-auth-date-group .form-control:focus {
            border-color: #ff6a1a;
            box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.14);
            outline: none;
            position: relative;
            z-index: 2;
        }

    .landing-auth-date-group .input-group-btn {
        display: flex !important;
        flex: 0 0 auto;
    }

.landing-auth-calendar-btn {
    width: 52px;
    min-width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid #d8d8d8;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    position: relative;
    color: #444;
}

    .landing-auth-calendar-btn:hover,
    .landing-auth-calendar-btn:focus {
        background: #fff;
        outline: none;
        box-shadow: none;
    }

    .landing-auth-calendar-btn .glyphicon {
        display: none;
    }

    .landing-auth-calendar-btn::before {
        content: "▼";
        font-size: 14px;
        line-height: 1;
    }

.landing-auth-input-small.form-control {
    width: 140px;
    max-width: 100%;
}

.landing-auth-captcha-wrap {
    max-width: 420px;
}

.landing-auth-actions {
    display: flex;
    gap: 14px;
    padding-top: 24px;
    margin-left: 256px;
}

.landing-auth-btn {
    min-width: 160px;
    height: 52px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    padding: 0 24px;
    border: none;
    box-shadow: none;
}

.landing-auth-btn-primary {
    background: var(--landing-primary);
    color: #fff;
}

.landing-auth-btn-secondary {
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #d8d8d8;
}

.landing-auth-btn-primary:hover,
.landing-auth-btn-primary:focus {
    color: #fff;
}

.landing-auth-btn-secondary:hover,
.landing-auth-btn-secondary:focus {
    color: #1f1f1f;
}

/* Datepicker */

.ui-datepicker {
    z-index: 9999 !important;
    font-size: 13px;
    padding: 10px;
    border: 1px solid #d8d8d8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

    .ui-datepicker .ui-datepicker-header {
        position: relative;
        background: #fff;
        border: 0;
        padding: 0 0 10px;
        min-height: 32px;
    }

    .ui-datepicker .ui-datepicker-prev,
    .ui-datepicker .ui-datepicker-next {
        cursor: pointer;
        top: 2px;
        width: auto;
        height: auto;
        font-size: 13px;
        color: #444;
        text-decoration: none;
    }

    .ui-datepicker .ui-datepicker-prev {
        left: 8px;
    }

    .ui-datepicker .ui-datepicker-next {
        left: 56px;
        right: auto;
    }

    .ui-datepicker select.ui-datepicker-month,
    .ui-datepicker select.ui-datepicker-year {
        height: 28px;
        font-size: 13px;
        border: 1px solid #d8d8d8;
        border-radius: 8px;
        background: #fff;
    }

    .ui-datepicker table {
        margin: 4px 0 0;
        font-size: 13px;
    }

    .ui-datepicker th {
        padding: 4px 2px;
        font-weight: 700;
    }

    .ui-datepicker td {
        padding: 2px;
    }

        .ui-datepicker td a,
        .ui-datepicker td span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 999px;
            text-decoration: none;
        }

            .ui-datepicker td a:hover {
                background: rgba(255, 106, 26, 0.12);
            }

    .ui-datepicker .ui-state-active {
        background: #ff6a1a !important;
        color: #fff !important;
        border: none !important;
    }

/* MyInformation key-value tables — inline wrap on mobile */

@media (max-width: 991px) {
    .form-horizontal table {
        display: block;
        width: 100% !important;
    }

        .form-horizontal table tbody,
        .form-horizontal table tr {
            display: flex;
            flex-wrap: wrap;
            width: 100%;
            padding: 4px 0;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            align-items: baseline;
            gap: 4px;
        }

            .form-horizontal table tr:last-child {
                border-bottom: none;
            }

        .form-horizontal table td {
            display: inline;
            width: auto !important;
            padding: 0;
            border: none;
            font-size: 14px;
            line-height: 1.6;
        }

            .form-horizontal table td[style*="width: 20%"] {
                flex-shrink: 0;
            }

        /* Hide rows where the label td is empty — continuation rows like apt, city, provider address lines */
        .form-horizontal table tr td:first-child:empty,
        .form-horizontal table tr td:first-child:blank {
            display: none;
        }

        .form-horizontal table tr:has(td:first-child:empty),
        .form-horizontal table tr:has(td:first-child b:empty) {
            padding: 0;
            border-bottom: none;
            margin-top: -4px;
        }

            /* continuation rows flow as part of previous row visually */
            .form-horizontal table tr:has(td:first-child:empty) td {
                padding-left: 0;
            }
}



@media (max-width: 991px) {
    .landing-page-content .panel {
        overflow: hidden;
    }

    .landing-page-content .panel-heading {
        padding: 10px 12px;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .landing-page-content .panel-body {
        padding: 10px;
        overflow-x: auto;
    }

    .landing-page-content .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Responsive table — card layout on mobile */

@media (max-width: 991px) {
    .ts-responsive-table thead {
        display: none;
    }

    .ts-responsive-table,
    .ts-responsive-table tbody,
    .ts-responsive-table tr,
    .ts-responsive-table td {
        display: block;
        width: 100%;
    }

        .ts-responsive-table tr {
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            margin-bottom: 12px;
            padding: 12px 16px;
            border: 1px solid #e8e8e8;
        }

        .ts-responsive-table td {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 6px 0;
            border: none;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            font-size: 14px;
            line-height: 1.4;
        }

            .ts-responsive-table td:last-child {
                border-bottom: none;
                padding-bottom: 0;
            }

            .ts-responsive-table td::before {
                content: attr(data-label);
                font-weight: 700;
                color: var(--landing-navy);
                flex: 0 0 40%;
                margin-right: 8px;
                font-size: 13px;
            }
}



@media (max-width: 1100px) {
    .landing-action-grid,
    .landing-resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-footer {
        height: auto;
        padding: 16px 0;
    }

    .landing-footer-grid {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .landing-footer-contact {
        justify-content: flex-start;
        justify-self: start;
        text-align: left;
    }

    .landing-footer-social {
        justify-content: center;
        justify-self: center;
        text-align: center;
    }

    .landing-footer-right {
        justify-content: flex-end;
        justify-self: end;
        text-align: right;
    }
}




@media (max-width: 991px) {
    .landing-auth-card {
        padding: 28px 20px;
    }

    .landing-auth-title {
        font-size: 28px;
    }

    .landing-auth-subtitle,
    .landing-auth-label,
    .landing-auth-input.form-control,
    .landing-auth-date-group .form-control,
    .landing-auth-btn {
        font-size: 15px;
    }

    .landing-auth-row {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .landing-auth-date-group,
    .landing-auth-input.form-control,
    .landing-auth-input-small.form-control,
    .landing-auth-actions {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    /* Force Bootstrap input-group to behave on mobile */
    .landing-auth-date-group {
        width: 100% !important;
        overflow: hidden;
    }

        .landing-auth-date-group .form-control {
            min-width: 0 !important;
            width: 1% !important;
            flex: 1 1 auto !important;
        }

        .landing-auth-date-group .input-group-btn,
        .landing-auth-date-group span.input-group-btn {
            display: flex !important;
            flex: 0 0 52px !important;
            width: 52px !important;
            min-width: 0 !important;
        }

    .landing-auth-calendar-btn {
        flex-shrink: 0;
        width: 52px !important;
        min-width: 0 !important;
    }

    .landing-auth-actions {
        flex-direction: column;
    }

    .landing-auth-btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .landing-container {
        max-width: calc(100% - 24px);
    }

    /* ── Header: logo left, login right, participant logo hidden ── */
    .landing-header {
        height: 90px;
        padding: 0;
    }

    .landing-header-inner {
        grid-template-columns: auto 1fr;
        gap: 10px;
        text-align: left;
    }

    .landing-header-left {
        justify-self: start;
        justify-content: flex-start;
    }

    .landing-header-center {
        display: none;
    }

    .landing-header-right {
        justify-self: end;
        justify-content: flex-end;
    }

    .landing-header-actions {
        justify-content: flex-end;
    }

    .landing-logo {
        max-width: 160px;
    }

    /* ── Hero: stacked layout — image top 40vh, card bottom 40vh ── */
    .landing-hero-wrapper {
        min-height: 80vh;
        aspect-ratio: unset;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .landing-hero-image {
        width: 100%;
        height: 40vh;
        object-fit: cover;
        border-radius: var(--landing-radius-lg) var(--landing-radius-lg) 0 0;
    }

    .landing-hero-card {
        position: static;
        top: auto;
        transform: none;
        right: auto;
        left: auto;
        width: 100%;
        min-height: 40vh;
        height: auto;
        max-width: 100%;
        margin-top: 0;
        padding: 20px 18px 24px;
        border-radius: 0 0 var(--landing-radius-lg) var(--landing-radius-lg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        background: rgba(255, 255, 255, 0.95);
        box-sizing: border-box;
    }

        .landing-hero-card h1 {
            font-size: 22px;
            line-height: 1.15;
        }

            .landing-hero-card h1 strong {
                font-size: 26px;
            }

        .landing-hero-card p {
            font-size: 16px;
            line-height: 1.15;
        }

    /* ── Sections ── */
    .landing-action-grid,
    .landing-resource-grid {
        grid-template-columns: 1fr;
    }

    .landing-actions h2,
    .landing-resources h2 {
        font-size: 24px;
        line-height: 1.3;
        text-align: left;
        font-weight: 400;
        margin-bottom: 12px;
    }

        .landing-actions h2 strong,
        .landing-resources h2 strong {
            font-weight: 700;
        }

    .landing-resource-card h3 {
        font-size: 22px;
    }

    /* ── Footer ── */
    .landing-footer {
        height: auto;
        padding: 16px 0;
    }

    .landing-footer-grid {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .landing-footer-contact {
        justify-content: flex-start;
        justify-self: start;
        text-align: left;
    }

    .landing-footer-social {
        justify-content: center;
        justify-self: center;
        text-align: center;
    }

    .landing-footer-phone {
        width: 60px;
        height: 60px;
    }

    .landing-footer-contact p,
    .landing-footer-right p {
        font-size: 12px;
        line-height: 18px;
    }

    .landing-footer-right {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;
        gap: 12px;
        text-align: right;
    }

    .landing-footer-csc {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        flex-shrink: 0;
    }

    .landing-social-icons {
        grid-template-columns: repeat(2, 30px);
        grid-template-rows: repeat(2, 30px);
    }

        .landing-social-icons a,
        .landing-social-icons img {
            width: 30px;
            height: 30px;
        }

    .landing-social-handle {
        font-size: 12px;
        line-height: 18px;
    }
}

/* ── Mobile navbar & page fixes (991px) ── */

@media (max-width: 991px) {

    /* Navbar wrapper — beige dropdown on mobile */
    .navbar-landing-wrapper .navbar-collapse {
        background-color: var(--landing-bg);
        border-top: 2px solid var(--landing-primary);
        padding: 8px 0;
        display: block !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

        .navbar-landing-wrapper .navbar-collapse.collapse:not(.in) {
            display: none !important;
        }

    .navbar-landing-wrapper .navbar-nav {
        float: none !important;
        display: block;
        margin: 0;
    }

        .navbar-landing-wrapper .navbar-nav > li {
            display: block;
            width: 100%;
            text-align: center;
        }

            .navbar-landing-wrapper .navbar-nav > li > a {
                color: var(--landing-text) !important;
                padding: 12px 20px;
                display: block;
                border-bottom: 1px solid rgba(0,0,0,0.07);
                font-size: 15px;
            }

                .navbar-landing-wrapper .navbar-nav > li > a:hover {
                    color: var(--landing-primary) !important;
                    background: rgba(255, 106, 26, 0.06);
                }

    /* Hamburger button — make it visible and styled */
    .navbar-landing-wrapper .navbar-toggle {
        display: block !important;
        float: right;
        margin: 8px 12px;
        background: transparent;
        border: 2px solid #ffffff;
        border-radius: 6px;
        padding: 6px 10px;
    }

        .navbar-landing-wrapper .navbar-toggle .icon-bar {
            background-color: #ffffff;
            display: block;
            width: 22px;
            height: 2px;
            margin: 4px 0;
        }

    /* Page content — prevent table/grid overflow */
    .landing-page-content {
        overflow-x: hidden;
        padding: 16px 0 32px;
    }

        .landing-page-content table {
            width: 100% !important;
            display: block;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

    /* Header tightening on mobile */
    .landing-header {
        padding: 0;
    }

    .landing-header-inner {
        gap: 10px;
    }
}


html, body {
    height: 100%;
    margin: 0;
}

.landing-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* This is key */
.landing-main {
    flex: 1;
}