/* ============================================================
   BIGWINGS SPORTS COURTS
   SMART COURT VISUALIZER
   visualizer.css
   ============================================================ */

/* ============================================================
   01. VARIABLES / BASE
   ============================================================ */

:root {
    --bw-maroon: #7c201f;
    --bw-maroon-dark: #5f1716;
    --bw-maroon-soft: #f5eaea;

    --bw-dark: #1b1b1b;
    --bw-charcoal: #292929;
    --bw-text: #606060;
    --bw-muted: #858585;

    --bw-white: #ffffff;
    --bw-soft: #f7f6f5;
    --bw-soft-2: #f1efed;
    --bw-border: #e5e1de;

    --bw-success: #477354;
    --bw-error: #a62828;

    --bw-radius: 18px;
    --bw-radius-sm: 12px;

    --bw-shadow:
        0 18px 45px rgba(0, 0, 0, 0.07);

    --bw-shadow-lg:
        0 30px 70px rgba(0, 0, 0, 0.10);

    --bw-max: 1180px;

    --bw-font:
        "Poppins",
        Arial,
        Helvetica,
        sans-serif;
}


/* Keep Visualizer typography consistent */
.bw-viz-intro,
.bw-viz-app,
.bw-viz-intro *,
.bw-viz-app * {
    box-sizing: border-box;
    font-family: var(--bw-font);
}

.bw-viz-intro h1,
.bw-viz-intro h2,
.bw-viz-intro h3,
.bw-viz-app h1,
.bw-viz-app h2,
.bw-viz-app h3 {
    font-family: var(--bw-font);
    font-weight: 800;
    letter-spacing: -0.035em;
}


/* ============================================================
   02. INTRO / HERO
   ============================================================ */

.bw-viz-intro {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(124, 32, 31, 0.08),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8f6f5 100%
        );

    border-bottom: 1px solid var(--bw-border);
}

.bw-intro-inner {
    width: min(
        var(--bw-max),
        calc(100% - 48px)
    );

    margin: 0 auto;
    padding: 90px 0;

    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(340px, 0.85fr);

    gap: 90px;
    align-items: center;
}


/* kicker */

.bw-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;

    color: var(--bw-maroon);

    font-size: 13px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.bw-kicker::before {
    content: "";
    display: block;

    width: 32px;
    height: 2px;

    background: var(--bw-maroon);
}


/* main heading */

.bw-viz-intro h1 {
    max-width: 700px;

    margin: 0;

    color: var(--bw-charcoal);

    font-size: clamp(
        44px,
        5vw,
        70px
    );

    line-height: 1.02;
}

.bw-viz-intro h1 span {
    display: block;
    color: var(--bw-maroon);
}


/* intro copy */

.bw-viz-intro > .bw-intro-inner > div:first-child > p {
    max-width: 660px;

    margin: 26px 0 0;

    color: var(--bw-text);

    font-size: 17px;
    line-height: 1.8;
}


/* ============================================================
   03. INTRO ASSESSMENT CARD
   ============================================================ */

.bw-intro-card {
    position: relative;

    padding: 34px;

    overflow: hidden;

    background: var(--bw-white);

    border: 1px solid var(--bw-border);
    border-radius: 22px;

    box-shadow: var(--bw-shadow-lg);
}

.bw-intro-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--bw-maroon);
}


.bw-intro-card-top {
    display: flex;
    align-items: center;
    gap: 18px;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--bw-border);
}

.bw-intro-card-icon {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: var(--bw-maroon-soft);
    color: var(--bw-maroon);

    font-size: 21px;
}

.bw-intro-card h3 {
    margin: 0 0 5px;

    color: var(--bw-charcoal);

    font-size: 20px;
    line-height: 1.25;
}

.bw-intro-card-top p {
    margin: 0;

    color: var(--bw-muted);

    font-size: 13px;
    line-height: 1.55;
}


/* intro list */

.bw-intro-list {
    display: grid;
    gap: 14px;

    padding-top: 25px;
}

.bw-intro-list > div {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #4c4c4c;

    font-size: 14px;
    font-weight: 600;
}

.bw-intro-list i {
    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--bw-maroon);
    color: #fff;

    font-size: 10px;
}


/* ============================================================
   04. VISUALIZER APPLICATION
   ============================================================ */

.bw-viz-app {
    width: min(
        var(--bw-max),
        calc(100% - 48px)
    );

    margin: 0 auto;

    padding: 70px 0 100px;

    color: var(--bw-text);
}


/* ============================================================
   05. PROGRESS BAR
   ============================================================ */

.bw-progress {
    position: relative;

    margin-bottom: 65px;
    padding: 0 10px;
}

.bw-progress-track {
    position: relative;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}


/* base line */

.bw-progress-track::before {
    content: "";

    position: absolute;

    top: 21px;
    left: 10%;
    right: 10%;

    height: 3px;

    background: #e4dfdc;

    z-index: 0;
}


/* progress fill */

.bw-progress-fill {
    position: absolute;

    top: 21px;
    left: 10%;

    width: 0%;
    height: 3px;

    background: var(--bw-maroon);

    z-index: 1;

    transition:
        width 0.45s ease;
}


/* each progress step */

.bw-progress-item {
    position: relative;
    z-index: 2;

    width: 20%;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.bw-progress-number {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    margin-bottom: 10px;

    border: 2px solid #ddd7d4;
    border-radius: 50%;

    background: #fff;

    color: #999;

    font-size: 14px;
    font-weight: 800;

    transition: 0.3s ease;
}

.bw-progress-label {
    color: #929292;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.4px;
}


/* active */

.bw-progress-item.active
.bw-progress-number {
    border-color: var(--bw-maroon);

    background: var(--bw-maroon);
    color: #fff;

    box-shadow:
        0 0 0 7px
        rgba(124, 32, 31, 0.09);
}

.bw-progress-item.active
.bw-progress-label {
    color: var(--bw-maroon);
}


/* completed */

.bw-progress-item.complete
.bw-progress-number {
    border-color: var(--bw-maroon);
    background: var(--bw-maroon);
    color: #fff;
}

.bw-progress-item.complete
.bw-progress-label {
    color: #555;
}


/* ============================================================
   06. STEPS
   ============================================================ */

.bw-step {
    display: none;

    animation:
        bwStepFade 0.4s ease;
}

.bw-step.active {
    display: block;
}

@keyframes bwStepFade {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   07. STEP HEADINGS
   ============================================================ */

.bw-step-heading {
    max-width: 760px;

    margin-bottom: 42px;
}

.bw-step-count {
    display: block;

    margin-bottom: 11px;

    color: var(--bw-maroon);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.bw-step-heading h2 {
    margin: 0;

    color: var(--bw-charcoal);

    font-size: clamp(
        34px,
        4vw,
        52px
    );

    line-height: 1.08;
}

.bw-step-heading p {
    max-width: 680px;

    margin: 18px 0 0;

    color: var(--bw-text);

    font-size: 16px;
    line-height: 1.75;
}


/* ============================================================
   08. COURT SELECTION GRID
   ============================================================ */

.bw-court-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* wrapper */

.bw-court-card {
    position: relative;
}


/* hide actual radio */

.bw-court-card input[type="radio"] {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}


/* card */

.bw-court-card label {
    position: relative;

    min-height: 210px;

    display: flex;
    flex-direction: column;

    padding: 28px;

    cursor: pointer;

    background: #fff;

    border:
        1px solid
        var(--bw-border);

    border-radius: var(--bw-radius);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}


/* hover */

.bw-court-card label:hover {
    transform: translateY(-5px);

    border-color: #cfb4b2;

    box-shadow: var(--bw-shadow);
}


/* icon */

.bw-court-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    margin-bottom: 28px;

    border-radius: 14px;

    background: var(--bw-maroon-soft);
    color: var(--bw-maroon);

    font-size: 21px;

    transition: 0.25s ease;
}


/* card text */

.bw-court-card h3 {
    margin: 0 0 9px;

    color: var(--bw-charcoal);

    font-size: 20px;
    line-height: 1.3;
}

.bw-court-card p {
    margin: 0;

    color: #777;

    font-size: 13px;
    line-height: 1.6;
}


/* selected card */

.bw-court-card
input[type="radio"]:checked + label {
    border-color: var(--bw-maroon);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fbf6f6
        );

    box-shadow:
        0 16px 40px
        rgba(124, 32, 31, 0.12);
}


/* selected tick */

.bw-court-card
input[type="radio"]:checked + label::after {
    content: "\f00c";

    position: absolute;

    top: 18px;
    right: 18px;

    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--bw-maroon);
    color: #fff;

    font-family: "Font Awesome 6 Pro",
                 "Font Awesome 6 Free";
    font-weight: 900;

    font-size: 11px;
}


.bw-court-card
input[type="radio"]:checked
+ label
.bw-court-icon {
    background: var(--bw-maroon);
    color: #fff;
}


/* keyboard accessibility */

.bw-court-card
input[type="radio"]:focus-visible
+ label {
    outline:
        3px solid
        rgba(124, 32, 31, 0.18);

    outline-offset: 3px;
}


/* ============================================================
   09. FORMS
   ============================================================ */

.bw-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.bw-form-group.full {
    grid-column: 1 / -1;
}

.bw-form-group label {
    display: block;

    margin-bottom: 9px;

    color: var(--bw-charcoal);

    font-size: 13px;
    font-weight: 700;
}

.bw-field {
    width: 100%;

    min-height: 56px;

    padding:
        0 17px;

    border:
        1px solid
        #ddd8d5;

    border-radius: 11px;

    outline: none;

    background: #fff;
    color: #333;

    font-family: var(--bw-font);
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

textarea.bw-field {
    min-height: 145px;

    padding: 16px 17px;

    resize: vertical;

    line-height: 1.65;
}

.bw-field::placeholder {
    color: #aaa;
}

.bw-field:focus {
    border-color: var(--bw-maroon);

    box-shadow:
        0 0 0 4px
        rgba(124, 32, 31, 0.07);
}


/* SELECTS */

select.bw-field {
    cursor: pointer;

    appearance: auto;

    background-color: #fff;
}


/* ============================================================
   10. VALIDATION
   ============================================================ */

.bw-validation {
    display: none;

    margin-top: 24px;

    padding: 14px 17px;

    border:
        1px solid
        rgba(166, 40, 40, 0.20);

    border-radius: 10px;

    background: #fff4f4;
    color: var(--bw-error);

    font-size: 13px;
    font-weight: 600;
}

.bw-validation.show {
    display: block;

    animation:
        bwValidation 0.3s ease;
}

@keyframes bwValidation {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   11. PHOTO GUIDE
   ============================================================ */

.bw-photo-guide {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin-bottom: 30px;

    padding: 22px 24px;

    border:
        1px solid
        #e4dedb;

    border-radius: 14px;

    background: #faf8f7;
}

.bw-photo-guide > i {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: var(--bw-maroon);
    color: #fff;

    font-size: 17px;
}

.bw-photo-guide strong {
    display: block;

    margin-bottom: 5px;

    color: var(--bw-charcoal);

    font-size: 14px;
}

.bw-photo-guide p {
    margin: 0;

    color: #707070;

    font-size: 13px;
    line-height: 1.65;
}


/* ============================================================
   12. PHOTO UPLOAD GRID
   ============================================================ */

.bw-photo-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* card */

.bw-upload-card {
    position: relative;

    min-height: 260px;

    overflow: hidden;

    border:
        2px dashed
        #d9d2ce;

    border-radius: 16px;

    background: #faf9f8;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.bw-upload-card:hover {
    border-color: var(--bw-maroon);

    background: #fbf6f6;
}


/* invisible file input */

.bw-upload-card input[type="file"] {
    position: absolute;
    inset: 0;

    z-index: 5;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}


/* placeholder */

.bw-upload-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 30px;

    text-align: center;
}

.bw-upload-placeholder > i {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    margin-bottom: 17px;

    border-radius: 50%;

    background: var(--bw-maroon-soft);
    color: var(--bw-maroon);

    font-size: 19px;
}

.bw-upload-placeholder strong {
    display: block;

    margin-bottom: 6px;

    color: var(--bw-charcoal);

    font-size: 15px;
}

.bw-upload-placeholder small {
    max-width: 230px;

    color: #8b8b8b;

    font-size: 12px;
    line-height: 1.55;
}


/* image preview */

.bw-upload-preview {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: none;

    object-fit: cover;
}


/* uploaded state */

.bw-upload-card.has-image {
    border-style: solid;
    border-color: var(--bw-maroon);
}

.bw-upload-card.has-image
.bw-upload-preview {
    display: block;
}

.bw-upload-card.has-image
.bw-upload-placeholder {
    display: none;
}


/* success tick */

.bw-photo-check {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 6;

    width: 32px;
    height: 32px;

    display: none;
    place-items: center;

    border-radius: 50%;

    background: var(--bw-maroon);
    color: #fff;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.20);

    font-size: 11px;
}

.bw-upload-card.has-image
.bw-photo-check {
    display: grid;
}


/* ============================================================
   13. MEASUREMENT SECTION
   ============================================================ */

.bw-measure-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);

    gap: 55px;

    align-items: start;
}


/* measurement information */

.bw-measure-info {
    padding: 35px;

    border-radius: 18px;

    background: var(--bw-dark);
    color: #c8c8c8;

    box-shadow: var(--bw-shadow);
}

.bw-measure-info > i {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin-bottom: 26px;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.08);

    color: #fff;

    font-size: 21px;
}

.bw-measure-info h3 {
    margin: 0 0 15px;

    color: #fff;

    font-size: 24px;
    line-height: 1.25;
}

.bw-measure-info > p {
    margin: 0;

    color: #bdbdbd;

    font-size: 14px;
    line-height: 1.7;
}


/* list */

.bw-measure-info ul {
    margin: 27px 0 0;
    padding: 0;

    list-style: none;
}

.bw-measure-info li {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 11px 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);

    color: #d1d1d1;

    font-size: 13px;
}

.bw-measure-info li:last-child {
    border-bottom: 0;
}

.bw-measure-info li i {
    color: #e0a6a3;
}


/* units */

.bw-unit-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        150px;

    gap: 10px;
}

.bw-help {
    display: block;

    margin-top: 9px;

    color: #929292;

    font-size: 11px;
    line-height: 1.55;
}


/* ============================================================
   14. REVIEW / SUMMARY
   ============================================================ */

.bw-review-layout {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.bw-review-card {
    padding: 32px;

    border:
        1px solid
        var(--bw-border);

    border-radius: 18px;

    background: #fff;

    box-shadow: var(--bw-shadow);
}

.bw-review-title {
    margin-bottom: 22px;

    color: var(--bw-maroon);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}


/* summary rows */

.bw-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 25px;

    padding: 15px 0;

    border-bottom:
        1px solid
        #ece8e5;
}

.bw-summary-row:last-child {
    border-bottom: 0;
}

.bw-summary-row span {
    color: #858585;

    font-size: 13px;
}

.bw-summary-row strong {
    max-width: 60%;

    color: var(--bw-charcoal);

    font-size: 13px;
    font-weight: 700;

    text-align: right;
}


/* ============================================================
   15. DARK SMART ANALYSIS CARD
   ============================================================ */

.bw-review-card.dark {
    border-color: var(--bw-dark);

    background:
        linear-gradient(
            145deg,
            #292929,
            #171717
        );

    color: #c8c8c8;
}

.bw-review-card.dark
.bw-review-title {
    color: #e1aaa7;
}

.bw-analysis-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin-bottom: 25px;

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.08);

    color: #fff;

    font-size: 20px;
}

.bw-review-card.dark h3 {
    margin: 0 0 14px;

    color: #fff;

    font-size: 24px;
    line-height: 1.3;
}

.bw-review-card.dark > p {
    margin: 0;

    color: #bcbcbc;

    font-size: 14px;
    line-height: 1.75;
}


/* preliminary notice */

.bw-preliminary {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 26px;

    padding: 17px;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.04);

    color: #aaa;

    font-size: 11px;
    line-height: 1.65;
}

.bw-preliminary i {
    margin-top: 3px;

    color: #e1aaa7;
}


/* ============================================================
   16. STEP NAVIGATION
   ============================================================ */

.bw-step-nav {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 20px;

    margin-top: 55px;
    padding-top: 30px;

    border-top:
        1px solid
        var(--bw-border);
}


/* buttons */

.bw-btn {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 0 25px;

    border-radius: 999px;

    font-family: var(--bw-font);
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.bw-btn:hover {
    transform: translateY(-2px);
}


/* primary */

.bw-btn-primary {
    justify-self: end;

    border:
        1px solid
        var(--bw-maroon);

    background: var(--bw-maroon);
    color: #fff;
}

.bw-btn-primary:hover {
    border-color: var(--bw-maroon-dark);

    background: var(--bw-maroon-dark);
    color: #fff;

    box-shadow:
        0 12px 25px
        rgba(124, 32, 31, 0.18);
}


/* secondary */

.bw-btn-secondary {
    justify-self: start;

    border:
        1px solid
        #d9d4d1;

    background: #fff;
    color: #444;
}

.bw-btn-secondary:hover {
    border-color: var(--bw-charcoal);

    background: var(--bw-charcoal);
    color: #fff;
}


/* account note */

.bw-no-account {
    color: #8a8a8a;

    font-size: 11px;
    font-weight: 600;

    text-align: center;
}


/* generate button */

.bw-btn-generate {
    min-width: 245px;
}


/* ============================================================
   17. REMOVE THEME INTERFERENCE
   ============================================================ */

/*
   Your main style.css has its own global theme rules.
   These overrides keep the Visualizer isolated.
*/

.bw-viz-app form {
    margin: 0;
}

.bw-viz-app label {
    cursor: pointer;
}

.bw-viz-app input,
.bw-viz-app textarea,
.bw-viz-app select,
.bw-viz-app button {
    font-family: var(--bw-font);
}

.bw-viz-app button {
    outline: none;
}

.bw-viz-app ul {
    padding-left: 0;
}

.bw-viz-app p {
    letter-spacing: 0;
}

.bw-viz-app h2,
.bw-viz-app h3,
.bw-viz-intro h1,
.bw-viz-intro h3 {
    text-transform: none;
}


/* ============================================================
   18. TABLET
   ============================================================ */

@media (max-width: 1050px) {

    .bw-intro-inner {
        gap: 50px;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, 0.8fr);
    }

    .bw-court-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .bw-measure-layout {
        gap: 35px;
    }

}


/* ============================================================
   19. TABLET / SMALL LAPTOP
   ============================================================ */

@media (max-width: 850px) {

    .bw-intro-inner {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 65px 0;
    }

    .bw-intro-card {
        max-width: 620px;
    }


    .bw-viz-app {
        padding-top: 55px;
    }


    /* progress */

    .bw-progress {
        margin-bottom: 50px;
    }

    .bw-progress-label {
        font-size: 10px;
    }


    /* measurement */

    .bw-measure-layout {
        grid-template-columns: 1fr;
    }


    /* review */

    .bw-review-layout {
        grid-template-columns: 1fr;
    }

}


/* ============================================================
   20. MOBILE
   ============================================================ */

@media (max-width: 650px) {

    .bw-intro-inner,
    .bw-viz-app {
        width:
            min(
                100% - 30px,
                var(--bw-max)
            );
    }


    /* INTRO */

    .bw-intro-inner {
        padding: 50px 0;
    }

    .bw-kicker {
        font-size: 11px;
    }

    .bw-viz-intro h1 {
        font-size: 40px;
        line-height: 1.05;
    }

    .bw-viz-intro
    > .bw-intro-inner
    > div:first-child
    > p {
        margin-top: 20px;

        font-size: 15px;
        line-height: 1.7;
    }

    .bw-intro-card {
        padding: 25px;
    }


    /* APP */

    .bw-viz-app {
        padding:
            45px 0 70px;
    }


    /* PROGRESS */

    .bw-progress {
        padding: 0;

        margin-bottom: 45px;
    }

    .bw-progress-track::before {
        left: 10%;
        right: 10%;

        top: 18px;
    }

    .bw-progress-fill {
        top: 18px;
    }

    .bw-progress-number {
        width: 38px;
        height: 38px;

        font-size: 12px;
    }

    .bw-progress-label {
        display: none;
    }


    /* HEADING */

    .bw-step-heading {
        margin-bottom: 30px;
    }

    .bw-step-heading h2 {
        font-size: 33px;
    }

    .bw-step-heading p {
        font-size: 14px;
    }


    /* COURTS */

    .bw-court-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .bw-court-card label {
        min-height: 0;

        padding: 21px;

        display: grid;

        grid-template-columns:
            48px 1fr;

        column-gap: 16px;
        align-items: center;
    }

    .bw-court-icon {
        grid-row: 1 / 3;

        width: 48px;
        height: 48px;

        margin: 0;

        font-size: 17px;
    }

    .bw-court-card h3 {
        margin: 0 38px 3px 0;

        font-size: 17px;
    }

    .bw-court-card p {
        font-size: 12px;
    }


    /* FORM */

    .bw-form-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .bw-form-group.full {
        grid-column: auto;
    }


    /* PHOTOS */

    .bw-photo-guide {
        padding: 18px;
    }

    .bw-photo-grid {
        grid-template-columns: 1fr;
    }

    .bw-upload-card {
        min-height: 220px;
    }


    /* MEASURE */

    .bw-measure-info {
        padding: 27px;
    }

    .bw-unit-row {
        grid-template-columns:
            minmax(0, 1fr)
            110px;
    }


    /* REVIEW */

    .bw-review-card {
        padding: 25px;
    }


    /* NAV */

    .bw-step-nav {
        grid-template-columns:
            1fr 1fr;

        gap: 10px;

        margin-top: 40px;
    }

    .bw-no-account {
        grid-column: 1 / -1;
        grid-row: 2;

        margin-top: 5px;
    }

    .bw-btn {
        width: 100%;

        min-height: 52px;

        padding: 0 17px;
    }

    .bw-btn-secondary {
        justify-self: stretch;
    }

    .bw-btn-primary {
        justify-self: stretch;
    }

    .bw-btn-generate {
        min-width: 0;
    }

}


/* ============================================================
   21. VERY SMALL PHONES
   ============================================================ */

@media (max-width: 400px) {

    .bw-viz-intro h1 {
        font-size: 35px;
    }

    .bw-step-heading h2 {
        font-size: 29px;
    }

    .bw-intro-card {
        padding: 21px;
    }

    .bw-intro-card-top {
        align-items: flex-start;
    }

    .bw-unit-row {
        grid-template-columns: 1fr;
    }

    .bw-summary-row {
        flex-direction: column;

        gap: 4px;
    }

    .bw-summary-row strong {
        max-width: 100%;

        text-align: left;
    }

}


/* ============================================================
   22. DARK BACKGROUND TEXT SAFETY
   ============================================================ */

.bw-measure-info,
.bw-review-card.dark {
    color: #c8c8c8;
}

.bw-measure-info h1,
.bw-measure-info h2,
.bw-measure-info h3,
.bw-measure-info h4,
.bw-review-card.dark h1,
.bw-review-card.dark h2,
.bw-review-card.dark h3,
.bw-review-card.dark h4 {
    color: #ffffff !important;
}


/* ============================================================
   23. ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .bw-step,
    .bw-progress-fill,
    .bw-court-card label,
    .bw-btn,
    .bw-field {
        transition: none !important;
        animation: none !important;
    }

}




        .bw-maint-page,
        .bw-maint-page * {
            box-sizing: border-box;
        }

        .bw-maint-page {
            width: min(1180px, calc(100% - 40px));
            margin: 0 auto;
        }


        /* =====================================================
           HERO
        ====================================================== */

        .bw-maint-hero {
            position: relative;
            overflow: hidden;
        }

        .bw-maint-hero .bw-intro-inner {
            position: relative;
            z-index: 2;
        }

        .bw-maint-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            margin-top: 30px;
        }


        /* HERO SERVICE CARD */

        .bw-maint-status {
            margin-top: 25px;
        }

        .bw-maint-status-row {
            display: flex;
            align-items: flex-start;
            gap: 13px;

            padding: 14px 0;

            border-bottom: 1px solid #ebe6e3;
        }

        .bw-maint-status-row:last-child {
            border-bottom: 0;
        }

        .bw-maint-status-row i {
            width: 29px;
            height: 29px;

            flex: 0 0 29px;

            display: grid;
            place-items: center;

            border-radius: 50%;

            background: #f5eaea;
            color: #7c201f;

            font-size: 11px;
        }

        .bw-maint-status-row strong {
            display: block;

            margin-bottom: 3px;

            font-family: 'Poppins', sans-serif;
            font-size: 13px;
            font-weight: 700;

            color: #292929;
        }

        .bw-maint-status-row span {
            display: block;

            font-size: 12px;
            line-height: 1.6;

            color: #777;
        }


        /* =====================================================
           SERVICE INTRO
        ====================================================== */

        .bw-maint-intro {
            padding: 75px 0 30px;
        }

        .bw-maint-intro-grid {
            display: grid;

            grid-template-columns:
                minmax(0, .85fr)
                minmax(0, 1.15fr);

            gap: 70px;

            align-items: end;
        }

        .bw-maint-intro-copy p {
            margin: 0;

            font-size: 16px;
            line-height: 1.85;

            color: #656565;
        }


        /* =====================================================
           MAINTENANCE SERVICES
        ====================================================== */

        .bw-maint-services {
            display: grid;

            grid-template-columns:
                repeat(3, minmax(0, 1fr));

            gap: 18px;

            padding: 45px 0 80px;
        }

        .bw-maint-card {
            position: relative;

            min-height: 285px;

            padding: 30px;

            border: 1px solid #e5e1de;
            border-radius: 18px;

            background: #fff;

            transition:
                transform .25s ease,
                border-color .25s ease,
                box-shadow .25s ease;
        }

        .bw-maint-card:hover {
            transform: translateY(-5px);

            border-color: #cbb1af;

            box-shadow:
                0 18px 45px rgba(0,0,0,.07);
        }

        .bw-maint-number {
            position: absolute;

            top: 25px;
            right: 25px;

            font-family: 'Poppins', sans-serif;
            font-size: 11px;
            font-weight: 800;

            letter-spacing: 1px;

            color: #aaa;
        }

        .bw-maint-card .bw-court-icon {
            margin-bottom: 28px;
        }

        .bw-maint-card h3 {
            margin: 0 0 12px;

            font-family: 'Poppins', sans-serif;
            font-size: 20px;
            font-weight: 700;
            line-height: 1.35;

            color: #292929;
        }

        .bw-maint-card p {
            margin: 0;

            font-size: 13px;
            line-height: 1.75;

            color: #737373;
        }


        /* =====================================================
           PREVENTATIVE MAINTENANCE
        ====================================================== */

        .bw-preventative {
            margin-bottom: 85px;

            overflow: hidden;

            border-radius: 24px;

            background: #202020;
        }

        .bw-preventative-grid {
            display: grid;

            grid-template-columns:
                minmax(0, 1fr)
                minmax(0, 1fr);

            min-height: 520px;
        }

        .bw-preventative-copy {
            padding: 65px;

            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .bw-preventative-copy .bw-kicker {
            color: #e2aaa7;
        }

        .bw-preventative-copy .bw-kicker::before {
            background: #e2aaa7;
        }

        .bw-preventative-copy h2 {
            margin: 0;

            max-width: 520px;

            font-family: 'Poppins', sans-serif;

            font-size: clamp(34px, 4vw, 50px);
            font-weight: 800;
            line-height: 1.08;
            letter-spacing: -.035em;

            color: #fff;
        }

        .bw-preventative-copy > p {
            margin: 22px 0 0;

            max-width: 560px;

            font-size: 15px;
            line-height: 1.8;

            color: #bcbcbc;
        }

        .bw-preventative-list {
            display: grid;
            gap: 13px;

            margin-top: 30px;
        }

        .bw-preventative-list > div {
            display: flex;
            align-items: center;
            gap: 12px;

            color: #dedede;

            font-size: 13px;
            font-weight: 600;
        }

        .bw-preventative-list i {
            width: 26px;
            height: 26px;

            flex: 0 0 26px;

            display: grid;
            place-items: center;

            border-radius: 50%;

            background: rgba(255,255,255,.08);
            color: #e2aaa7;

            font-size: 10px;
        }


        /* RIGHT SIDE */

        .bw-preventative-panel {
            padding: 55px;

            display: flex;
            align-items: center;

            background:
                linear-gradient(
                    145deg,
                    #76201f,
                    #531515
                );
        }

        .bw-plan-card {
            width: 100%;

            padding: 35px;

            border: 1px solid rgba(255,255,255,.13);
            border-radius: 18px;

            background: rgba(255,255,255,.07);

            backdrop-filter: blur(8px);
        }

        .bw-plan-card > span {
            display: block;

            margin-bottom: 8px;

            font-family: 'Poppins', sans-serif;

            font-size: 11px;
            font-weight: 800;

            letter-spacing: 1.4px;

            color: #e6b6b4;
        }

        .bw-plan-card h3 {
            margin: 0 0 22px;

            font-family: 'Poppins', sans-serif;
            font-size: 26px;
            font-weight: 700;
            line-height: 1.25;

            color: #fff;
        }

        .bw-plan-item {
            display: flex;
            align-items: flex-start;
            gap: 13px;

            padding: 15px 0;

            border-bottom:
                1px solid rgba(255,255,255,.11);
        }

        .bw-plan-item:last-child {
            border-bottom: 0;
        }

        .bw-plan-item i {
            margin-top: 3px;
            color: #fff;
        }

        .bw-plan-item strong {
            display: block;

            margin-bottom: 3px;

            font-size: 13px;
            font-weight: 700;

            color: #fff;
        }

        .bw-plan-item p {
            margin: 0;

            font-size: 12px;
            line-height: 1.6;

            color: #d6bdbc;
        }


        /* =====================================================
           WHEN DOES A COURT NEED ATTENTION?
        ====================================================== */

        .bw-signs-section {
            padding: 0 0 85px;
        }

        .bw-signs-grid {
            display: grid;

            grid-template-columns:
                repeat(2, minmax(0, 1fr));

            gap: 16px;

            margin-top: 40px;
        }

        .bw-sign-card {
            display: flex;
            align-items: flex-start;
            gap: 18px;

            padding: 25px;

            border: 1px solid #e5e1de;
            border-radius: 15px;

            background: #fff;
        }

        .bw-sign-icon {
            width: 46px;
            height: 46px;

            flex: 0 0 46px;

            display: grid;
            place-items: center;

            border-radius: 12px;

            background: #f5eaea;
            color: #7c201f;

            font-size: 16px;
        }

        .bw-sign-card h3 {
            margin: 0 0 6px;

            font-family: 'Poppins', sans-serif;
            font-size: 16px;
            font-weight: 700;

            color: #292929;
        }

        .bw-sign-card p {
            margin: 0;

            font-size: 13px;
            line-height: 1.65;

            color: #737373;
        }


        /* =====================================================
           COURT TYPES
        ====================================================== */

        .bw-maint-courts {
            padding: 70px 0;

            border-top: 1px solid #e7e3e0;
            border-bottom: 1px solid #e7e3e0;
        }

        .bw-maint-court-grid {
            display: grid;

            grid-template-columns:
                repeat(6, minmax(0, 1fr));

            gap: 12px;

            margin-top: 38px;
        }

        .bw-maint-court {
            min-height: 145px;

            padding: 22px 15px;

            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            text-align: center;

            border: 1px solid #e5e1de;
            border-radius: 14px;

            background: #fff;
        }

        .bw-maint-court i {
            margin-bottom: 14px;

            font-size: 21px;

            color: #7c201f;
        }

        .bw-maint-court strong {
            font-family: 'Poppins', sans-serif;
            font-size: 13px;
            font-weight: 700;

            color: #292929;
        }


        /* =====================================================
           PROCESS
        ====================================================== */

        .bw-maint-process {
            padding: 85px 0;
        }

        .bw-maint-process-grid {
            display: grid;

            grid-template-columns:
                repeat(4, minmax(0, 1fr));

            gap: 0;

            margin-top: 45px;
        }

        .bw-process-item {
            position: relative;

            padding: 0 30px;

            border-right: 1px solid #dedad7;
        }

        .bw-process-item:first-child {
            padding-left: 0;
        }

        .bw-process-item:last-child {
            padding-right: 0;
            border-right: 0;
        }

        .bw-process-number {
            margin-bottom: 18px;

            font-family: 'Poppins', sans-serif;

            font-size: 12px;
            font-weight: 800;

            letter-spacing: 1.5px;

            color: #7c201f;
        }

        .bw-process-item h3 {
            margin: 0 0 10px;

            font-family: 'Poppins', sans-serif;
            font-size: 18px;
            font-weight: 700;

            color: #292929;
        }

        .bw-process-item p {
            margin: 0;

            font-size: 13px;
            line-height: 1.7;

            color: #747474;
        }


        /* =====================================================
           FINAL CTA
        ====================================================== */

        .bw-maint-cta {
            margin-bottom: 90px;

            padding: 60px;

            display: flex;
            align-items: center;
            justify-content: space-between;

            gap: 50px;

            border-radius: 22px;

            background: #f4f1ef;
        }

        .bw-maint-cta-copy {
            max-width: 700px;
        }

        .bw-maint-cta span {
            display: block;

            margin-bottom: 8px;

            font-family: 'Poppins', sans-serif;

            font-size: 11px;
            font-weight: 800;

            letter-spacing: 1.4px;

            color: #7c201f;
        }

        .bw-maint-cta h2 {
            margin: 0;

            font-family: 'Poppins', sans-serif;

            font-size: clamp(30px, 4vw, 44px);
            font-weight: 800;
            line-height: 1.12;
            letter-spacing: -.03em;

            color: #292929;
        }

        .bw-maint-cta p {
            margin: 15px 0 0;

            font-size: 14px;
            line-height: 1.75;

            color: #696969;
        }

        .bw-maint-cta-actions {
            flex: 0 0 auto;

            display: flex;
            flex-direction: column;

            gap: 10px;
        }


        /* =====================================================
           RESPONSIVE
        ====================================================== */

        @media (max-width: 1050px) {

            .bw-maint-services {
                grid-template-columns:
                    repeat(2, minmax(0, 1fr));
            }

            .bw-maint-court-grid {
                grid-template-columns:
                    repeat(3, minmax(0, 1fr));
            }

            .bw-maint-process-grid {
                grid-template-columns:
                    repeat(2, minmax(0, 1fr));

                gap: 35px 0;
            }

            .bw-process-item:nth-child(2) {
                border-right: 0;
            }

        }


        @media (max-width: 850px) {

            .bw-maint-page {
                width: min(100% - 30px, 760px);
            }

            .bw-maint-intro-grid,
            .bw-preventative-grid {
                grid-template-columns: 1fr;
            }

            .bw-maint-intro-grid {
                gap: 25px;
            }

            .bw-preventative-copy,
            .bw-preventative-panel {
                padding: 45px;
            }

            .bw-signs-grid {
                grid-template-columns: 1fr;
            }

            .bw-maint-cta {
                align-items: flex-start;
                flex-direction: column;
            }

            .bw-maint-cta-actions {
                width: 100%;
                flex-direction: row;
            }

        }


        @media (max-width: 650px) {

            .bw-maint-page {
                width: calc(100% - 24px);
            }

            .bw-maint-actions {
                flex-direction: column;
            }

            .bw-maint-actions .bw-btn {
                width: 100%;
            }

            .bw-maint-intro {
                padding-top: 55px;
            }

            .bw-maint-services {
                grid-template-columns: 1fr;

                padding-bottom: 60px;
            }

            .bw-maint-card {
                min-height: 0;
            }

            .bw-preventative {
                margin-bottom: 65px;
            }

            .bw-preventative-copy,
            .bw-preventative-panel {
                padding: 30px 22px;
            }

            .bw-plan-card {
                padding: 25px 20px;
            }

            .bw-maint-court-grid {
                grid-template-columns:
                    repeat(2, minmax(0, 1fr));
            }

            .bw-maint-process-grid {
                grid-template-columns: 1fr;
            }

            .bw-process-item,
            .bw-process-item:first-child,
            .bw-process-item:last-child {
                padding:
                    0 0 28px;

                border-right: 0;
                border-bottom:
                    1px solid #dedad7;
            }

            .bw-process-item:last-child {
                padding-bottom: 0;
                border-bottom: 0;
            }

            .bw-maint-cta {
                padding: 35px 24px;
            }

            .bw-maint-cta-actions {
                flex-direction: column;
            }

            .bw-maint-cta-actions .bw-btn {
                width: 100%;
            }

        }
/* =====================================================
   COURT CONDITION — BACKGROUND IMAGE
===================================================== */

.bw-signs-section {
    position: relative;
    isolation: isolate;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 90px max(6vw, calc((100vw - 1180px) / 2)) 95px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.0) 0%,
            rgba(255, 255, 255, 0.0) 48%,
            rgba(255, 255, 255, 0.0) 100%
        ),
        url("assets/img/bg/maintenance-bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* heading stays strong */

.bw-signs-section .bw-step-heading {
    position: relative;
    z-index: 2;
}

/* White heading copy over the Court Condition background */
.bw-signs-section .bw-step-count,
.bw-signs-section .bw-step-heading h2,
.bw-signs-section .bw-step-heading p {
    color: #fff !important;
}


/* cards become slightly glass-like */

.bw-signs-section .bw-sign-card {
    position: relative;
    z-index: 2;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(255, 255, 255, 0.75);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.07);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* mobile */

@media (max-width: 767px) {

    .bw-signs-section {
        padding-top: 65px;
        padding-bottom: 65px;

        background-position: 65% center;
    }

}
    