/* Heritage HCC - Enlarge Header Logo */
.navbar .navbar-brand img {
    max-height: 200px !important;
    width: auto !important;
    height: 100px !important;
}

/* Give logo enough room */
.navbar .navbar-brand {
    height: auto !important;
    padding: 5px 15px !important;
}
/* Hide Hestia theme credit */
footer.footer .copyright {
    display: none !important;
}
/* Heritage HCC Homepage Main Title */
.home .big-title-slider-content .hestia-title,
.home .carousel .hestia-title,
.home .page-header .hestia-title {
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;

    /* Soft elegant glow */
    text-shadow:
        0 0 5px rgba(255,255,255,0.70),
        0 0 12px rgba(255,255,255,0.35),
        2px 3px 6px rgba(0,0,0,0.65) !important;
}
/* Pull the two title lines closer together */
.home .hestia-title {
    line-height: 0.90 !important;
}
/* Heritage HCC Homepage Subtext */
.home .big-title-slider-content .sub-title,
.home .carousel .sub-title,
.home .page-header .sub-title {
    font-style: italic !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
}
/* Heritage HCC - Enlarge Header Logo */
.navbar .navbar-brand img {
    max-height: 200px !important;
    width: auto !important;
    height: 100px !important;
}

/* Give logo enough room */
.navbar .navbar-brand {
    height: auto !important;
    padding: 5px 15px !important;
}
/* Hide Hestia theme credit */
footer.footer .copyright {
    display: none !important;
}
/* Heritage HCC Homepage Main Title */
.home .big-title-slider-content .hestia-title,
.home .carousel .hestia-title,
.home .page-header .hestia-title {
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;

    /* Soft elegant glow */
    text-shadow:
        0 0 5px rgba(255,255,255,0.70),
        0 0 12px rgba(255,255,255,0.35),
        2px 3px 6px rgba(0,0,0,0.65) !important;
}
/* Pull the two title lines closer together */
.home .hestia-title {
    line-height: 0.90 !important;
}
/* Heritage HCC Homepage Subtext */
.home .big-title-slider-content .sub-title,
.home .carousel .sub-title,
.home .page-header .sub-title {
    font-style: italic !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
}
/* HHCC Form 22 — consolidated CSS. Replace old Form 22 CSS entirely. */
#fluentform_22 { --hhcc-blue:#1d5a92; --hhcc-gap:14px; }
#fluentform_22 .ff-el-group {box-sizing:border-box;}
/* Preserve field-defined widths on desktop; do not globally stack fields. */
@media(min-width:701px){
 #fluentform_22 .ff-el-group.hhcc-third{float:left;width:33.333333%;padding-right:var(--hhcc-gap);}
 #fluentform_22 .ff-el-group.hhcc-half{float:left;width:50%;padding-right:var(--hhcc-gap);}
 #fluentform_22 .ff-el-group.hhcc-row-start{clear:left;}
 #fluentform_22 .ff-el-group.hhcc-contact-name{float:left;width:42%;padding-right:14px;}
 #fluentform_22 .ff-el-group.hhcc-contact-relation{float:left;width:28%;padding-right:14px;}
 #fluentform_22 .ff-el-group.hhcc-contact-phone{float:left;width:30%;padding-right:14px;}
 #fluentform_22 .ff-el-group.hhcc-contact-street,
 #fluentform_22 .ff-el-group.hhcc-contact-city,
 #fluentform_22 .ff-el-group.hhcc-contact-state,
 #fluentform_22 .ff-el-group.hhcc-contact-zip{float:left;width:50%;padding-right:14px;}
}
#fluentform_22 .ff-el-group.hhcc-full,
#fluentform_22 .ff-el-group.hhcc-section,
#fluentform_22 .ff-el-group.hhcc-policy-text,
#fluentform_22 .ff-el-group.hhcc-signature-wide{float:none;width:100%;clear:both;}
/* Box inputs; don't modify radio/checkbox, buttons or signature canvases. */
#fluentform_22 input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
#fluentform_22 select,#fluentform_22 textarea{
 box-sizing:border-box;border:1px solid #aebdce;border-radius:5px;
 background:#fff;padding:9px 11px;min-height:42px;width:100%;box-shadow:none;
}
#fluentform_22 input:focus,#fluentform_22 select:focus,#fluentform_22 textarea:focus{border-color:var(--hhcc-blue);outline:2px solid rgba(29,90,146,.12);}
#fluentform_22 .hhcc-phone-no-icon .ff-el-input--content > i,
#fluentform_22 .hhcc-phone .ff-el-input--content > i,
#fluentform_22 .hhcc-reference-phone .ff-el-input--content > i,
#fluentform_22 .hhcc-phone-no-icon .input-group-text,
#fluentform_22 .hhcc-reference-phone .input-group-text{display:none;}
#fluentform_22 .hhcc-section h1,#fluentform_22 .hhcc-section h2,
#fluentform_22 .hhcc-section h3,#fluentform_22 .hhcc-section h4,
#fluentform_22 .hhcc-section strong{color:var(--hhcc-blue);}
#fluentform_22 input[type="radio"],#fluentform_22 input[type="checkbox"]{accent-color:var(--hhcc-blue);}
#fluentform_22 .ff-btn-submit{background:var(--hhcc-blue);border-color:var(--hhcc-blue);color:white;}
/* Office Use Only — compact, blue, squared edges, 3 columns; borders at outer edges. */
#fluentform_22 .ff-el-group.hhcc-office-only{background:#fff7f7;padding:7px 10px 9px;margin-bottom:0;border-radius:0;min-height:0;}
#fluentform_22 .ff-el-group.hhcc-office-only.hhcc-section{border:1px solid #b42332;border-bottom:0;padding:10px 12px 3px;}
#fluentform_22 .ff-el-group.hhcc-office-only.hhcc-third{min-height:77px;}
#fluentform_22 .ff-el-group.hhcc-office-only:has([name="hhcc_008"]),
#fluentform_22 .ff-el-group.hhcc-office-only:has([name="hhcc_024"]){border-left:1px solid #b42332;}
#fluentform_22 .ff-el-group.hhcc-office-only:has([name="hhcc_023"]),
#fluentform_22 .ff-el-group.hhcc-office-only:has([name="hhcc_026"]){border-right:1px solid #b42332;}
#fluentform_22 .ff-el-group.hhcc-office-only:has([name="hhcc_024"]),
#fluentform_22 .ff-el-group.hhcc-office-only:has([name="hhcc_025"]),
#fluentform_22 .ff-el-group.hhcc-office-only:has([name="hhcc_026"]){border-bottom:1px solid #b42332;}
#fluentform_22 .hhcc-office-only input,#fluentform_22 .hhcc-office-only select{min-height:35px;padding:6px 9px;}
/* Question/answer rows: keep conditional visibility under Fluent Forms control. */
#fluentform_22 .ff-el-group.hhcc-admissions-question,
#fluentform_22 .ff-el-group.hhcc-inline-radio,
#fluentform_22 .ff-el-group.hhcc-qa-row,
#fluentform_22 .ff-el-group:has([name="hhcc_042"]),
#fluentform_22 .ff-el-group:has([name="hhcc_043"]),
#fluentform_22 .ff-el-group:has([name="hhcc_044"]){float:none;clear:both;width:100%;border-bottom:0;padding:9px 0;}
@media(min-width:701px){
 #fluentform_22 .ff-el-group.hhcc-admissions-question:not([style*="display: none"]),
 #fluentform_22 .ff-el-group.hhcc-inline-radio:not([style*="display: none"]),
 #fluentform_22 .ff-el-group.hhcc-qa-row:not([style*="display: none"]),
 #fluentform_22 .ff-el-group:has([name="hhcc_042"]):not([style*="display: none"]),
 #fluentform_22 .ff-el-group:has([name="hhcc_043"]):not([style*="display: none"]),
 #fluentform_22 .ff-el-group:has([name="hhcc_044"]):not([style*="display: none"]){display:flex;align-items:center;gap:16px;}
 #fluentform_22 .hhcc-admissions-question > .ff-el-input--label,
 #fluentform_22 .hhcc-inline-radio > .ff-el-input--label,
 #fluentform_22 .hhcc-qa-row > .ff-el-input--label,
 #fluentform_22 .ff-el-group:has([name="hhcc_042"]) > .ff-el-input--label,
 #fluentform_22 .ff-el-group:has([name="hhcc_043"]) > .ff-el-input--label,
 #fluentform_22 .ff-el-group:has([name="hhcc_044"]) > .ff-el-input--label{flex:1 1 auto;min-width:0;margin:0;}
 #fluentform_22 .hhcc-admissions-question > .ff-el-input--content,
 #fluentform_22 .hhcc-inline-radio > .ff-el-input--content,
 #fluentform_22 .hhcc-qa-row > .ff-el-input--content,
 #fluentform_22 .ff-el-group:has([name="hhcc_042"]) > .ff-el-input--content,
 #fluentform_22 .ff-el-group:has([name="hhcc_043"]) > .ff-el-input--content,
 #fluentform_22 .ff-el-group:has([name="hhcc_044"]) > .ff-el-input--content{flex:0 0 170px;min-width:170px;}
}
#fluentform_22 .hhcc-admissions-question .ff-el-form-check,
#fluentform_22 .hhcc-inline-radio .ff-el-form-check,
#fluentform_22 .hhcc-qa-row .ff-el-form-check{display:inline-flex;align-items:center;margin-right:12px;width:auto;}
/* Education: same vertical input alignment across the three follow-up columns. */
@media(min-width:701px){
 #fluentform_22 .ff-el-group:has([name="hhcc_045"]),
 #fluentform_22 .ff-el-group:has([name="hhcc_046"]),
 #fluentform_22 .ff-el-group:has([name="hhcc_047"]){float:left;width:33.333333%;padding-right:14px;clear:none;}
 #fluentform_22 .ff-el-group:has([name="hhcc_045"]){clear:left;}
 #fluentform_22 .ff-el-group:has([name="hhcc_045"]) > .ff-el-input--label,
 #fluentform_22 .ff-el-group:has([name="hhcc_046"]) > .ff-el-input--label,
 #fluentform_22 .ff-el-group:has([name="hhcc_047"]) > .ff-el-input--label{min-height:112px;}
}
/* Form 22 — all electronic signature fields, including GNPEC */
#fluentform_22 .ff-el-group.hhcc-signature-wide,
#fluentform_22 .ff-el-group:has([name^="hhcc_gnpec_signature_"]) {
 float:none;clear:both;width:100%;max-width:100%;padding-right:0;
}
#fluentform_22 .hhcc-signature-wide .ff-el-input--content,
#fluentform_22 .hhcc-signature-wide canvas,
#fluentform_22 .ff-el-group:has([name^="hhcc_gnpec_signature_"]) canvas {
 width:100%;max-width:100%;
}
/* GRADING TABLES — both original Form 22 tables; protect against Hestia overrides. */
#fluentform_22 .hhcc-grading-policy,
#fluentform_22 .hhcc-grading-policy {
 width:100% !important; max-width:100% !important;
 clear:both !important; margin:12px 0 20px !important;
 padding:0 !important;
}
#fluentform_22 .hhcc-grading-policy > h3:empty,
#fluentform_22 .hhcc-grading-policy > h3:not(:has(*)) {display:none !important;}
#fluentform_22 .hhcc-grading-policy table,
#fluentform_22 .hhcc-grading-policy table {
 width:100% !important; border-collapse:collapse !important;
 border-spacing:0 !important; margin:0 !important;
 table-layout:auto !important; border:1px solid #b8cadb !important;
}
#fluentform_22 .hhcc-grading-policy table thead,
#fluentform_22 .hhcc-grading-policy table thead {display:table-header-group !important;}
#fluentform_22 .hhcc-grading-policy table thead th,
#fluentform_22 .hhcc-grading-policy table thead th {
 background:#1d5a92 !important; background-color:#1d5a92 !important;
 color:#fff !important; font-weight:700 !important; text-align:left !important;
 padding:12px !important; border:1px solid #b8cadb !important;
 vertical-align:middle !important;
}
#fluentform_22 .hhcc-grading-policy table tbody td,
#fluentform_22 .hhcc-grading-policy table tbody td {
 border:1px solid #c9d7e5 !important; padding:12px !important;
 text-align:left !important; color:#203047 !important;
 background:#fff !important; vertical-align:middle !important;
}
#fluentform_22 .hhcc-grading-policy table tbody tr:nth-child(even) td,
#fluentform_22 .hhcc-grading-policy table tbody tr:nth-child(even) td {
 background:#eef5fc !important;
}
#fluentform_22 .hhcc-grading-policy p {margin:12px 0 !important;}
#fluentform_22 .hhcc-grading-policy + .ff-el-group {clear:both;}
@media(max-width:700px){
 #fluentform_22 .ff-el-group.hhcc-third,#fluentform_22 .ff-el-group.hhcc-half,
 #fluentform_22 .ff-el-group.hhcc-contact-name,#fluentform_22 .ff-el-group.hhcc-contact-relation,
 #fluentform_22 .ff-el-group.hhcc-contact-phone,#fluentform_22 .ff-el-group.hhcc-contact-street,
 #fluentform_22 .ff-el-group.hhcc-contact-city,#fluentform_22 .ff-el-group.hhcc-contact-state,
 #fluentform_22 .ff-el-group.hhcc-contact-zip{float:none;width:100%;clear:both;padding-right:0;}
 #fluentform_22 .hhcc-office-only.hhcc-third{border-left:1px solid #b52d36;border-right:1px solid #b52d36;}
 #fluentform_22 .ff-el-group:has([name="hhcc_045"]) > .ff-el-input--label,
 #fluentform_22 .ff-el-group:has([name="hhcc_046"]) > .ff-el-input--label,
 #fluentform_22 .ff-el-group:has([name="hhcc_047"]) > .ff-el-input--label{min-height:0;}
}
