/* --------------------------------------------------------------------------
   Request an Audit — standalone page (compact hero + sticky rail + form)
   -------------------------------------------------------------------------- */

:root {
    /* Site header becomes `position: fixed` after scroll (see style.css `header.show`, z-index 1000). */
    --rea-site-header-sticky-offset: 76px;
    --rea-card-radius: 18px;
    --rea-input-radius: 12px;
}

@media (max-width: 575.98px) {
    :root {
        --rea-site-header-sticky-offset: 68px;
    }
}

/* --- Compact hero --- */
.rea-audit-hero {
    position: relative;
    padding: 0.85rem 0 1.1rem;
    overflow: hidden;
    color: #fff;
}

@media (min-width: 768px) {
    .rea-audit-hero {
        padding: 1rem 0 1.25rem;
    }
}

.rea-audit-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 120% at 85% 0%, rgba(0, 200, 255, 0.12) 0%, transparent 55%),
        linear-gradient(115deg, #00365c 0%, var(--blue-color, #005395) 45%, #0a4f7a 100%);
}

.rea-audit-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40' stroke='%23ffffff' stroke-opacity='0.05' fill='none'/%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.rea-audit-hero .container {
    z-index: 1;
}

.rea-audit-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.65rem;
}

.rea-audit-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.95;
}

.rea-audit-breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rea-audit-breadcrumb__link:hover {
    color: #fff;
    transform: translateX(-1px);
}

.rea-audit-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
}

.rea-audit-breadcrumb__current {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.rea-audit-hero__tag {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    white-space: nowrap;
}

.rea-audit-hero__title {
    font-family: "Archivo", serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.18);
    /* Override global `h1,h2,… { color: var(--heading-text) }` on this page */
    color: #ffffff;
}

.rea-audit-hero__title-accent {
    color: #dff6ff;
    font-weight: 700;
}

.rea-audit-hero__lead {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    max-width: 42rem;
}

@media (min-width: 768px) {
    .rea-audit-hero__lead {
        font-size: 0.875rem;
    }
}

/* --- Page shell --- */
.rea-audit-page {
    background: linear-gradient(180deg, #e9eff7 0%, #f4f7fb 40%, #ffffff 100%);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.rea-audit-page__container {
    margin-top: -0.75rem;
    position: relative;
}

@media (min-width: 992px) {
    .rea-audit-page__container {
        margin-top: -1rem;
    }
}

/* --- Main card --- */
.rea-audit-card.mainWhiteBox {
    --rea-card-pad-x: clamp(0.9rem, 2.8vw, 1.75rem);
    --rea-card-pad-b: clamp(1rem, 2.8vw, 1.75rem);
    background: #ffffff;
    border-radius: var(--rea-card-radius);
    padding: 0 var(--rea-card-pad-x) var(--rea-card-pad-b);
    border: 1px solid rgba(0, 83, 149, 0.08);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 18px 40px -14px rgba(0, 83, 149, 0.12);
    overflow: visible;
}

/* Card intro (static; avoids a second <header> landmark and sticky conflicts with site header) */
.rea-audit-card__intro {
    margin-left: calc(-1 * var(--rea-card-pad-x));
    margin-right: calc(-1 * var(--rea-card-pad-x));
    padding: 0.85rem var(--rea-card-pad-x) 1rem;
    background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--rea-card-radius) var(--rea-card-radius) 0 0;
}

.rea-audit-card__intro-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.rea-audit-card__intro-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(0, 83, 149, 0.1) 0%, rgba(0, 83, 149, 0.04) 100%);
    color: var(--blue-color, #005395);
    font-size: 1.1rem;
}

@media (min-width: 576px) {
    .rea-audit-card__intro-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.2rem;
    }
}

.rea-audit-card__intro-copy {
    min-width: 0;
    flex: 1;
}

.rea-audit-card__title {
    font-family: "Archivo", serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    color: var(--heading-text, #1c1d22);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Beat global `h1,h2,… { color: var(--heading-text) }` for this card title */
.rea-audit-card .rea-audit-card__title {
    color: var(--heading-text, #1c1d22);
    margin-bottom: 0.35rem;
}

.rea-audit-card__subtitle {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--gray-color, #5c5f66);
}

@media (min-width: 576px) {
    .rea-audit-card__subtitle {
        font-size: 0.875rem;
        line-height: 1.55;
    }
}

.rea-audit-card__subtitle-lead {
    display: inline;
    color: var(--heading-text, #1c1d22);
    font-weight: 600;
}

.rea-audit-card__req,
.rea-required-mark {
    color: #c62828;
    font-weight: 700;
}

.rea-audit-page .labelClass .rea-required-mark {
    margin-left: 0.15em;
}

.rea-audit-card__body {
    padding-top: 0.65rem;
}

@media (min-width: 576px) {
    .rea-audit-card__body {
        padding-top: 0.85rem;
    }
}

/* --- Sticky sidebar (desktop) --- */
.rea-audit-aside {
    height: 100%;
}

.rea-audit-aside__sticky {
    position: relative;
}

@media (min-width: 992px) {
    .rea-audit-aside__sticky {
        position: sticky;
        top: var(--rea-site-header-sticky-offset);
        z-index: 100;
    }
}

.rea-audit-aside__title {
    font-family: "Archivo", serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--heading-text, #1c1d22);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.rea-audit-aside__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rea-audit-aside__list li {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--gray-color, #5c5f66);
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 83, 149, 0.1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.rea-audit-aside__icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 83, 149, 0.08);
    color: var(--blue-color, #005395);
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .rea-audit-aside__list li {
        padding: 0.55rem 0.65rem;
    }
}

/* --- Form: section labels --- */
.rea-audit-page h6.text-uppercase.text-muted.small {
    font-size: 0.6875rem !important;
    letter-spacing: 0.14em;
    font-weight: 700 !important;
    color: var(--blue-color, #005395) !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.85rem !important;
    padding-left: 0.65rem;
    border-left: 3px solid var(--blue-color, #005395);
    text-transform: uppercase;
    opacity: 1;
}

.rea-audit-page h6.text-uppercase.text-muted.small:first-of-type {
    margin-top: 0 !important;
}

.rea-audit-page .mainWhiteBox .form-group {
    margin-bottom: 0.9rem;
}

.rea-audit-page .labelClass {
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 0.3rem;
    color: var(--heading-text, #1c1d22);
}

.rea-audit-page .inputClass:not(select) {
    border-radius: var(--rea-input-radius);
    border-color: rgba(15, 23, 42, 0.11);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rea-audit-page .inputClass:not(select):focus {
    border-color: var(--blue-color, #005395);
    box-shadow: 0 0 0 3px rgba(0, 83, 149, 0.1);
    outline: none;
}

.rea-audit-page select.inputClass {
    width: 100%;
    height: 50px;
    min-height: 50px;
    box-shadow: none;
    outline: none;
    border: 1px solid rgba(15, 23, 42, 0.11);
    border-radius: var(--rea-input-radius);
    padding: 5px 40px 5px 14px;
    background-color: var(--white-color);
    font-size: 16px;
    font-family: "Inter", serif;
    font-weight: 400;
    color: var(--heading-text);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23005395' d='M6 8.5L1.5 4h9L6 8.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rea-audit-page select.inputClass:focus {
    border-color: var(--blue-color);
    box-shadow: 0 0 0 3px rgba(0, 83, 149, 0.1);
}

.rea-audit-page .error {
    font-size: 0.75rem;
    margin-top: 0.2rem;
    display: block;
    min-height: 1em;
}

/* --- Upload zones --- */
.rea-audit-page .lyp-brochure-upload {
    position: relative;
}

.rea-audit-page .lyp-brochure-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rea-audit-page .lyp-brochure-upload__zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 108px;
    padding: 16px 14px;
    border: 1px dashed rgba(0, 83, 149, 0.32);
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.rea-audit-page .lyp-brochure-upload__zone:hover {
    border-color: var(--blue-color, #005395);
    background: linear-gradient(145deg, #f0f6fb 0%, #fafdff 100%);
    box-shadow: 0 6px 20px rgba(0, 83, 149, 0.08);
    transform: translateY(-1px);
}

.rea-audit-page .lyp-brochure-upload:focus-within .lyp-brochure-upload__zone {
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(0, 83, 149, 0.12);
}

.rea-audit-page .lyp-brochure-upload__icon {
    font-size: 26px;
    color: var(--blue-color);
    line-height: 1;
    opacity: 0.95;
}

.rea-audit-page .lyp-brochure-upload__title {
    font-size: 14px;
    font-weight: 600;
    font-family: "Inter-SemiBold", "Inter", serif;
    color: var(--heading-text);
}

.rea-audit-page .lyp-brochure-upload__meta {
    font-size: 12px;
    color: var(--gray-color);
    line-height: 1.35;
}

.rea-audit-page .lyp-brochure-upload__filename {
    display: none;
    font-size: 12px;
    color: var(--blue-color);
    font-weight: 500;
    max-width: 100%;
    word-break: break-word;
    margin-top: 2px;
}

.rea-audit-page .lyp-brochure-upload__filename:not(:empty) {
    display: block;
}

.rea-audit-page .lyp-brochure-upload--error .lyp-brochure-upload__zone {
    border-color: #dc3545;
    border-style: solid;
    background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

.rea-audit-page .rea-audit-uploads > .col-md-4 {
    display: flex;
}

.rea-audit-page .rea-audit-uploads .form-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    margin-bottom: 0;
}

.rea-audit-page .rea-audit-uploads .form-group > .labelClass {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    margin-bottom: 6px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.rea-audit-page .rea-audit-uploads .lyp-brochure-upload {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.rea-audit-page .rea-audit-uploads .lyp-brochure-upload__zone {
    flex: 1 1 auto;
    min-height: 108px;
}

/* --- Submit row --- */
.rea-audit-page .signIn {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.rea-audit-page .listYourProjectActions.rea-audit-actions--page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
}

.rea-audit-page .listYourProjectActions.rea-audit-actions--page .btnsignIn {
    width: 100%;
    margin-bottom: 0;
    border: none;
    border-radius: 12px;
    min-height: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--blue-color, #005395) 0%, #0068b8 50%, #004a82 100%);
    box-shadow: 0 8px 22px rgba(0, 83, 149, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.rea-audit-page .listYourProjectActions.rea-audit-actions--page .btnsignIn:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(0, 83, 149, 0.28);
    transform: translateY(-1px);
}

.rea-audit-page .listYourProjectActions.rea-audit-actions--page .btnsignIn:disabled {
    opacity: 0.85;
    transform: none;
}

/* Primary CTA label (Bootstrap `.btn` / global `span` can force dark text) */
.rea-audit-page .listYourProjectActions.rea-audit-actions--page .btnsignIn,
.rea-audit-page .listYourProjectActions.rea-audit-actions--page .btnsignIn .btn-text {
    color: #ffffff !important;
}

.rea-audit-page .listYourProjectActions.rea-audit-actions--page .btnsignIn .btn-loading,
.rea-audit-page .listYourProjectActions.rea-audit-actions--page .btnsignIn .btn-loading i {
    color: #ffffff;
}

@media (min-width: 576px) {
    .rea-audit-page .listYourProjectActions.rea-audit-actions--page {
        flex-direction: row;
        justify-content: flex-end;
    }

    .rea-audit-page .listYourProjectActions.rea-audit-actions--page .btnsignIn {
        width: auto;
        min-width: min(100%, 260px);
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rea-audit-page .lyp-brochure-upload__zone:hover,
    .rea-audit-page .listYourProjectActions.rea-audit-actions--page .btnsignIn:hover:not(:disabled) {
        transform: none;
    }
}
