/* =========================
   Theme
========================= */

:root {
    --navy: #0B1220;
    --steel-blue: #09282D;
    --plum: #5453B1;
    --accent: #5453B1;
    --accent-hover: #41408F;

    --text-light: #F4F1E8;
    --text-muted: #D8E2DD;
    --body-text: #1B2638;
    --muted-dark: #5F6878;

    --page-bg: #F4F4F8;
    --section-bg: #E9EBF1;
    --card-bg: #FFFFFF;
    --dark-card: #12383B;

    --border: #303B50;
    --light-border: #D2D5DF;
    --input-border: #AEB4C1;

    --success-bg: #E8F5E9;
    --success-text: #14532D;
    --success-border: #BBF7D0;

    --danger-bg: #FEE2E2;
    --danger-text: #991B1B;
    --danger-border: #FCA5A5;

    --warning-bg: #FFF7ED;
    --warning-text: #9A3412;
    --warning-border: #FED7AA;

    --shadow: 0 12px 32px rgba(11, 18, 32, 0.12);
    --shadow-strong: 0 16px 36px rgba(11, 18, 32, 0.18);
}

/* =========================
   Base
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    background: var(--page-bg);
    color: var(--body-text);
}

h1,
h2,
h3,
.brand {
    font-family: 'Montserrat', sans-serif;
}

img {
    max-width: 100%;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: 'Montserrat', sans-serif;
}

button {
    border: none;
    cursor: pointer;
}

label {
    display: block;
    margin-top: 0;
    font-size: 14px;
    color: var(--navy);
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: #FFFFFF;
    outline: none;
    color: var(--navy);
    font-size: 14px;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(84, 83, 177, 0.22);
}

/* =========================
   Header / Navigation
========================= */

.top-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 84px;
    padding: 0 44px;
    background: var(--navy);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 5px 18px rgba(11, 18, 32, 0.28);
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.nav-logout-form {
    display: inline;
    margin: 0;
}

.nav-link-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.cf-turnstile {
    margin: 18px 0;
    min-height: 65px;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand-full-logo-frame {
    display: block;
    width: 100px;
    height: 76px;
    flex: 0 0 100px;
}

.brand-full-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.top-header nav {
    display: flex;
    gap: 26px;
    align-items: center;
}

.top-header nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.top-header nav a:hover {
    color: var(--accent);
}

.top-header a:focus-visible,
.top-header button:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

/* =========================
   Buttons
========================= */

.primary-button,
.secondary-button,
.admin-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.primary-button,
.admin-button {
    background: var(--accent);
    color: #FFFFFF;
}

.primary-button:hover,
.admin-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.secondary-button {
    background: var(--text-light);
    color: var(--navy);
    margin-top: 20px;
}

.secondary-button:hover {
    background: #E8EDF3;
}

.admin-button {
    width: 100%;
    margin-top: 22px;
}

/* =========================
   Welcome Page
========================= */

.hero {
    min-height: 620px;
    background:
        linear-gradient(rgba(11, 18, 32, 0.66), rgba(9, 40, 45, 0.86)),
        url("../images/homepage-banner-v2.cecff04337e7.png");
    background-size: cover;
    background-position: center 48%;
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: 70px 48px;
}

.hero-content {
    max-width: 760px;
}

.hero-brand {
    display: block;
    margin-bottom: 18px;
    color: #CECEF4;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.05;
    margin: 0 0 20px;
    letter-spacing: 0;
}

.hero p {
    font-size: 20px;
    line-height: 1.65;
    margin-bottom: 34px;
    color: var(--text-muted);
}

.capabilities-band {
    padding: 84px 48px;
    background: var(--section-bg);
}

.capabilities-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

.capabilities-visual {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy);
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
    background-size: 36px 36px;
}

.capabilities-project-visual {
    background: #D2D5DF;
}

.home-project-image {
    display: block;
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: center;
}

.section-kicker,
.project-band > span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.capabilities-copy h2 {
    max-width: 560px;
    margin: 14px 0 18px;
    color: var(--navy);
    font-size: 43px;
    line-height: 1.12;
}

.capabilities-intro {
    max-width: 570px;
    margin: 0 0 30px;
    color: #566173;
    font-size: 17px;
    line-height: 1.65;
}

.capability-lines {
    margin-bottom: 30px;
    border-top: 1px solid var(--light-border);
}

.capability-line {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 19px 0;
    border-bottom: 1px solid var(--light-border);
}

.capability-line > span {
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.capability-line h3 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 20px;
}

.capability-line p {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.5;
}

.project-band {
    padding: 48px;
    background: var(--plum);
    color: var(--text-light);
    text-align: center;
}

.project-band > span {
    color: #D2D1FA;
}

.project-band h2 {
    margin: 14px auto 0;
    max-width: 1050px;
    color: var(--text-light);
    font-size: 29px;
    line-height: 1.5;
}

.project-band i {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 18px 5px;
    border-radius: 50%;
    background: var(--accent);
}

.section {
    padding: 76px 48px;
    background: var(--card-bg);
}

.section h2 {
    text-align: center;
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: 0;
    color: var(--navy);
}

.card-grid,
.steps,
.value-grid {
    display: grid;
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.card-grid,
.steps,
.value-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card,
.value-card,
.about-card,
.quote-card,
.estimate-card,
.portal-card,
.login-card,
.admin-empty {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-border);
}

.card {
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card h3,
.card p {
    padding: 0 22px;
}

.card h3 {
    margin-top: 22px;
    color: var(--navy);
}

.card p {
    padding-bottom: 26px;
    color: #475569;
    line-height: 1.6;
}

.dark-section {
    background: var(--navy);
    color: var(--text-light);
    text-align: center;
}

.dark-section h2 {
    color: var(--text-light);
}

.steps {
    max-width: 1040px;
}

.steps div {
    padding: 28px 12px 10px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.steps span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-light);
    font-weight: 800;
    margin-bottom: 14px;
}

.steps h3 {
    color: var(--text-light);
}

.steps p {
    color: var(--text-muted);
    line-height: 1.6;
}

.site-footer {
    padding: 42px 48px;
    background: var(--navy);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px minmax(260px, 1fr) auto;
    gap: 42px;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-full-logo-frame {
    width: 112px;
    height: 92px;
    flex-basis: 112px;
}

.footer-copy {
    max-width: 540px;
}

.footer-copy p,
.footer-contact span {
    margin: 0;
    line-height: 1.6;
}

.footer-copy .footer-location {
    margin-bottom: 7px;
    color: var(--text-light);
    font-weight: 700;
}

.footer-contact {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.footer-contact span {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-contact a {
    color: var(--text-light);
    font-weight: 700;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-contact .footer-quote-link {
    margin-top: 8px;
    color: #D2D1FA;
}

.footer-legal {
    max-width: 1180px;
    margin: 30px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 8px;
}

.footer-legal a {
    color: var(--text-light);
    font-weight: 700;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #D2D1FA;
}

.footer-legal p {
    margin: 3px 0 0;
}

.essential-cookie-notice {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    left: 22px;
    max-width: 760px;
    margin: 0 auto;
    padding: 15px 16px 15px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #343F55;
    border-radius: 4px;
    background: var(--navy);
    color: var(--text-muted);
    box-shadow: var(--shadow-strong);
}

.essential-cookie-notice[hidden] {
    display: none;
}

.essential-cookie-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.essential-cookie-notice a {
    color: #D2D1FA;
    font-weight: 700;
}

.essential-cookie-notice button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 4px;
    background: transparent;
    color: var(--text-light);
    font-weight: 800;
}

.essential-cookie-notice button:hover,
.essential-cookie-notice button:focus-visible {
    border-color: #D2D1FA;
    outline: 3px solid rgba(84, 83, 177, 0.45);
    outline-offset: 2px;
}

.legal-consent-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 18px 0 2px;
    border-top: 1px solid var(--light-border);
}

.legal-consent-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
}

.legal-consent-row label {
    font-weight: 600;
    line-height: 1.55;
}

.legal-consent-row a,
.form-privacy-note a,
.agreement-content a {
    color: var(--accent);
    font-weight: 700;
}

.legal-consent-row .errorlist {
    grid-column: 2;
}

.form-privacy-note {
    margin: 18px 0 0;
    color: #566173;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================
   Legal Pages
========================= */

.legal-page {
    background: var(--page-bg);
}

.legal-page-header {
    padding: 58px 48px;
    background: linear-gradient(110deg, var(--navy), var(--steel-blue));
    color: var(--text-light);
}

.legal-page-header > * {
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.legal-page-header > span {
    display: block;
    color: #D2D1FA;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.legal-page-header h1 {
    margin-top: 12px;
    margin-bottom: 10px;
    font-size: 48px;
    line-height: 1.08;
}

.legal-page-header p {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.legal-page-layout {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 48px 90px;
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    gap: 72px;
    justify-content: space-between;
    align-items: start;
}

.legal-page-layout-single {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.legal-page-nav {
    position: sticky;
    top: 112px;
    display: grid;
    border-top: 1px solid var(--light-border);
}

.legal-page-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-border);
    color: #566173;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.legal-page-nav a:hover,
.legal-page-nav a:focus-visible {
    color: var(--accent);
}

.legal-document section {
    padding: 0 0 34px;
    margin: 0 0 34px;
    border-bottom: 1px solid var(--light-border);
    scroll-margin-top: 110px;
}

.legal-document section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.legal-document h2 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 27px;
    line-height: 1.25;
}

.legal-document h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 18px;
}

.legal-document p,
.legal-document li {
    color: #445064;
    font-size: 15px;
    line-height: 1.75;
}

.legal-document p {
    margin: 0 0 15px;
}

.legal-document ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.legal-document li + li {
    margin-top: 8px;
}

.legal-document a {
    color: #41408F;
    font-weight: 700;
}

.legal-table-wrap {
    max-width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid var(--light-border);
}

.legal-document table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: #FFFFFF;
}

.legal-document th,
.legal-document td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--light-border);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
    line-height: 1.55;
}

.legal-document th {
    background: #E9EBF1;
    color: var(--navy);
}

.legal-document tr:last-child td {
    border-bottom: 0;
}

.legal-document code {
    color: var(--navy);
    font-weight: 700;
}

.legal-callout {
    margin: 20px 0;
    padding: 20px 22px;
    border-left: 4px solid var(--accent);
    background: #EEEEF9;
}

.legal-callout p:last-child {
    margin-bottom: 0;
}

/* =========================
   Quote Page
========================= */

.quote-hero-bar,
.admin-hero {
    background: linear-gradient(135deg, var(--navy), var(--steel-blue));
    color: var(--text-light);
    padding: 38px 48px;
    border-bottom: 4px solid var(--accent);
}

.quote-hero-bar h1,
.admin-hero h1 {
    margin: 0;
    font-size: 36px;
    letter-spacing: 0;
}

.quote-hero-bar p,
.admin-hero p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 16px;
}

.quote-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 38px 48px;
    background: var(--section-bg);
}

.quote-card {
    padding: 28px;
    border-radius: 20px;
}

.section-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: 25px;
    letter-spacing: 0;
    color: var(--navy);
}

.section-heading p {
    margin: 5px 0 0;
    color: var(--muted-dark);
    line-height: 1.5;
}

.section-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

#viewer {
    width: 100%;
    height: 420px;
    border: 1px solid var(--input-border);
    border-radius: 16px;
    background: #F1F5F9;
    overflow: hidden;
}

.viewer-message {
    margin: 12px 0 0;
    color: var(--muted-dark);
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.full-width {
    grid-column: 1 / -1;
}

.step-file-panel {
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    text-align: center;
    background: #F8FAFC;
    color: var(--navy);
}

.step-file-panel h3 {
    margin-top: 0;
    font-size: 26px;
}

.step-file-panel p {
    color: #475569;
    line-height: 1.6;
}

/* =========================
   Quote Choice / Idea Request
========================= */

.quote-choice-page,
.idea-request-section {
    min-height: calc(100vh - 180px);
    padding: 54px 48px;
}

.quote-choice-page {
    background:
        linear-gradient(rgba(11, 18, 32, 0.88), rgba(84, 83, 177, 0.72)),
        url("../images/image1.20c270eea32e.jpg");
    background-size: cover;
    background-position: center;
}

.quote-choice-header {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
    color: var(--text-light);
}

.quote-choice-header h1 {
    font-size: 44px;
    margin: 0 0 10px;
}

.quote-choice-header p {
    color: var(--text-muted);
    font-size: 18px;
    margin: 0;
}

.idea-request-section {
    background: var(--section-bg);
}

.quote-option-grid {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.quote-option-card {
    min-height: 360px;
    padding: 34px;
    background: white;
    color: var(--navy);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-border);
    border-top: 5px solid var(--accent);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quote-option-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.idea-quote-card {
    border-top-color: var(--steel-blue);
}

.quote-option-label {
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: #F3F4F6;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quote-option-card h2 {
    margin: 24px 0 12px;
    font-size: 31px;
    line-height: 1.15;
    color: var(--navy);
}

.quote-option-card p {
    margin: 0 0 30px;
    color: var(--muted-dark);
    line-height: 1.65;
}

.quote-choice-action {
    width: 100%;
    margin-top: auto;
    text-align: center;
    text-decoration: none !important;
}

.idea-quote-card .quote-choice-action {
    background: var(--steel-blue);
}

.idea-quote-card .quote-choice-action:hover {
    background: var(--navy);
}

.idea-request-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.idea-intro-panel {
    padding: 30px;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--navy), var(--steel-blue));
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.idea-intro-panel h2 {
    margin-top: 0;
    font-size: 31px;
}

.idea-intro-panel p {
    color: var(--text-muted);
    line-height: 1.7;
}

.idea-form-card .result {
    margin: 0 0 22px;
}

.idea-note p {
    margin-bottom: 0;
}

/* =========================
   Submission / Agreement
========================= */

.submission-banner {
    background: var(--navy);
    color: var(--text-light);
    padding: 34px 48px;
    border-top: 1px solid var(--border);
}

.submission-content {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 34px;
    align-items: center;
}

.submission-left h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--text-light);
}

.submission-left p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.submission-controls {
    background: var(--text-light);
    color: var(--navy);
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.agreement-dropdown {
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: #FFFFFF;
    margin-bottom: 20px;
    overflow: hidden;
}

.agreement-dropdown summary {
    cursor: pointer;
    padding: 15px 18px;
    font-weight: 800;
    color: var(--navy);
}

.agreement-dropdown summary:hover {
    background: #F1F5F9;
}

.agreement-content {
    padding: 0 18px 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.final-checkboxes {
    display: grid;
    gap: 12px;
    justify-content: center;
    text-align: left;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.checkbox-row input {
    width: auto;
    margin-top: 4px;
    box-shadow: none;
}

.checkbox-row label {
    margin: 0;
    font-weight: 500;
}

.centered-checkbox {
    max-width: 760px;
    margin: 0 auto;
}

.centered-checkbox label {
    color: #334155;
    line-height: 1.45;
}

#submitButton {
    max-width: 380px;
    width: 100%;
    display: block;
    margin: 24px auto 0;
    padding: 15px 24px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--text-light);
    font-size: 16px;
    font-weight: 800;
}

#submitButton:hover:not(:disabled) {
    background: var(--accent-hover);
}

#submitButton:disabled {
    background: #94A3B8;
    cursor: not-allowed;
}

.result {
    max-width: 1260px;
    margin: 24px auto 0;
    padding: 16px 18px;
    background: var(--success-bg);
    color: var(--success-text);
    border-radius: 12px;
    border: 1px solid var(--success-border);
}

/* =========================
   Estimate
========================= */

.estimate-section {
    background: var(--section-bg);
    padding: 38px 48px;
}

.estimate-card {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 30px;
}

.minimalist-estimate-card {
    max-width: 950px;
}

.estimate-card h2 {
    margin-top: 0;
    color: var(--navy);
}

.estimate-subtitle {
    color: var(--muted-dark);
    margin-top: -8px;
    margin-bottom: 24px;
}

#estimateChart {
    max-height: 320px;
    margin: 18px 0 28px;
}

.cost-estimate-box {
    margin: 20px auto 28px;
    padding: 22px;
    max-width: 520px;
    text-align: center;
    background: #F8FAFC;
    border: 1px solid var(--light-border);
    border-radius: 16px;
}

.cost-estimate-box span {
    display: block;
    color: var(--muted-dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cost-estimate-box strong {
    display: block;
    color: var(--navy);
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    line-height: 1;
    margin-bottom: 10px;
}

.cost-estimate-box p {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.5;
    font-size: 14px;
}

.estimate-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.estimate-summary-grid div {
    background: #F8FAFC;
    border: 1px solid var(--light-border);
    border-radius: 14px;
    padding: 16px;
}

.estimate-summary-grid span {
    display: block;
    color: var(--muted-dark);
    font-size: 13px;
    margin-bottom: 6px;
}

.estimate-summary-grid strong {
    color: var(--navy);
}

.estimate-warning {
    margin-top: 24px;
    padding: 16px;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 12px;
    color: var(--warning-text);
    line-height: 1.6;
}

/* =========================
   Modal
========================= */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-box {
    width: 90%;
    max-width: 520px;
    background: white;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.28);
    text-align: center;
}

.modal-box h2 {
    margin-top: 0;
    color: var(--navy);
    font-size: 30px;
}

.modal-box p {
    color: #475569;
    line-height: 1.6;
}

.modal-box button {
    width: auto;
    padding: 11px 24px;
    margin-top: 14px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--text-light);
    font-weight: 700;
}

.modal-box button:hover {
    background: var(--accent-hover);
}

/* =========================
   Solutions Page
========================= */

.solutions-page {
    background: var(--page-bg);
}

.solutions-page a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.solutions-masthead {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 30px 48px;
    color: var(--text-light);
}

.solutions-masthead::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -18px;
    background: url("../images/nutria-system.49b61f0de3fe.webp") center 38% / cover no-repeat;
    filter: blur(9px);
    transform: scale(1.05);
}

.solutions-masthead::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 18, 32, 0.94), rgba(84, 83, 177, 0.76));
}

.solutions-masthead-inner,
.nutria-product-inner,
.nutria-features-layout,
.nutria-system-inner,
.nutria-purchase-inner,
.solutions-coming-soon-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.solutions-masthead-inner {
    display: flex;
    align-items: center;
    gap: 22px;
}

.solutions-masthead span,
.nutria-features article > span,
.nutria-system-copy > span,
.solutions-coming-soon span {
    color: #D2D1FA;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.solutions-masthead p {
    margin: 0;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.34);
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 600;
}

.solution-deck-controls {
    width: 100%;
    min-height: 66px;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 42px;
    gap: 18px;
    align-items: center;
    background: #FFFFFF;
    border-bottom: 1px solid var(--light-border);
}

.solution-deck-arrow {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background: #FFFFFF;
    color: var(--navy);
    font-size: 22px;
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.solution-deck-arrow:hover:not(:disabled) {
    border-color: var(--accent);
    background: #F0F0FA;
    color: var(--accent);
}

.solution-deck-arrow:focus-visible,
.solution-deck-tab:focus-visible {
    outline: 3px solid rgba(84, 83, 177, 0.3);
    outline-offset: 3px;
}

.solution-deck-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.solution-deck-tabs {
    min-width: 0;
    display: flex;
    align-self: stretch;
    align-items: stretch;
    gap: 30px;
}

.solution-deck-tab {
    position: relative;
    padding: 0;
    background: transparent;
    color: #646E80;
    font-size: 14px;
    font-weight: 700;
}

.solution-deck-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: transparent;
}

.solution-deck-tab.is-active {
    color: var(--navy);
}

.solution-deck-tab.is-active::after {
    background: var(--accent);
}

.solution-deck-count {
    color: #646E80;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.solution-deck-shell {
    position: relative;
    background: var(--page-bg);
}

.solution-deck-shell:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.solution-deck-track {
    position: relative;
    width: 100%;
}

.solution-slide {
    display: none;
    width: 100%;
    background: var(--page-bg);
}

.solution-slide.is-active {
    display: block;
}

.solution-deck-shell.is-enhanced {
    overflow: hidden;
    transition: height 0.38s ease;
    touch-action: pan-y;
}

.solution-deck-shell.is-enhanced .solution-slide {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.solution-placeholder-page {
    position: relative;
    isolation: isolate;
    min-height: 680px;
    padding: 80px 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--text-light);
}

.solution-placeholder-page::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -24px;
    background: url("../images/image2.94aeac3e827c.jpg") center / cover no-repeat;
    filter: blur(10px);
    transform: scale(1.06);
}

.solution-placeholder-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(105deg, rgba(11, 18, 32, 0.96), rgba(9, 40, 45, 0.88) 62%, rgba(84, 83, 177, 0.66));
}

.solution-placeholder-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.solution-placeholder-inner > span {
    color: #D2D1FA;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.solution-placeholder-inner h1 {
    max-width: 760px;
    margin: 16px 0 18px;
    color: var(--text-light);
    font-size: 60px;
    line-height: 1.05;
}

.solution-placeholder-inner p {
    max-width: 590px;
    margin: 0 0 30px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
    .solution-deck-shell.is-enhanced,
    .solution-deck-shell.is-enhanced .solution-slide {
        transition: none;
    }
}

.nutria-product {
    padding: 64px 48px 76px;
    background: var(--page-bg);
}

.nutria-product-inner {
    display: grid;
    grid-template-areas: "intro image";
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    gap: 64px;
    align-items: center;
}

.nutria-intro {
    grid-area: intro;
    padding-top: 12px;
}

.nutria-intro h1 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 64px;
    line-height: 0.98;
}

.nutria-name-note {
    display: flex;
    align-items: baseline;
    gap: 9px;
    max-width: 480px;
    margin: 0 0 18px;
    color: #646E80;
    font-size: 13px;
    line-height: 1.5;
}

.nutria-name-note strong {
    color: var(--plum);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.nutria-name-note span {
    font-style: italic;
}

.nutria-definition {
    max-width: 460px;
    margin: 0;
    color: var(--body-text);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.nutria-supporting-copy {
    max-width: 460px;
    margin: 14px 0 0;
    color: #646E80;
    font-size: 15px;
    line-height: 1.65;
}

.nutria-product-figure {
    grid-area: image;
    overflow: hidden;
    margin: 0;
    align-self: center;
    border: 1px solid var(--light-border);
    border-radius: 4px;
    background: #D0CFCA;
    box-shadow: 0 18px 40px rgba(11, 18, 32, 0.14);
}

.nutria-product-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.nutria-product-figure figcaption {
    padding: 11px 14px;
    border-top: 1px solid var(--light-border);
    background: #FFFFFF;
    color: #566173;
    font-size: 12px;
    font-weight: 700;
}

.nutria-specs {
    max-width: 460px;
    margin: 0 0 28px;
    border-top: 1px solid var(--input-border);
}

.nutria-specs div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--input-border);
}

.nutria-specs dt,
.nutria-specs dd {
    margin: 0;
    font-size: 14px;
}

.nutria-specs dt {
    color: #566173;
    font-weight: 600;
}

.nutria-specs dd {
    color: var(--navy);
    font-weight: 800;
    text-align: right;
}

.nutria-quote-button {
    min-width: 156px;
    text-align: center;
}

.nutria-purchase-section {
    padding: 48px;
    border-top: 1px solid var(--light-border);
    background: #E9EBF1;
}

.nutria-purchase-inner {
    display: grid;
    grid-template-columns: minmax(0, 760px) auto;
    gap: 56px;
    align-items: center;
    justify-content: space-between;
}

.nutria-purchase-inner .nutria-specs {
    width: 100%;
    max-width: none;
    margin: 0;
}

.nutria-purchase-inner .nutria-quote-button {
    justify-self: end;
}

.nutria-features {
    padding: 72px 48px 78px;
    border-top: 1px solid var(--light-border);
    background: #FFFFFF;
}

.nutria-features-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    gap: 64px;
    align-items: center;
}

.nutria-features article {
    min-width: 0;
    padding: 22px 0;
    border-top: 1px solid var(--light-border);
}

.nutria-features article:first-child {
    padding-top: 0;
    border-top: 0;
}

.nutria-features article:last-child {
    padding-bottom: 0;
}

.nutria-features article > span {
    color: var(--accent);
}

.nutria-features h2 {
    margin: 10px 0 10px;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.3;
}

.nutria-features p,
.nutria-system-copy p {
    margin: 0;
    color: #566173;
    font-size: 15px;
    line-height: 1.75;
}

.nutria-app-figure {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--light-border);
    border-radius: 4px;
    background: #FFFFFF;
    box-shadow: 0 16px 34px rgba(11, 18, 32, 0.12);
}

.nutria-app-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.nutria-app-figure figcaption {
    padding: 11px 14px;
    border-top: 1px solid var(--light-border);
    color: #566173;
    font-size: 12px;
    font-weight: 700;
}

.nutria-system-section {
    padding: 76px 48px;
    background: var(--plum);
    color: var(--text-light);
}

.nutria-system-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 72px;
    align-items: center;
}

.nutria-system-figure {
    width: 75%;
    justify-self: center;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(244, 241, 232, 0.28);
    border-radius: 4px;
    background: var(--navy);
}

.nutria-system-figure img {
    display: block;
    width: 100%;
    height: auto;
    transform: rotate(1.2deg) scale(1.03);
    transform-origin: center;
}

.nutria-system-copy h2 {
    margin: 16px 0 18px;
    color: var(--text-light);
    font-size: 40px;
    line-height: 1.15;
}

.nutria-system-copy p {
    color: #E4DADF;
    font-size: 16px;
}

.solutions-coming-soon {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 190px;
    padding: 48px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

.solutions-coming-soon::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -18px;
    background: url("../images/image2.94aeac3e827c.jpg") center / cover no-repeat;
    filter: blur(10px);
    transform: scale(1.05);
}

.solutions-coming-soon::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 18, 32, 0.92), rgba(9, 40, 45, 0.78));
}

.solutions-coming-soon h2 {
    margin: 10px 0 0;
    font-size: 34px;
}

/* Legacy About Page */

.about-hero {
    min-height: 360px;
    background:
        linear-gradient(rgba(11, 18, 32, 0.86), rgba(84, 83, 177, 0.7)),
        url("../images/image2.94aeac3e827c.jpg");
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: 64px 48px;
}

.about-hero-content {
    max-width: 760px;
}

.about-hero h1 {
    font-size: 50px;
    margin: 0 0 16px;
    letter-spacing: 0;
}

.about-hero p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-muted);
}

.about-section,
.founder-section {
    padding: 76px 48px;
    background: white;
}

.about-layout,
.founder-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 38px;
    align-items: start;
}

.about-layout {
    grid-template-columns: 1.4fr 0.8fr;
}

.founder-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 54px;
    align-items: center;
}

.about-section h2,
.founder-text h2 {
    margin-top: 0;
    color: var(--navy);
}

.about-section h2 {
    font-size: 36px;
}

.about-section p,
.founder-text p {
    color: #475569;
    line-height: 1.7;
    font-size: 16px;
}

.about-card,
.value-card {
    padding: 30px;
}

.about-card h3,
.value-card h3 {
    margin-top: 0;
    color: var(--navy);
}

.about-card ul {
    padding-left: 20px;
    line-height: 1.8;
    color: #475569;
}

.light-section {
    background: #F1F5F9;
}

.cta-section {
    padding: 76px 48px;
    background: var(--navy);
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-top: 0;
    color: var(--text-light);
}

.cta-section p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 30px;
}

.founder-photo-wrap {
    background: linear-gradient(135deg, var(--navy), var(--steel-blue));
    padding: 14px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.founder-photo {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.founder-text .eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    margin-bottom: 12px;
}

.founder-text h2 {
    font-size: 38px;
    line-height: 1.15;
    margin: 0 0 22px;
    letter-spacing: 0;
}

.founder-text .primary-button {
    margin-top: 12px;
}

/* =========================
   Login Pages
========================= */

.login-page,
.combined-login-page {
    min-height: calc(100vh - 72px);
    padding: 54px 48px;
    background:
        linear-gradient(rgba(11, 18, 32, 0.88), rgba(84, 83, 177, 0.72)),
        url("../images/image1.20c270eea32e.jpg");
    background-size: cover;
    background-position: center;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 34px;
}

.combined-login-header {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
    color: var(--text-light);
}

.combined-login-header h1 {
    font-size: 44px;
    margin: 0 0 10px;
}

.combined-login-header p {
    color: var(--text-muted);
    font-size: 18px;
    margin: 0;
}

.combined-login-grid {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.combined-login-grid .login-card {
    max-width: none;
}

.customer-login-card {
    border-top: 5px solid var(--accent);
}

.admin-login-card {
    border-top: 5px solid var(--steel-blue);
}

.login-card h1,
.login-card h2 {
    margin-top: 0;
    color: var(--navy);
}

.login-card h2 {
    font-size: 28px;
}

.login-card p {
    color: var(--muted-dark);
    line-height: 1.5;
}

.login-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--danger-border);
}

.login-card-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #F3F4F6;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-label {
    color: var(--steel-blue);
}

.login-card-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--light-border);
}

.login-card-footer p {
    margin: 0 0 8px;
    color: var(--muted-dark);
    font-size: 14px;
}

.login-card-footer a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.login-card-footer a:hover {
    text-decoration: underline;
}

.admin-login-button {
    background: var(--steel-blue);
}

.admin-login-button:hover {
    background: var(--navy);
}

/* =========================
   Admin / Customer Portal
========================= */

.admin-dashboard,
.portal-detail-section {
    padding: 38px 48px;
    background: var(--section-bg);
    min-height: calc(100vh - 180px);
    display: grid;
    gap: 18px;
}

.admin-feature-bar,
.admin-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    text-decoration: none;
    background: white;
    color: var(--navy);
    padding: 24px 28px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-border);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-feature-bar:hover,
.admin-file-row:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-strong);
}

.admin-feature-bar h2 {
    margin: 0 0 6px;
    color: var(--navy);
}

.admin-feature-bar p {
    margin: 0;
    color: var(--muted-dark);
    line-height: 1.5;
}

.admin-feature-bar span,
.admin-file-row strong {
    background: var(--accent);
    color: white;
    padding: 9px 14px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 14px;
}

.admin-file-row span {
    font-weight: 700;
}

.disabled-feature {
    opacity: 0.65;
    cursor: not-allowed;
}

.disabled-feature:hover {
    transform: none;
    border-color: var(--light-border);
}

.disabled-feature span {
    background: #94A3B8;
}

.admin-empty {
    padding: 28px;
}

.admin-empty h2 {
    margin-top: 0;
    color: var(--navy);
}

.admin-empty p {
    color: var(--muted-dark);
}

.portal-card {
    padding: 28px;
}

.portal-card h2 {
    margin-top: 0;
    color: var(--navy);
}

.portal-admin-link-section {
    padding: 24px 48px 0;
    background: var(--section-bg);
    text-align: right;
}

.customer-record-section {
    padding-top: 0;
}

.customer-link-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--light-border);
}

.archive-action-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--light-border);
}

.archive-button {
    width: 100%;
    margin-top: 0;
    padding: 14px 28px;
    border-radius: 10px;
    background: #64748B;
    color: white;
    font-weight: 800;
}

.archive-button:hover {
    background: #475569;
}

.archived-row {
    opacity: 0.78;
}

.admin-return-button {
    margin-top: 0;
}

.chat-project-list {
    display: grid;
    gap: 14px;
}

.project-chat-row span {
    display: grid;
    gap: 5px;
    background: transparent;
    color: var(--navy);
    padding: 0;
    border-radius: 0;
    white-space: normal;
}

.project-chat-row span strong {
    background: transparent;
    color: var(--navy);
    padding: 0;
    border-radius: 0;
    font-size: 16px;
}

.project-chat-row small {
    color: var(--muted-dark);
    font-weight: 500;
}

/* =========================
   Chat
========================= */

.chat-box {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.chat-message {
    padding: 14px 16px;
    border-radius: 14px;
    max-width: 760px;
}

.chat-message.admin {
    background: #E8EDF3;
    border: 1px solid #D1D5DB;
}

.chat-message.customer {
    background: #F8FAFC;
    border: 1px solid var(--light-border);
}

.chat-message strong {
    display: block;
    margin-bottom: 5px;
    color: var(--navy);
}

.chat-message p {
    margin: 0 0 6px;
    color: #334155;
}

.chat-message span {
    font-size: 12px;
    color: var(--muted-dark);
}

.chat-form textarea {
    margin-bottom: 12px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1050px) {
    .quote-shell,
    .submission-content,
    .card-grid,
    .steps,
    .capabilities-inner,
    .about-layout,
    .value-grid,
    .founder-layout,
    .combined-login-grid,
    .quote-option-grid,
    .idea-request-layout {
        grid-template-columns: 1fr;
    }

    .capabilities-inner {
        gap: 42px;
    }

    .capabilities-visual {
        min-height: 440px;
    }

    .home-project-image {
        height: 440px;
    }

    .nutria-product-inner {
        grid-template-areas:
            "intro"
            "image";
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 34px;
    }

    .nutria-product-figure {
        width: 100%;
        max-width: 820px;
    }

    .nutria-purchase-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nutria-purchase-inner .nutria-quote-button {
        justify-self: start;
    }

    .nutria-features-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .nutria-system-inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .nutria-system-figure {
        max-width: 760px;
    }

    .quote-shell,
    .submission-banner,
    .estimate-section {
        padding: 26px;
    }

    #viewer {
        height: 360px;
    }

    .founder-photo {
        height: 420px;
    }
}

@media (max-width: 800px) {
    .estimate-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .top-header {
        height: auto;
        padding: 12px 16px 14px;
        flex-direction: column;
        gap: 10px;
    }

    .top-header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 14px;
    }

    .solution-deck-controls {
        min-height: 58px;
        padding: 0 14px;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 10px;
    }

    .solution-deck-arrow {
        width: 38px;
        height: 38px;
    }

    .solution-deck-tabs {
        gap: 18px;
        justify-content: center;
    }

    .solution-deck-tab {
        font-size: 12px;
    }

    .solution-deck-count {
        display: none;
    }

    .solution-placeholder-page {
        min-height: 540px;
        padding: 58px 24px;
    }

    .solution-placeholder-inner h1 {
        font-size: 42px;
    }

    .solution-placeholder-inner p {
        font-size: 16px;
    }

    .top-header nav a,
    .nav-link-button {
        font-size: 13px;
    }

    .brand-full-logo-frame {
        width: 88px;
        height: 68px;
        flex-basis: 88px;
    }

    .site-footer {
        padding: 38px 24px;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .essential-cookie-notice {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 14px;
        gap: 12px;
    }

    .legal-page-header {
        padding: 42px 24px;
    }

    .legal-page-header h1 {
        font-size: 38px;
    }

    .legal-page-layout {
        padding: 38px 24px 64px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .legal-page-nav {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 18px;
    }

    .legal-document h2 {
        font-size: 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
        justify-items: center;
        text-align: center;
    }

    .footer-contact {
        justify-items: center;
    }

    .hero {
        min-height: 520px;
        padding: 50px 26px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 17px;
    }

    .section,
    .capabilities-band,
    .project-band,
    .solutions-masthead,
    .nutria-product,
    .nutria-features,
    .nutria-system-section,
    .nutria-purchase-section,
    .solutions-coming-soon,
    .about-section,
    .founder-section,
    .cta-section,
    .quote-hero-bar,
    .quote-choice-page,
    .idea-request-section,
    .admin-hero,
    .admin-dashboard,
    .portal-detail-section,
    .login-page,
    .combined-login-page {
        padding: 28px 24px;
    }

    .capabilities-visual {
        min-height: 340px;
    }

    .home-project-image {
        height: 340px;
    }

    .solutions-masthead-inner {
        display: block;
    }

    .solutions-masthead p {
        margin-top: 8px;
        padding-left: 0;
        border-left: 0;
        font-size: 16px;
    }

    .nutria-intro {
        padding-top: 0;
    }

    .nutria-intro h1 {
        font-size: 52px;
    }

    .nutria-definition {
        font-size: 18px;
    }

    .nutria-name-note {
        display: block;
    }

    .nutria-name-note strong {
        display: block;
        margin-bottom: 3px;
    }

    .nutria-specs div {
        align-items: start;
    }

    .nutria-features h2 {
        font-size: 21px;
    }

    .nutria-system-copy h2 {
        font-size: 34px;
    }

    .solutions-coming-soon {
        min-height: 160px;
    }

    .solutions-coming-soon h2 {
        font-size: 30px;
    }

    .capabilities-copy h2 {
        font-size: 34px;
    }

    .project-band h2 {
        font-size: 23px;
    }

    .project-band i {
        display: block;
        margin: 12px auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .quote-hero-bar h1,
    .admin-hero h1 {
        font-size: 30px;
    }

    .about-hero {
        padding: 54px 26px;
    }

    .about-hero h1 {
        font-size: 38px;
    }

    .about-hero p {
        font-size: 17px;
    }

    .portfolio-content h1 {
        font-size: 42px;
    }

    .founder-text h2 {
        font-size: 30px;
    }

    .founder-photo {
        height: 360px;
    }

    .combined-login-header h1 {
        font-size: 34px;
    }

    .admin-feature-bar,
    .admin-file-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-admin-link-section {
        padding: 20px 24px 0;
        text-align: center;
    }
}
/* =========================
   Login Form Visibility Fix
========================= */

.estimate-card form {
    display: block;
}

.estimate-card .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin-top: 24px;
}

.estimate-card .full-width {
    display: block;
    width: 100%;
}

.estimate-card label {
    display: block;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 8px;
}

.estimate-card input[type="text"],
.estimate-card input[type="email"],
.estimate-card input[type="password"],
.estimate-card input[type="number"] {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--navy);
    font-size: 15px;
    opacity: 1;
    visibility: visible;
}

.estimate-card input::placeholder {
    color: #94A3B8;
}

.estimate-card #submitButton {
    margin-top: 28px;
}
