/* Palette (2026-10-06): matched to copenbarger.com/connect-now
   navy #12364d / #0b2b40 · teal #17677c · green #5da700 (hover #4d7c00) · light #eef3f4 · grey #5f6f76 */
:root {
    --cc-navy: #12364d;
    --cc-navy-deep: #0b2b40;
    --cc-teal: #17677c;
    --cc-green: #92c600;
    --cc-green-dark: #4d7c00;
    --cc-green-hover: #7fb000;
    --cc-green-pale: #f1f8e6;
    --cc-light: #eef3f4;
    --cc-light-2: #e3ebed;
    --cc-grey: #5f6f76;
    --cc-serif: 'Source Serif 4', Georgia, serif;
}
body { background: #f3f6f7; }
/* Funnel header: logo plus two trust cues, 72px tall, nothing that leads away from the form */
.cc-header { background: #fff; border-bottom: 1px solid #e3ebed; }
.cc-header-inner { max-width: 1240px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-logo { height: 46px; width: auto; }
.cc-header-cues { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cc-cue { display: inline-flex; align-items: center; gap: 8px; font-family: 'Open Sans', sans-serif; font-size: 13px; color: #4f5f66; text-decoration: none; }
.cc-cue svg { color: var(--cc-teal); }
.cc-cue-phone { font-size: 14px; font-weight: 600; color: var(--cc-navy); }
.cc-cue-phone svg { color: var(--cc-navy); }
.cc-cue-phone:hover { color: var(--cc-teal); }
/* Title block: eyebrow, document name, one line on what happens next */
.cc-title { text-align: left; display: flex; flex-direction: column; gap: 6px; margin: 4px 0 18px; }
.cc-eyebrow { font-family: 'Open Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cc-green-dark); }
.cc-title h1 { margin: 0; font-family: var(--cc-serif); font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--cc-navy); }
.cc-title p { margin: 0; font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 1.5; color: #4f5f66; max-width: 680px; }
.gray-bg { background-color: #fff; padding: 32px 40px 28px; margin-top: 0; z-index: 1; position: relative; border-radius: 20px; box-shadow: 0 10px 34px rgba(18, 54, 77, 0.08);}
.custom-card-light-blue { background-color: #fff; border: 1px solid #d5dfe3; border-left: 5px solid var(--cc-teal); border-radius: 14px; box-shadow: 0 2px 6px rgba(18, 54, 77, 0.06); height: 100%;}
.custom-card-light-blue .card-body { padding: 16px 18px 14px;}
.custom-card-light-blue a { color: var(--cc-teal); font-size: 15px;}
.custom-card-light-blue a:hover { color: var(--cc-navy);}
.custom-card-light-blue h3 {font-weight: 700; font-family: 'Open Sans', sans-serif; font-size: 17px; color: var(--cc-navy); margin: 0px;}
.custom-card-light-blue p {font-family: 'Open Sans', sans-serif; font-size: 14px; color: #3f5058; margin: 0px; line-height: 1.5;}
.custom-card-light-blue .card-body > .row:last-child p:first-child { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cc-teal); background: var(--cc-light); border-radius: 999px; padding: 2px 10px; margin: 6px 0 6px;}
.green-link-btn { color: var(--cc-green-dark); font-weight: bold; font-family: 'Open Sans', sans-serif; font-size: 14px; text-decoration: none; }
.green-link-btn:hover { color: var(--cc-green-dark); font-weight: bold; font-family: 'Open Sans', sans-serif; font-size: 14px; text-decoration: none; }
.link-addperson { display: inline-flex; align-items: center; gap: 8px; font-size: 18px !important; padding: 12px 22px; margin-top: 20px; background: var(--cc-green-pale); border: 2px solid var(--cc-green); border-radius: 28px; transition: all 0.15s ease-in-out;}
.link-addperson:hover { background: var(--cc-green); color: #ffffff !important;}
.link-addperson .fa { font-size: 20px; line-height: 0;}
.text-size-20 { font-size: 20px;}
.custom-title {font-size: 16px; font-weight: 600; color: #000; font-family: 'Open Sans', sans-serif}
.thankstext {font-size: 20px; font-weight: 700; color: #000; font-family: 'Open Sans', sans-serif}
.thank-block { height: 250px; text-align: center; display: flex; align-items: center; justify-content: center;}
.hide {display: none;}
.graycard-box { background-color: #fff; border: 1px solid #d5dfe3; padding: 32px 20px 20px; border-radius: 14px;}
#children-details { padding: 10px 0px;}
.fs-14 { font-size: 16px !important;}
.link-addchild {color: var(--cc-teal); margin-top: 20px; margin-bottom: 10px; text-decoration: none; font-weight: bold; font-family: 'Open Sans', sans-serif; font-size: 18px; display: inline-flex; align-items: center; padding: 12px 22px; background: var(--cc-light); border: 2px solid var(--cc-teal); border-radius: 28px; transition: all 0.15s ease-in-out;}
.link-addchild:hover {color: #ffffff; background: var(--cc-teal);}
.link-addchild:hover img { filter: brightness(0) invert(1);}
.link-addchild i { margin-right: 9px; line-height: 0;}
.link-addchild i img { width: 22px !important; height: auto;}
.graycard-box { position: relative;}
.delete-icon {
    position: absolute;
    right: 15px;
    top: 10px
}






#msform {
    text-align: center;
    position: relative;
    margin-top: 20px
}

#msform fieldset {
    border: 0 none;
    border-radius: 0.5rem;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding-bottom: 20px;
    position: relative
}

.form-card {
    text-align: left
}
.form-card h2 {font-family: var(--cc-serif); color: var(--cc-navy); margin: 0px; font-size: 26px; font-weight: 600; margin-bottom: 10px;}
.form-card p {font-family: 'Open Sans', sans-serif; color: #3f5058; margin: 0px 0 14px; font-size: 15px; line-height: 1.5; font-weight: 400;}
.form-card label { font-weight: 600; font-family: 'Open Sans', sans-serif; color: #1f2d35; font-size: 14px; margin-bottom: 4px;}
.form-card label .small{font-size:14px;}
.form-card .form-select {border: #c9d8de solid 1px; border-radius: 10px; font-family: 'Open Sans', sans-serif; font-size: 16px; height: 48px;}
.form-card label.is-required::after, .required-star { content: " *"; color: #c0392b; font-weight: 700; }
.required-legend { font-family: 'Open Sans', sans-serif; font-size: 14px; color: var(--cc-grey); text-align: left; margin: 0 0 16px; }

#msform fieldset:not(:first-of-type) {
    display: none
}
.select-height { height: 48px;}
.form-check-label {font-weight: normal !important;}


#msform input[type="text"],
#msform input[type="email"],
#msform textarea {
    padding: 0 14px;
    height: 48px;
    border: 1px solid #c9d8de;
    border-radius: 10px;
    margin-bottom: 18px;
    margin-top: 2px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    color: #2C3E50;
    background-color: #fff;
    font-size: 16px;
    letter-spacing: 0
}

#msform input:focus,
#msform textarea:focus {
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border: 1px solid var(--cc-teal);
    outline-width: 0
}

#msform .action-button {
    width: auto;
    min-width: 160px;
    height: 52px;
    background: var(--cc-green);
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--cc-navy-deep);
    border: 0 none;
    border-radius: 999px;
    cursor: pointer;
    padding: 0 30px;
    margin: 10px 0 10px 5px;
    float: right;
}

#msform .action-button:hover,
#msform .action-button:focus {
    background-color: var(--cc-green-dark)
}

#msform .action-button-previous {
    width: auto;
    background: #fff;
    font-weight: bold;
    color: var(--cc-navy);
    border: 2px solid var(--cc-navy);
    border-radius: 0px;
    cursor: pointer;
    padding: 10px 25px;
    margin: 10px 5px 10px 0px;
    float: left
}

#msform .action-button-previous:hover,
#msform .action-button-previous:focus {
    background-color: var(--cc-navy);
    color: #fff
}

.card {
    z-index: 0;
    border: none;
    position: relative
}

.fs-title {
    font-size: 25px;
    color: var(--cc-navy);
    margin-bottom: 15px;
    font-weight: normal;
    text-align: left
}

.purple-text {
    color: var(--cc-navy);
    font-weight: normal
}

.steps {
    font-size: 25px;
    color: gray;
    margin-bottom: 10px;
    font-weight: normal;
    text-align: right
}

.fieldlabels {
    color: gray;
    text-align: left
}

/* Steps are numbered by a CSS counter and share the width equally, so adding or removing
   a step (the Certify step was added 2026-10-06) needs no per-step rules. */
#progressbar {
    margin-bottom: 40px;
    overflow: hidden;
    padding: 0px;
    width: 72%;
    color: lightgrey;
    display: flex;
    counter-reset: step;
}

#progressbar .active {
    color: var(--cc-navy)
}

#progressbar li {
    list-style-type: none;
    font-size: 15px;
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    font-weight: 400
}

#progressbar li:before {
    counter-increment: step;
    content: counter(step);
    width: 45px;
    height: 45px;
    line-height: 38px;
    display: block;
    border: #BCBCBC solid 3px;
    color: #000;
    background: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    font-size: 16px;
    border-radius: 50%;
    padding: 2px
}
/* Phase B: step titles under each number.
   Constrained to the width of the step circle and centred under it, so a long label
   wraps onto a second line instead of running into the next step's title. */
#progressbar li .step-title {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding-right: 8px;
    font-size: 10px;
    line-height: 1.2;
    color: #6c757d;
    text-align: center;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

#progressbar li.active .step-title {
    color: var(--cc-teal);
    font-weight: 700;
}

/* Completed steps are clickable; the current and future ones are not */
#progressbar li.is-clickable {
    cursor: pointer;
}

#progressbar li.is-clickable:hover .step-title {
    color: var(--cc-teal);
    text-decoration: underline;
}

#progressbar li.is-clickable:hover:before {
    border-color: var(--cc-teal);
}

#progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background:url(../images/dot-line.png) repeat-x;
    position: absolute;
    left: 0;
    top: 25px;
    z-index: -1
}

#progressbar li.active:before{
    background: #fff;
    border: 3px solid var(--cc-green);
    color: var(--cc-navy);
}

.progress {
    height: 20px
}

.progress-bar {
    background-color: var(--cc-navy)
}

.fit-image {
    width: 100%;
    object-fit: cover
}
.form-card .form-select { margin-bottom: 25px;}
.custom-card-light-blue p { font-size: 14px; color: #000000;}
@media screen and (max-width: 1399.5px) {
    .navbar-brand img {
        width: 220px;
    }
    .navbar-light .navbar-nav .nav-link,.btn-success { font-size: 14px;}
  }


@media screen and (max-width: 1199.5px) {
    #progressbar{width: 100%;}
    .navbar-expand-lg .navbar-nav .nav-link {padding-right: 0.5rem;
        padding-left: 0.5rem;}
        .navbar-brand img {
            width: 185px;
        }
        .navbar-light .navbar-nav .nav-link, .btn-success {
            font-size: 12px;
        }
  }
  @media screen and (max-width: 992.5px) {
    .navbar-brand img {
        width: 225px;
    } 
    .navbar-light .navbar-nav .nav-link, .btn-success {
        font-size: 16px;
    }
    .banner h1 { font-size: 60px;}
    .top-section .top-contact-no .top-contact-white, .top-section .top-contact-no .top-contact-yellow{ font-size: 12px;}
    .gray-bg {    padding: 10px 60px;}
}
@media screen and (max-width: 767.5px) {#progressbar li:before {font-size: 12px;
    width: 30px;
    height: 30px; border: #BCBCBC solid 1px;
    line-height: 24px;
    

}
.form-card .customform label { font-size: 12px;}
#progressbar li.active:before {border: 1px solid var(--cc-green);}
#progressbar li:after {    top: 16px;}
.gray-bg {
    padding: 10px 30px;
}
}
@media screen and (max-width: 575.5px) {
    .navbar-light .navbar-nav .nav-link, .btn-success {
        font-size: 13px;
    }
    .thankstext { font-size: 16px;}
    .form-card .form-select {padding: 3px 10px 3px 10px; font-size: 14px; margin-bottom: 10px;}
    .select-height { height: auto;}
.site-logo { width: 200px; }
.gray-bg {
    padding: 10px 15px;
}
.form-card h2 { font-size: 22px;}
.form-card p { font-size: 14px;}
#msform input[type="text"], #msform textarea{padding: 6px 10px 6px 10px; margin-bottom: 10px; font-size: 14px;}
.form-card label {
    font-size: 12px;
}
.gray-bg { margin-top: 0px; border-radius: 0;}
.banner h1 {
    font-size: 30px;
}
.banner {height: 150px;}
}

@media screen and (max-width: 400.5px) {
    #progressbar li:before { width: 25px; height: 25px; line-height: 20px;}
    #progressbar li:after {
        top: 13px;
    }

}

/* ---- Consent gates (2026-10-06): required-reading pop-up, certification step, footer ---- */
body.consent-pending > :not(.modal):not(.modal-backdrop) {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}
#consentModal .modal-content { border-radius: 16px; }
#consentModal .modal-title { font-family: var(--cc-serif); font-size: 26px; font-weight: 600; color: var(--cc-navy); }
#consentModal .modal-body { font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 1.6; text-align: left; color: #222; }
#consentModal .modal-body p { margin-bottom: 14px; }
#consentModal .modal-body ul { padding-left: 22px; }
#consentModal .modal-body li { margin-bottom: 8px; }
#consentModal .modal-footer { justify-content: center; }
#consentModal #consent-accept { margin: 0; width: auto; padding: 10px 32px; background: var(--cc-green); color: #fff; border: 0 none; font-family: 'Open Sans', sans-serif; font-weight: bold; font-size: 16px; cursor: pointer; }
#consentModal #consent-accept:hover, #consentModal #consent-accept:focus { background: var(--cc-green-dark); outline: none; }

.consent-certify .form-check { text-align: left; margin-bottom: 22px; padding-left: 2.4em; }
.consent-certify .form-check-input { width: 1.4em; height: 1.4em; margin-left: -2.4em; margin-top: 0.15em; cursor: pointer; }
.consent-certify .form-check-label { font-family: 'Open Sans', sans-serif; font-size: 16px; font-weight: 400; color: #000; line-height: 1.55; cursor: pointer; }
.form-card .consent-error { color: #b42318; font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 16px; margin: 0 0 10px; }

.consent-reminder { font-family: 'Open Sans', sans-serif; font-size: 15px; color: #333; margin: 28px auto 0; padding: 14px 16px 0; border-top: 1px solid #cfcfcf; }

/* ---- Inner components (2026-10-06, second pass) ---- */
/* The representative / competency / executor dropdowns are built in JavaScript without the
   Bootstrap classes, so they rendered as bare native selects. */
#msform select.alternate_persons, #msform select.js-spouse-role, #msform select.competency_determinor, #msform select.executor_determinor, #msform select.form-control {
    display: block; width: 100%; max-width: 440px; height: 49px; padding: 8px 14px; margin: 6px 0 16px;
    border: 1px solid #c9d3d7; border-radius: 10px; background: #fff; color: #2C3E50;
    font-family: 'Open Sans', sans-serif; font-size: 17px;
}
#msform select:focus { border-color: var(--cc-teal); outline: none; box-shadow: 0 0 0 3px rgba(23, 103, 124, 0.15); }
.form-card h2 u { text-decoration: none; }
#msform a:not(.action-button):not(.link-addchild):not(.link-addperson) { color: var(--cc-teal); }
#msform a:not(.action-button):not(.link-addchild):not(.link-addperson):hover { color: var(--cc-navy); }
#msform #toggleAlternateLink, #msform #toggleCompetencyLink, #msform #toggleExecutorLink { display: inline-block; margin-top: 4px; font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 15px; text-decoration: none; }
.success-title { font-family: var(--cc-serif); color: var(--cc-navy); font-size: 36px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.success-title::before { content: "\2713"; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cc-green); color: #fff; font-family: 'Open Sans', sans-serif; font-size: 26px; font-weight: 700; }
.success-text { font-family: 'Open Sans', sans-serif; font-size: 18px; font-weight: 400; color: #222; max-width: 560px; margin: 0 auto; line-height: 1.5; }
@media screen and (max-width: 575.5px) {
    .success-title { font-size: 26px; }
    .success-text { font-size: 15px; }
    .custom-card-light-blue { margin-bottom: 12px; }
    .graycard-box { padding: 30px 14px 14px; }
    #msform .action-button, #msform .action-button-previous { padding: 10px 20px; width: auto; }
    #progressbar li .step-title { font-size: 8px; padding-right: 2px; }
    .form-card label { font-size: 14px; }
    .consent-reminder { font-size: 13px; }
}

/* ---- Funnel layout (2026-10-06, approved mockup) ---- */
.cc-main { text-align: left; }
#msform .action-button:hover, #msform .action-button:focus { background: var(--cc-green-hover); color: var(--cc-navy-deep); }
#msform .action-button-previous { height: 52px; padding: 0 26px; margin: 10px 5px 10px 0; font-size: 15px; }
.link-addperson:hover { color: var(--cc-navy-deep) !important; }
#consentModal #consent-accept { color: var(--cc-navy-deep); }
#consentModal #consent-accept:hover, #consentModal #consent-accept:focus { background: var(--cc-green-hover); }
/* Progress: "Step N of M · Title", a slim bar, and the steps as quiet chips (past steps clickable) */
.cc-progress { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; text-align: left; }
.cc-progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cc-progress-label { font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 700; color: var(--cc-navy); }
.cc-progress-label .cc-progress-title { font-weight: 400; color: #4f5f66; }
.cc-progress-note { font-family: 'Open Sans', sans-serif; font-size: 13px; color: var(--cc-grey); }
.cc-progress-track { height: 6px; border-radius: 999px; background: #dfe7ea; overflow: hidden; }
.cc-progress-fill { height: 100%; width: 0; border-radius: 999px; background: var(--cc-green); transition: width 0.25s ease; }
#cc-progress #progressbar { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin: 2px 0 0; padding: 0; overflow: visible; counter-reset: none; }
#cc-progress #progressbar li { flex: 0 0 auto; width: auto; list-style: none; position: static; padding: 4px 11px; border-radius: 999px; border: 1px solid transparent; font-family: 'Open Sans', sans-serif; font-size: 12px; color: var(--cc-grey); }
#cc-progress #progressbar li:before, #cc-progress #progressbar li:after { content: none; display: none; }
#cc-progress #progressbar li .step-title { display: inline; width: auto; margin: 0; padding: 0; font-size: 12px; line-height: 1.4; color: inherit; text-align: left; }
#cc-progress #progressbar li.active { color: var(--cc-navy); font-weight: 700; background: #fff; border-color: #c9d8de; }
/* every passed step also carries .active (and .is-clickable); only the current one is a chip */
#cc-progress #progressbar li.active.is-clickable { font-weight: 600; background: transparent; border-color: transparent; color: var(--cc-navy); }
#cc-progress.is-complete #progressbar li { font-weight: 400; background: transparent; border-color: transparent; color: var(--cc-grey); }
#cc-progress #progressbar li.is-clickable { cursor: pointer; }
#cc-progress #progressbar li.is-clickable:hover { color: var(--cc-navy); background: #fff; border-color: #c9d8de; }
/* Trust row under the card, then a one-line footer */
.cc-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; text-align: left; }
.cc-trust-item { display: flex; align-items: flex-start; gap: 10px; font-family: 'Open Sans', sans-serif; font-size: 13px; line-height: 1.45; color: #3f5058; }
.cc-trust-item svg { flex-shrink: 0; color: var(--cc-teal); margin-top: 1px; }
.cc-trust-item strong { display: block; color: var(--cc-navy); }
.cc-footer { padding: 18px 24px 26px; text-align: center; font-family: 'Open Sans', sans-serif; font-size: 12px; color: #6b7b82; }
.consent-reminder { margin-top: 18px; padding-top: 14px; }
.thank-block { height: auto; padding: 30px 0 20px; }
@media screen and (max-width: 991.5px) {
    .cc-trust { grid-template-columns: 1fr; }
}
@media screen and (max-width: 575.5px) {
    .cc-header-inner { padding: 10px 16px; justify-content: center; gap: 8px; }
    .cc-header-cues { gap: 14px; justify-content: center; }
    .cc-cue:not(.cc-cue-phone) { display: none; }
    .site-logo { height: 38px; width: auto; }
    .cc-title h1 { font-size: 26px; }
    .cc-title p { font-size: 14px; }
    .cc-progress-note { display: none; }
    .gray-bg { padding: 22px 16px 20px; border-radius: 16px; }
    #msform .action-button, #msform .action-button-previous { height: 48px; min-width: 0; padding: 0 22px; }
}
/* The card's own content starts at the top: the old banner layout padded the form container */
.gray-bg #primary-form-container { padding-top: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
#msform { margin-top: 0; }
#msform .form-card > .row { margin-bottom: 12px !important; padding-bottom: 0 !important; }
/* Save Person / Save Child inside an entry block: a secondary pill, not a bare default button */
#msform .js-save-person, #msform .link-saveperson, #msform .js-save-child {
    display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; margin-top: 4px;
    background: #fff; color: var(--cc-teal); border: 2px solid var(--cc-teal); border-radius: 999px;
    font-family: 'Open Sans', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
}
#msform .js-save-person:hover, #msform .link-saveperson:hover, #msform .js-save-child:hover { background: var(--cc-teal); color: #fff; }

/* ---- Sign-in and notice pages (2026-10-06): same shell as the document pages ---- */
.cc-auth-body { background: #f3f6f7; margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.cc-auth { flex: 1 0 auto; display: flex; justify-content: center; align-items: flex-start; padding: 48px 16px 40px; }
.cc-auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; box-shadow: 0 10px 34px rgba(18, 54, 77, 0.08); padding: 36px 36px 30px; box-sizing: border-box; text-align: left; }
.cc-auth-card h1 { margin: 6px 0 8px; font-family: var(--cc-serif); font-size: 28px; font-weight: 600; color: var(--cc-navy); }
.cc-auth-lead { font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 1.55; color: #4f5f66; margin: 0 0 18px; }
.cc-field { margin-bottom: 16px; }
.cc-field label { display: block; font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 600; color: #1f2d35; margin-bottom: 6px; }
.cc-field input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #c9d8de; border-radius: 10px; font-family: 'Open Sans', sans-serif; font-size: 16px; color: #1f2d35; background: #fff; box-sizing: border-box; }
.cc-field input:focus { border-color: var(--cc-teal); outline: none; box-shadow: 0 0 0 3px rgba(23, 103, 124, 0.15); }
.cc-field-error { margin: 6px 0 0; font-family: 'Open Sans', sans-serif; font-size: 13px; font-weight: 700; color: #b42318; }
.cc-btn-primary { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin-top: 6px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--cc-green); color: var(--cc-navy-deep); font-family: 'Open Sans', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.cc-btn-primary:hover, .cc-btn-primary:focus { background: var(--cc-green-hover); color: var(--cc-navy-deep); }
.cc-auth-help { margin: 18px 0 0; font-family: 'Open Sans', sans-serif; font-size: 13px; line-height: 1.5; color: var(--cc-grey); }
.cc-auth-card--notice { max-width: 520px; text-align: center; }
.cc-auth-card--notice .cc-btn-primary { width: auto; margin-top: 6px; }
.cc-notice-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--cc-light); color: var(--cc-teal); display: flex; align-items: center; justify-content: center; }
@media screen and (max-width: 575.5px) {
    .cc-auth { padding: 24px 12px 32px; }
    .cc-auth-card { padding: 26px 20px 22px; border-radius: 16px; }
}

/* ---- Staff portal (2026-10-06): shell, sidebar with visible labels, cards, tables, forms ---- */
.pt-body { background: #f3f6f7; margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: 'Open Sans', sans-serif; color: #1f2d35; }
.pt-logo-link { display: inline-flex; }
.pt-user { color: #4f5f66; }
.pt-shell { flex: 1 0 auto; display: flex; gap: 28px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 32px 40px; box-sizing: border-box; }
.pt-side { flex: 0 0 232px; display: flex; flex-direction: column; gap: 18px; }
.pt-nav { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 6px 24px rgba(18, 54, 77, 0.06); }
.pt-nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #3f5058; text-decoration: none; }
.pt-nav-link svg { flex-shrink: 0; color: var(--cc-teal); }
.pt-nav-link:hover { background: var(--cc-light); color: var(--cc-navy); text-decoration: none; }
.pt-nav-link.is-active { background: var(--cc-navy); color: #fff; }
.pt-nav-link.is-active svg { color: var(--cc-green); }
.pt-side-foot { padding: 0 14px; font-size: 13px; color: var(--cc-grey); }
.pt-side-foot-name { font-weight: 600; color: var(--cc-navy); word-break: break-word; }
.pt-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pt-page-head { display: flex; flex-direction: column; gap: 6px; }
.pt-page-head h1 { margin: 0; font-family: var(--cc-serif); font-size: 32px; font-weight: 700; line-height: 1.15; color: var(--cc-navy); }
.pt-intro { margin: 0; font-size: 15px; line-height: 1.5; color: #4f5f66; max-width: 720px; }
.pt-flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; background: var(--cc-light); color: var(--cc-navy); border: 1px solid #d5dfe3; }
.pt-flash--success { background: var(--cc-green-pale); border-color: #cfe5a8; color: #2f5200; }
.pt-flash--warning { background: #fff6e0; border-color: #f2dba0; color: #6b4b00; }
.pt-flash--danger { background: #fdecec; border-color: #f2c4c4; color: #8a1c1c; }
.pt-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 34px rgba(18, 54, 77, 0.08); padding: 24px 28px 26px; box-sizing: border-box; }
.pt-card--narrow { max-width: 760px; }
.pt-card-title { margin: 0 0 6px; font-family: var(--cc-serif); font-size: 22px; font-weight: 600; color: var(--cc-navy); }
.pt-help { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #4f5f66; }
.pt-help a, .pt-card a:not(.pt-btn):not(.pt-btn-small) { color: var(--cc-teal); }
.pt-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.pt-card-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pt-search { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; max-width: 420px; height: 44px; padding: 0 14px; border: 1px solid #c9d8de; border-radius: 10px; background: #fff; color: var(--cc-grey); }
.pt-search:focus-within { border-color: var(--cc-teal); box-shadow: 0 0 0 3px rgba(23, 103, 124, 0.15); }
.pt-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; font-family: 'Open Sans', sans-serif; font-size: 15px; color: #1f2d35; background: transparent; }
.pt-count { font-size: 13px; color: var(--cc-grey); }
.pt-table-wrap { overflow-x: auto; position: relative; -webkit-overflow-scrolling: touch; } /* positioned so the screen-reader-only headings inside stay clipped */
.pt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cc-grey); padding: 10px 12px; border-bottom: 1px solid #e3ebed; white-space: nowrap; }
.pt-table td { padding: 13px 12px; border-bottom: 1px solid #eef3f4; vertical-align: middle; color: #1f2d35; }
.pt-table tbody tr:hover td { background: #f8fbfb; }
.pt-th-action, .pt-td-action { text-align: right; }
.pt-nowrap { white-space: nowrap; }
.pt-muted { color: var(--cc-grey); }
.pt-empty { padding: 22px 12px; text-align: center; color: var(--cc-grey); font-size: 14px; margin: 0; }
.pt-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--cc-light); color: #3f5058; white-space: nowrap; }
.pt-badge--warn { background: #fff6e0; color: #6b4b00; }
.pt-badge--ok { background: var(--cc-green-pale); color: #2f5200; }
.pt-certified { color: #2f5200; font-weight: 600; }
.pt-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--cc-green); color: var(--cc-navy-deep); font-family: 'Open Sans', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.pt-btn:hover, .pt-btn:focus { background: var(--cc-green-hover); color: var(--cc-navy-deep); }
.pt-btn:disabled { opacity: 0.6; cursor: default; }
.pt-btn--secondary { background: #fff; color: var(--cc-navy); border: 2px solid var(--cc-navy); }
.pt-btn--secondary:hover, .pt-btn--secondary:focus { background: var(--cc-navy); color: #fff; }
.pt-btn-small { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--cc-navy); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.pt-btn-small:hover, .pt-btn-small:focus { background: var(--cc-teal); color: #fff; text-decoration: none; }
.pt-btn-small--quiet { background: #fff; color: var(--cc-navy); border: 1.5px solid #c9d8de; }
.pt-btn-small--quiet:hover, .pt-btn-small--quiet:focus { background: var(--cc-light); color: var(--cc-navy); border-color: var(--cc-navy); }
.pt-form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.pt-form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.pt-form-field--grow { flex: 1 1 220px; }
.pt-form-field--action { justify-content: flex-end; }
.pt-form-field label { font-size: 14px; font-weight: 600; color: #1f2d35; }
.pt-form-field input, .pt-select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #c9d8de; border-radius: 10px; font-family: 'Open Sans', sans-serif; font-size: 15px; color: #1f2d35; background: #fff; box-sizing: border-box; }
.pt-form-field input:focus, .pt-select:focus { border-color: var(--cc-teal); outline: none; box-shadow: 0 0 0 3px rgba(23, 103, 124, 0.15); }
.pt-result { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--cc-green-pale); border: 1px solid #cfe5a8; }
.pt-result-head { font-size: 14px; color: #2f5200; margin-bottom: 10px; }
.pt-result-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pt-result-url { flex: 1 1 320px; height: 44px; padding: 0 12px; border: 1px solid #cfe5a8; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #1f2d35; background: #fff; box-sizing: border-box; }
.pt-result .pt-help { margin: 10px 0 0; }
@media screen and (max-width: 991.5px) {
    .pt-shell { flex-direction: column; gap: 18px; padding: 20px 16px 32px; }
    .pt-side { flex: 0 0 auto; gap: 8px; }
    .pt-nav { flex-direction: row; padding: 6px; }
    .pt-nav-link { flex: 1 1 0; min-width: 0; justify-content: center; padding: 10px 6px; font-size: 13px; gap: 8px; }
    .pt-nav-link svg { width: 18px; height: 18px; }
    .pt-side-foot { display: none; }
    .pt-grid-2 { grid-template-columns: 1fr; }
    .pt-card { padding: 20px 18px 22px; border-radius: 16px; }
    .pt-page-head h1 { font-size: 26px; }
}
@media screen and (max-width: 575.5px) {
    .pt-user { display: none; }
    .pt-card-toolbar { flex-direction: column; align-items: stretch; }
    .pt-search { max-width: none; flex: 0 0 auto; }
}

/* ---- Team feedback round (2026-10-27) ---- */
/* Field messages: they used to be placed inside the input and never showed. Large, red and
   always visible under the field; jQuery Validate hides them inline when the field is fixed. */
#msform .invalid-feedback {
    display: block; margin: 4px 0 14px; color: #b42318;
    font-family: 'Open Sans', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.4;
}
#msform .invalid-feedback::before { content: "\26A0\FE0E  "; }
#msform .form-control.is-invalid, #msform select.is-invalid {
    border: 2px solid #b42318 !important; background-color: #fff5f4;
}
/* One message at the top of the step whenever Continue is refused. */
.step-error-banner {
    margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; border: 2px solid #b42318; background: #fff5f4;
    color: #b42318; font-family: 'Open Sans', sans-serif; font-size: 17px; font-weight: 700;
}
.step-error-banner::before { content: "\26A0\FE0E  "; }

/* Save Person is the main action while a person is being entered (Add Person is hidden then). */
#msform .js-save-person, #msform .link-saveperson {
    height: 50px; padding: 0 30px; margin-top: 12px; background: var(--cc-green); color: var(--cc-navy-deep);
    border: 2px solid var(--cc-green); font-size: 17px;
}
#msform .js-save-person:hover, #msform .link-saveperson:hover { background: var(--cc-green-hover); border-color: var(--cc-green-hover); color: var(--cc-navy-deep); }

.js-entity-toggle { margin-bottom: 14px; }
.card-badge {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fdf0e6; color: #8a4b0f;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: none; vertical-align: middle;
}
.cc-help-note { font-family: 'Open Sans', sans-serif; font-size: 14px; color: var(--cc-grey); margin: 6px 0 0; }
.cc-note {
    margin: 14px 0 6px; padding: 12px 16px; border-radius: 12px; background: var(--cc-light); border-left: 4px solid var(--cc-teal);
    font-family: 'Open Sans', sans-serif; font-size: 15px; color: #1f2d35; line-height: 1.5;
}
.future-guardian-q { margin: 6px 0 18px; padding: 16px 18px; border-radius: 12px; background: var(--cc-light); }
.future-guardian-q label.d-block { font-weight: 600; color: var(--cc-navy); }

/* Beneficiaries step */
.beneficiary-list { list-style: none; padding: 0; margin: 10px 0 16px; }
.beneficiary-list li {
    padding: 12px 16px; margin-bottom: 8px; border: 1px solid #d5dfe3; border-left: 5px solid var(--cc-teal); border-radius: 12px;
    font-family: 'Open Sans', sans-serif; font-size: 16px; color: var(--cc-navy);
}
.beneficiary-list li span { color: var(--cc-grey); font-size: 14px; margin-left: 6px; }
.beneficiary-note {
    margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; background: var(--cc-green-pale); border: 1px solid #cfe5a8;
    font-family: 'Open Sans', sans-serif; font-size: 16px; color: #1f2d35; line-height: 1.5;
}
.ack-btn {
    display: inline-flex; align-items: center; height: 50px; padding: 0 30px; margin-bottom: 10px; border-radius: 999px;
    border: 2px solid var(--cc-navy); background: #fff; color: var(--cc-navy);
    font-family: 'Open Sans', sans-serif; font-size: 17px; font-weight: 700; cursor: pointer;
}
.ack-btn:hover { background: var(--cc-navy); color: #fff; }
.ack-btn.is-acknowledged, .ack-btn.is-acknowledged:hover { background: var(--cc-green); border-color: var(--cc-green); color: var(--cc-navy-deep); }
#msform select.beneficiary_select {
    display: block; width: 100%; max-width: 440px; height: 49px; padding: 8px 14px; margin: 6px 0 6px;
    border: 1px solid #c9d3d7; border-radius: 10px; background: #fff; color: #2C3E50; font-family: 'Open Sans', sans-serif; font-size: 17px;
}
.beneficiary-row label { min-width: 120px; }
@media screen and (max-width: 575.5px) {
    .beneficiary-row .d-flex, #spouse_amount_percentage .d-flex, #competency_determinors .d-flex, #exectors_master .d-flex { flex-wrap: wrap; }
    .step-error-banner { font-size: 15px; }
}

/* Spouse's own choices and company note (2026-10-28) */
.spouse-choices { margin-top: 26px; padding-top: 18px; border-top: 1px solid #d5dfe3; }
.spouse-differ { display: flex; align-items: center; gap: 10px; font-family: 'Open Sans', sans-serif; font-size: 17px; font-weight: 600; color: var(--cc-navy); cursor: pointer; }
.spouse-differ input { width: 20px; height: 20px; accent-color: var(--cc-teal); }
.spouse-choices-title { margin: 18px 0 12px; font-family: 'Open Sans', sans-serif; font-size: 19px; font-weight: 700; color: var(--cc-navy); }
.spouse-choices .js-spouse-choices-box .row label { min-width: 120px; }
.company-note { margin-top: 4px; font-size: 14px; }
@media screen and (max-width: 575.5px) {
    .spouse-choices .d-flex { flex-wrap: wrap; }
}

/* Intake form details matched to the standalone visual reference. */
@media (min-width: 768px) {
    #msform .card-column { flex: 0 0 auto; width: 50%; }
}
@media (min-width: 992px) {
    #msform .card-column { width: 25%; }
}
#msform .custom-card-light-blue {
    min-height: 130px; background: #f2f7f9; border: 1px solid #d7e4ea;
    border-radius: 10px; box-shadow: none;
}
#msform .custom-card-light-blue .card-body { padding: 14px 16px; }
#msform .custom-card-light-blue h3 { font-family: var(--cc-serif); font-size: 18px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
#msform .custom-card-light-blue .card-body > .row:first-child { align-items: flex-start; }
#msform .custom-card-light-blue a { font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
#msform .custom-card-light-blue a i { display: none; }
#msform .custom-card-light-blue p,
#msform .custom-card-light-blue .card-body > .row:last-child p:first-child {
    display: block; padding: 0; margin: 2px 0; background: transparent; border-radius: 0;
    color: var(--cc-grey); font-size: 13px; font-weight: 400; letter-spacing: normal; text-transform: none;
}
#msform .card-badge { margin-left: 4px; background: #fff4e0; color: #8a5a00; font-size: 11px; font-weight: 600; letter-spacing: normal; }

#msform .cc-add-child {
    float: right; height: 52px; margin: 10px 10px 10px 0;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 26px;
    border: 0; border-radius: 999px; background: #1f5f99; color: #fff;
    font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
}
#msform .cc-add-child:hover, #msform .cc-add-child:focus { background: #174d7f; color: #fff; }
#msform .cc-add-child.d-none { display: none !important; }
#msform .cc-add-child img { display: none !important; }

.cc-thanks { padding: 30px 10px; text-align: center; }
.cc-thanks-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #eef7dc; color: #4f7d12; font-size: 32px; }
.form-card .cc-thanks h2 { margin: 0 0 8px; font-family: var(--cc-serif); font-size: 32px; }
.form-card .cc-thanks p { margin: 0 0 14px; color: var(--cc-grey); font-size: 16px; }
.cc-thanks-again { padding: 6px 0; border: 0; background: none; color: var(--cc-navy); font: 600 14px 'Open Sans', sans-serif; cursor: pointer; }
.cc-thanks-again:hover, .cc-thanks-again:focus { text-decoration: underline; }

#msform .action-button-previous { border: 1px solid #cdd5da; color: var(--cc-navy); font-weight: 600; font-size: 16px; }
#msform .action-button-previous:hover, #msform .action-button-previous:focus { background: #f4f7f8; color: var(--cc-navy); }
#cc-progress #progressbar li.active.is-clickable { color: var(--cc-teal); font-weight: 400; }
.form-card label { margin-bottom: 7px; }
.form-card .cc-note, .form-card .cc-help-note { padding: 0; border: 0; background: transparent; color: var(--cc-grey); font-size: 13px; }
.spouse-choices { margin-top: 22px; padding-top: 16px; border-top: 1px dashed #d5dfe3; }
.form-card .spouse-differ { font-size: 14px; font-weight: 600; }
.spouse-differ input { flex: 0 0 17px; width: 17px; height: 17px; }
.spouse-choices-title { margin: 14px 0 10px; font-family: var(--cc-serif); font-size: 18px; font-weight: 600; }
@media (max-width: 575.5px) {
    #msform .card-column { width: 100%; }
    #msform .custom-card-light-blue { margin-bottom: 0; min-height: 0; }
    .form-card .cc-thanks h2 { font-size: 28px; }
}
@media (max-width: 575.5px) {
    #msform .cc-add-child { height: 46px; padding: 0 16px; font-size: 14px; margin: 10px 6px 10px 0; }
}
