﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}
.box {
    background-color: rgb(245,245,255);
    margin: -15px 0px -15px 0px;
    padding: 5px 20px 20px 20px;
    border: white 10px solid;
}
/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.landing-body {
    padding-top: 0;
    padding-bottom: 0;
}

html.landing-body {
    background: #f5f8ff url('Images/clrc-background.png') no-repeat top center fixed;
    background-size: cover;
}

body.landing-body {
    background: transparent;
}

.landing-page {
    color: #102b63;
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
    background: transparent;
}

.landing-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-topbar {
    background: transparent;
    color: #111;
    box-shadow: none;
    border-bottom: 1px solid rgba(20, 59, 128, 0.10);
    margin: 0 10px 28px;
    padding: 0;
}

.topbar-content {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: 58px;
    border-radius: 4px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.topbar-link,
.topbar-link:hover,
.topbar-link:focus {
    color: #111;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.topbar-link .glyphicon {
    margin-right: 8px;
}

.landing-hero {
    padding: 42px 0 20px;
}

.landing-main-panel {
    position: relative;
    padding: 22px 16px 18px;
    border-radius: 12px;
    background-color: #fff;
    background-image: url('Images/landing-panel-bg.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    border: 1px solid rgba(20, 59, 128, 0.10);
    box-shadow: 0 14px 36px rgba(21, 50, 108, 0.10);
    overflow: hidden;
}

.landing-main-panel:before,
.landing-main-panel:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.landing-main-panel:before {
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0) 0%, rgba(211, 224, 250, 0.01) 42%, rgba(255, 255, 255, 0) 62%),
        linear-gradient(192deg, rgba(255, 255, 255, 0) 12%, rgba(226, 235, 252, 0.015) 34%, rgba(255, 255, 255, 0) 56%);
}

.landing-main-panel:after {
    background:
        radial-gradient(circle at 80% 28%, rgba(186, 206, 242, 0.008), transparent 16%),
        radial-gradient(circle at 92% 46%, rgba(205, 219, 245, 0.01), transparent 22%);
}

.hero-header {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #cf2f3a;
    margin-bottom: 12px;
    font-size: 24px;
}

.hero-kicker span {
    width: 72px;
    height: 1px;
    background: #f09ba4;
}

.hero-flag {
    width: 24px;
    height: auto;
    display: inline-block;
}

.hero-header h1 {
    margin: 0 0 10px;
    font-size: 60px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.hero-header p {
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.65;
    color: #334567;
    max-width: 640px;
}

.questionnaire-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 28px;
}

.questionnaire-card,
.info-card {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(20, 59, 128, 0.12);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(22, 52, 110, 0.10);
}

.questionnaire-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 28px 16px;
    min-height: 315px;
}

.card-icon {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card-icon svg {
    width: 72px;
    height: 72px;
    stroke: #2d69dd;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(41%) sepia(77%) saturate(2083%) hue-rotate(204deg) brightness(92%) contrast(90%);
}

.questionnaire-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    max-width: 280px;
}

.questionnaire-card p {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.55;
    color: #41506d;
    max-width: 265px;
}

.landing-btn {
    width: 100%;
    max-width: 230px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2f73ea, #1e5ed0);
    border: none;
    font-weight: 700;
    padding: 14px 18px;
    box-shadow: 0 8px 18px rgba(36, 96, 214, 0.22);
}

.btn-label-narrow {
    display: none;
}

.landing-btn:hover,
.landing-btn:focus {
    background: linear-gradient(180deg, #2769de, #1a54bd);
}

.info-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.info-card {
    padding: 24px 24px 18px;
}

.info-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.info-title .glyphicon {
    font-size: 28px;
}

.info-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.info-intro,
.info-note {
    color: #41506d;
    font-size: 15px;
}

.comparison-table {
    margin: 18px 0 10px;
    border: 1px solid #d8e2f1;
    border-radius: 14px;
    overflow: hidden;
}

.comparison-table .table {
    margin-bottom: 0;
}

.comparison-table thead th {
    background: #edf3ff;
    text-align: center;
    color: #163a80;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #d8e2f1;
}

.comparison-table tbody th,
.comparison-table tbody td {
    vertical-align: middle;
    border-color: #d8e2f1;
    font-size: 14px;
}

.comparison-table tbody th {
    width: 32%;
    color: #203456;
    font-weight: 600;
}

.comparison-table tbody td {
    text-align: center;
    color: #41506d;
}

.match-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.mobile-accordion {
    margin: 16px 0 12px;
}

.mobile-accordion .panel {
    border-color: #d8e2f1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.mobile-accordion .panel + .panel {
    margin-top: 10px;
}

.mobile-accordion .panel-heading {
    background: #fff;
    padding: 0;
}

.mobile-accordion .panel-title a {
    display: block;
    padding: 14px 16px;
    color: #163a80;
    font-weight: 700;
    text-decoration: none;
}

.mobile-accordion .panel-title span {
    display: block;
    padding: 14px 16px;
    color: #163a80;
    font-weight: 700;
    text-decoration: none;
}

.mobile-accordion .panel-body {
    color: #41506d;
    line-height: 1.55;
}

.important-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(246, 249, 255, 0.78));
}

.important-list {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #253756;
}

.important-list li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.trust-strip {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.88);
    border-top: 1px solid rgba(20, 59, 128, 0.10);
    border-bottom: 1px solid rgba(20, 59, 128, 0.10);
    margin: 0 10px 0;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 90px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #1b3470;
}

.trust-item + .trust-item {
    border-left: 1px solid rgba(20, 59, 128, 0.12);
}

.trust-item .glyphicon {
    font-size: 28px;
}

.landing-footer {
    position: relative;
    z-index: 1;
    background: #fff;
    color: #111;
    margin: 0 10px;
    padding: 0;
    border-top: 1px solid rgba(20, 59, 128, 0.10);
}

.footer-content {
    display: grid;
    grid-template-columns: 220px 1fr 1fr;
    gap: 28px;
    min-height: 88px;
}

.footer-block {
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 1.6;
}

.footer-block + .footer-block {
    border-left: 1px solid rgba(20, 59, 128, 0.12);
    padding-left: 28px;
}

.footer-logo {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.landing-footer a,
.landing-footer a:hover,
.landing-footer a:focus {
    color: #111;
}

@media (max-width: 991px) {
    body {
        padding-top: 0;
    }

    .topbar-content,
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-content {
        padding-top: 0;
        padding-bottom: 20px;
    }

    .landing-topbar {
        margin: 0 10px 24px;
        padding: 0;
    }

    .hero-header h1 {
        font-size: 46px;
    }

    .landing-main-panel {
        padding: 22px 16px 18px;
    }

    .questionnaire-grid,
    .info-grid,
    .trust-items,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .trust-item + .trust-item,
    .footer-block + .footer-block {
        border-left: none;
    }

    .trust-item {
        display: grid;
        grid-template-columns: 28px 1fr;
        align-items: center;
        justify-content: flex-start;
        min-height: 70px;
        border-top: 1px solid rgba(20, 59, 128, 0.12);
        padding: 12px 18px;
    }

    .trust-item .glyphicon {
        width: 28px;
        flex: 0 0 28px;
        text-align: center;
    }

    .landing-footer {
        margin: 0 10px;
    }

    .footer-block {
        min-height: 70px;
        align-items: flex-start;
        border-top: 1px solid rgba(20, 59, 128, 0.12);
        padding-top: 18px;
    }

    .footer-logo {
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .landing-shell {
        padding: 0 16px;
    }

    .topbar-content {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: 12px;
        row-gap: 0;
        min-height: 64px;
        padding-bottom: 6px;
    }

    .brand-lockup {
        min-width: 0;
    }

    .brand-image {
        height: 44px;
    }

    .topbar-actions {
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .topbar-link {
        font-size: 14px;
        white-space: nowrap;
    }

    .landing-hero {
        padding-top: 28px;
    }

    .landing-topbar {
        margin: 0 10px 0;
        padding: 0;
        border-bottom: none;
    }

    .trust-strip,
    .landing-footer {
        margin-left: 10px;
        margin-right: 10px;
    }

    .landing-main-panel {
        padding: 22px 16px 18px;
        border-radius: 12px;
    }

    .hero-kicker span {
        display: block;
        width: 32px;
    }

    .hero-header {
        margin-bottom: 24px;
    }

    .hero-header h1 {
        font-size: 26px;
    }

    .hero-header p {
        font-size: 16px;
        line-height: 1.45;
    }

    .questionnaire-card {
        min-height: 0;
        padding: 12px 16px 12px;
        display: grid;
        grid-template-columns: 64px 1fr;
        grid-template-areas:
            "icon title"
            "icon body"
            "button button";
        column-gap: 12px;
        row-gap: 6px;
        align-items: start;
        text-align: left;
    }

    .card-icon {
        grid-area: icon;
        width: 64px;
        height: 64px;
        margin: 0;
    }

    .card-icon svg {
        width: 56px;
        height: 56px;
    }

    .card-icon img {
        width: 56px;
        height: 56px;
    }

    .questionnaire-card h2,
    .questionnaire-card p {
        max-width: none;
    }

    .questionnaire-card h2 {
        grid-area: title;
        margin: 4px 0 0;
        font-size: 18px;
        line-height: 1.15;
    }

    .questionnaire-card p {
        grid-area: body;
        margin: 0;
        font-size: 14px;
        line-height: 1.4;
    }

    .landing-btn {
        grid-area: button;
        max-width: none;
        margin-top: 10px;
        padding: 12px 16px;
    }

    .info-card {
        padding: 18px 16px 14px;
    }

    .comparison-table {
        display: none;
    }

    .footer-content {
        gap: 20px;
    }
}

@media (max-width: 389px) {
    .hero-kicker {
        display: none;
    }

    .questionnaire-card {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title button"
            "body button";
        column-gap: 10px;
        align-items: center;
    }

    .questionnaire-card .card-icon {
        display: none;
    }

    .questionnaire-card h2 {
        font-size: 16px;
    }

    .questionnaire-card p {
        font-size: 12px;
    }

    .landing-btn {
        font-size: 12px;
        width: auto;
        max-width: none;
        margin-top: 0;
        align-self: center;
        justify-self: end;
        padding: 10px 14px;
        white-space: nowrap;
    }

    .btn-label-default {
        display: none;
    }

    .btn-label-narrow {
        display: inline;
    }

    .hero-header p {
        font-size: 12px;
    }
}
