:root {
    --saith-teal: #2A94B3;
    --saith-dark-blue: #093F54;
    --saith-dark-grey: #21343B;
    --saith-stone: #F3F0EC;
    --saith-green: #869B27;
    --white: #FFFFFF;
    --text-main: #21343B;
    --text-muted: rgba(33, 52, 59, 0.72);
    --border: rgba(33, 52, 59, 0.14);
    --shadow: 0 22px 55px rgba(9, 63, 84, 0.18);
    --radius-large: 26px;
    --radius-medium: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Poppins", Arial, sans-serif;
    background: linear-gradient(rgba(243, 240, 236, 0.92), rgba(243, 240, 236, 0.92)), url("/Images/Saith-Logo.jpeg") right 5% bottom 7% / 380px auto no-repeat, var(--saith-stone);
    color: var(--text-main);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-rule {
    height: 7px;
    background: linear-gradient( 90deg, var(--saith-teal) 0%, var(--saith-teal) 30%, var(--saith-dark-blue) 30%, var(--saith-dark-blue) 60%, var(--saith-dark-grey) 60%, var(--saith-dark-grey) 90%, var(--saith-stone) 90%, var(--saith-stone) 95%, var(--saith-green) 95%, var(--saith-green) 100% );
}

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px clamp(18px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

    .brand img {
        display: block;
        height: 46px;
        width: auto;
        max-width: 190px;
        object-fit: contain;
    }
.brand-logo {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

    .brand-logo img {
        display: block;
        height: 46px;
        width: auto;
        max-width: 190px;
        object-fit: contain;
    }

.password-bottom-logo img,
.corner-logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.password-bottom-logo img {
    height: 54px;
    margin: 0 auto;
}

.corner-logo-img {
    height: 34px;
    margin: 0 auto;
}

.password-bottom-brand-inner {
    display: grid;
    gap: 12px;
    justify-items: center;
    pointer-events: none;
}

.password-bottom-instruction {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
    pointer-events: none;
}

.password-continue-button {
    display: none;
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--saith-teal);
    color: var(--white);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

    .password-continue-button:hover {
        transform: translateY(-1px);
        background: var(--white);
        color: var(--saith-dark-blue);
    }

    .password-continue-button:disabled {
        cursor: wait;
        opacity: 0.78;
        transform: none;
    }

.viewer-frame-wrap.can-continue:not(.scan-loaded):not(.no-password) .password-continue-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-meta {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

    .header-meta strong {
        display: block;
        color: var(--saith-dark-blue);
        font-size: 0.92rem;
    }

.main {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: clamp(18px, 3vw, 38px);
    flex: 1;
}
    .main-frame {
        width: min(1560px, 100%);
        margin: 0 auto;
        padding: clamp(18px, 3vw, 38px);
        display: grid;
        grid-template-columns: 360px minmax(0, 1fr);
        gap: clamp(18px, 2.5vw, 32px);
        flex: 1;
    }
.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-header {
    padding: 30px 32px 24px;
    border-bottom: 1px solid var(--border);
}
.project-panel {
    align-self: start;
}

.project-panel-header {
    padding: 28px 28px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    color: var(--saith-teal);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

h1 {
    margin: 0;
    color: var(--saith-dark-blue);
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.intro {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 790px;
}

.form-body {
    padding: 26px 32px 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: grid;
    gap: 7px;
}

    .field.full {
        grid-column: 1 / -1;
    }

label {
    color: var(--saith-dark-grey);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 11px 13px;
    background: #fff;
    color: var(--saith-dark-grey);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.92rem;
    outline: none;
}

input,
select {
    min-height: 46px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

    input:focus,
    select:focus,
    textarea:focus {
        border-color: var(--saith-teal);
        box-shadow: 0 0 0 4px rgba(42, 148, 179, 0.12);
    }

.hint {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.project-data {
    padding: 8px 28px 28px;
}

.data-row {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

    .data-row:last-child {
        border-bottom: 0;
    }

.data-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.data-value {
    display: block;
    color: var(--saith-dark-grey);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(134, 155, 39, 0.14);
    color: var(--saith-green);
    font-weight: 800;
    font-size: 0.88rem;
    line-height: 1.35;
    text-align: center;
}

    .status-pill::before {
        display: none;
    }

.contact-card {
    margin-top: 22px;
    padding: 20px;
    background: var(--saith-dark-blue);
    color: var(--white);
    border-radius: var(--radius-medium);
}

.contact-card-title {
    display: block;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.contact-card-text {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.88rem;
    line-height: 1.55;
}

.sidebar-actions {
    display: grid;
    gap: 12px;
}

.button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
    text-align: center;
}

    .button:hover {
        transform: translateY(-1px);
    }

.button-primary {
    background: var(--saith-teal);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(42, 148, 179, 0.25);
}

.button-secondary {
    background: var(--saith-stone);
    color: var(--saith-dark-blue);
    border: 1px solid var(--border);
}

.notice {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--radius-medium);
    background: rgba(42, 148, 179, 0.1);
    color: var(--saith-dark-blue);
    font-size: 0.82rem;
    line-height: 1.55;
}

.success {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-medium);
    background: rgba(134, 155, 39, 0.14);
    color: var(--saith-green);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.45;
}

    .success.is-visible {
        display: block;
    }
.viewer-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.viewer-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.viewer-title {
    min-width: 0;
}

    .viewer-title strong {
        display: block;
        color: var(--saith-dark-blue);
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .viewer-title span {
        display: block;
        margin-top: 3px;
        color: var(--text-muted);
        font-size: 0.82rem;
    }

.viewer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.viewer-frame-wrap {
    position: relative;
    background: #000;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 540px;
    overflow: hidden;
}

    .viewer-frame-wrap iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        background: #000;
    }

.password-access-banner {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 82;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 36px));
    padding: 14px 18px;
    background: rgba(9, 63, 84, 0.96);
    color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    font-size: 0.84rem;
    line-height: 1.45;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .password-access-banner strong {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

.viewer-frame-wrap.scan-loaded .password-access-banner,
.viewer-frame-wrap.no-password .password-access-banner {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
    pointer-events: none;
}

.password-bottom-brand-banner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    min-height: 230px;
    padding: 0 34px 54px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient( 180deg, rgba(9, 63, 84, 0.16) 0%, rgba(9, 63, 84, 0.48) 16%, rgba(9, 63, 84, 0.82) 36%, rgba(9, 63, 84, 0.97) 62%, rgba(9, 63, 84, 1) 100% );
    color: var(--white);
    font-family: "Poppins", Arial, sans-serif;
    text-align: center;
    pointer-events: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.password-bottom-logo {
    min-width: 270px;
    padding: 18px 26px;
    border-radius: 8px;
    background: rgba(9, 63, 84, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.viewer-frame-wrap.scan-loaded .password-bottom-brand-banner,
.viewer-frame-wrap.no-password .password-bottom-brand-banner {
    opacity: 0;
    transform: translateY(100%);
}

.corner-overlay {
    position: absolute;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(9, 63, 84, 0.98);
    color: #ffffff;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

    .corner-overlay span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 0 16px;
        background: transparent;
        border-radius: inherit;
        white-space: nowrap;
        pointer-events: none;
    }

.contact-overlay {
    left: 0;
    bottom: 0;
    width: 210px;
    height: 40px;
    border-radius: 0 12px 0 0;
    pointer-events: auto;
    font-size: 0.48rem;
    letter-spacing: 0.06em;
    /*
        Solid under the Contact us text, then fades out to transparent to the right
        so the left overlay blends back into the site scan image.
      */
    background: linear-gradient( 90deg, rgba(9, 63, 84, 0.98) 0%, rgba(9, 63, 84, 0.98) 68%, rgba(9, 63, 84, 0.62) 84%, rgba(9, 63, 84, 0.00) 100% );
}

.footer-logo-cover {
    right: 0;
    bottom: 0;
    width: 225px;
    height: 95px;
    border-radius: 20px 0 0 0;
    pointer-events: auto;
    font-size: 0.78rem;
}

.viewer-frame-wrap.scan-loaded .contact-overlay,
.viewer-frame-wrap.no-password .contact-overlay,
.viewer-frame-wrap.scan-loaded .footer-logo-cover,
.viewer-frame-wrap.no-password .footer-logo-cover {
    display: flex;
}

.contact-overlay:hover {
    background: linear-gradient( 90deg, rgba(42, 148, 179, 0.98) 0%, rgba(42, 148, 179, 0.98) 68%, rgba(42, 148, 179, 0.62) 84%, rgba(42, 148, 179, 0.00) 100% );
}

.footer-logo-cover:hover {
    background: rgba(42, 148, 179, 0.98);
}

.viewer-frame-wrap:fullscreen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    min-height: 0;
    border-radius: 0;
}

    .viewer-frame-wrap:fullscreen iframe {
        width: 100%;
        height: 100%;
    }

    .viewer-frame-wrap:fullscreen .password-bottom-brand-banner {
        min-height: 250px;
        padding: 0 40px 62px;
    }

    .viewer-frame-wrap:fullscreen .contact-overlay {
        left: 0;
        bottom: 0;
        width: 210px;
        height: 40px;
    }

    .viewer-frame-wrap:fullscreen .footer-logo-cover {
        right: 0;
        bottom: 0;
        width: 225px;
        height: 95px;
    }

.viewer-commerce-panel {
    display: none;
    padding: 12px 22px 14px;
    background: var(--white);
    border-top: 1px solid var(--border);
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
}

.viewer-panel.scan-loaded .viewer-commerce-panel,
.viewer-panel.no-password .viewer-commerce-panel {
    display: flex;
}

.viewer-commerce-copy {
    min-width: 0;
}

    .viewer-commerce-copy strong {
        display: block;
        color: var(--saith-dark-blue);
        font-size: 0.96rem;
        margin-bottom: 2px;
    }

    .viewer-commerce-copy span {
        display: block;
        color: var(--text-muted);
        font-size: 0.82rem;
        line-height: 1.45;
    }

.viewer-commerce-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.commerce-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    min-width: 180px;
    background: var(--saith-dark-blue);
    color: var(--white);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, background 0.18s ease;
}

    .commerce-button:hover {
        transform: translateY(-1px);
        background: var(--saith-teal);
    }

@media (max-width: 700px) {
    .header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-meta {
        text-align: left;
    }

    .main {
        padding: 14px;
    }

    .panel {
        border-radius: 22px;
    }

    .panel-header,
    .form-body {
        padding-left: 22px;
        padding-right: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .actions .button {
        width: 100%;
    }
      .viewer-header {
        align-items: stretch;
        flex-direction: column;
      }

      .viewer-actions {
        justify-content: stretch;
      }

      .viewer-actions .button {
        width: 100%;
      }

      .viewer-frame-wrap {
        aspect-ratio: 9 / 14;
        min-height: 620px;
      }

}
    @media (max-width: 430px) {
      .main {
        padding: 12px;
      }

      .panel {
        border-radius: 20px;
      }

      .project-panel-header,
      .project-data {
        padding-left: 22px;
        padding-right: 22px;
      }

      .viewer-frame-wrap {
        min-height: 590px;
      }

      .password-bottom-brand-banner {
        min-height: 172px;
        padding: 0 14px 36px;
      }

      .password-bottom-logo {
        min-width: 190px;
        padding: 12px 16px;
        font-size: 0.68rem;
      }

      .contact-overlay {
        width: 170px;
        height: 34px;
        font-size: 0.38rem;
      }

      .footer-logo-cover {
        width: 165px;
        height: 78px;
        font-size: 0.64rem;
      }
    }

