* {
    box-sizing: border-box;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            #29353d 0%,
            #12191f 42%,
            #070b0e 100%
        );

    color: #f4f4f4;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


.app {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;

    margin: auto;

    padding: 18px;
}


/* ==========================================
   HEADER
========================================== */

.header {
    text-align: center;

    border-bottom:
        1px solid #43515b;

    padding-bottom: 14px;
}


.sak {
    font-size: 38px;
    font-weight: 900;

    letter-spacing: -3px;

    color: #188bd2;
}


.division {
    color: #69be45;

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

    letter-spacing: 2px;

    margin-top: -4px;
}


.title {
    font-size: 30px;
    font-weight: 900;

    margin-top: 12px;
}


.subtitle {
    color: #aeb7bd;

    font-size: 12px;

    letter-spacing: 3px;
}


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

.pipe-hero {
    position: relative;

    height: 245px;

    margin:
        16px 0 6px;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 47%,
            #25333b 0%,
            #121b20 48%,
            #070b0e 100%
        );

    border:
        1px solid #394750;

    border-radius: 12px;

    box-shadow:
        inset 0 0 45px rgba(0,0,0,.7),
        0 8px 20px rgba(0,0,0,.22);
}


/* ==========================================
   ENGINEERING GRID
========================================== */

.tech-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(24,139,210,.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(24,139,210,.055) 1px,
            transparent 1px
        );

    background-size:
        24px 24px;

    pointer-events: none;
}


/* ==========================================
   TOP DIMENSION
========================================== */

.dimension-top {
    position: absolute;

    top: 13px;
    left: 50%;

    transform:
        translateX(-50%);

    color: #d9e1e5;

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

    letter-spacing: 2px;

    white-space: nowrap;
}


.dimension-top::before,
.dimension-top::after {
    content: "";

    position: absolute;

    top: 50%;

    width: 28px;
    height: 1px;

    background: #188bd2;
}


.dimension-top::before {
    right:
        calc(100% + 9px);
}


.dimension-top::after {
    left:
        calc(100% + 9px);
}


/* ==========================================
   TUNNEL STAGE
========================================== */

.tunnel-stage {
    position: absolute;

    left: 50%;
    top: 49%;

    width: 230px;
    height: 175px;

    transform:
        translate(-50%, -50%);

    display: flex;

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


/* ==========================================
   REAR SHADOW
========================================== */

.tunnel-back {
    position: absolute;

    background: #020405;

    filter:
        blur(10px);

    opacity: .8;

    transform:
        translateY(10px);

    transition:
        width .3s ease,
        height .3s ease,
        border-radius .3s ease;
}


/* ==========================================
   EXISTING HOST PIPE
========================================== */

.pipe-shell {
    position: relative;

    padding: 8px;

    background:
        linear-gradient(
            135deg,
            #777f83 0%,
            #3f494e 25%,
            #262f34 58%,
            #6c7579 100%
        );

    box-shadow:
        0 0 0 2px #20282c,
        0 0 18px rgba(24,139,210,.16),
        0 16px 25px rgba(0,0,0,.75);

    transition:
        width .3s ease,
        height .3s ease,
        border-radius .3s ease;
}


/* ==========================================
   GEOKRETE LINING
========================================== */

.geokrete-layer {
    width: 100%;
    height: 100%;

    padding:
        var(--lining-size, 10px);

    background:
        linear-gradient(
            145deg,
            #8bd166 0%,
            #69be45 28%,
            #4f9b33 68%,
            #78c653 100%
        );

    box-shadow:
        inset 0 0 5px rgba(255,255,255,.32),
        inset 0 0 12px rgba(0,0,0,.30),
        0 0 8px rgba(105,190,69,.20);

    transition:
        padding .25s ease,
        border-radius .3s ease;
}


/* ==========================================
   PIPE INTERIOR
========================================== */

.pipe-opening {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 47%,
            #172229 0%,
            #0a1014 53%,
            #020304 100%
        );

    box-shadow:
        inset 0 0 28px #000;

    transition:
        border-radius .3s ease;
}


/* ==========================================
   TUNNEL DEPTH
========================================== */

.tunnel-depth {
    position: absolute;
    inset: 0;

    display: flex;

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


.depth-ring {
    position: absolute;

    border:
        1px solid rgba(132,143,148,.22);

    box-shadow:
        0 0 8px rgba(0,0,0,.8);
}


.ring-1 {
    width: 70%;
    height: 70%;
}


.ring-2 {
    width: 42%;
    height: 42%;
}


.ring-3 {
    width: 16%;
    height: 16%;

    background: #010202;

    box-shadow:
        0 0 14px #000;
}


/* ==========================================
   ROUND
========================================== */

.pipe-shell.round-pipe,
.tunnel-back.round-pipe {
    width: 150px;
    height: 150px;

    border-radius: 50%;
}


.round-pipe .geokrete-layer,
.round-pipe .pipe-opening,
.round-pipe .depth-ring {
    border-radius: 50%;
}


/* ==========================================
   ARCH
========================================== */

.pipe-shell.arch-pipe,
.tunnel-back.arch-pipe {
    width: 175px;
    height: 150px;

    border-radius:
        88px 88px 9px 9px;
}


.arch-pipe .geokrete-layer {
    border-radius:
        78px 78px 6px 6px;
}


.arch-pipe .pipe-opening {
    border-radius:
        68px 68px 3px 3px;
}


.arch-pipe .depth-ring {
    border-radius:
        50% 50% 8% 8%;
}


/* ==========================================
   ELLIPTICAL
========================================== */

.pipe-shell.elliptical-pipe,
.tunnel-back.elliptical-pipe {
    width: 185px;
    height: 120px;

    border-radius: 50%;
}


.elliptical-pipe .geokrete-layer,
.elliptical-pipe .pipe-opening,
.elliptical-pipe .depth-ring {
    border-radius: 50%;
}


/* ==========================================
   THICKNESS CALLOUT
========================================== */

/*
   IMPORTANT:
   This is now positioned RELATIVE TO
   .pipe-shell rather than the hero card.
*/

.thickness-callout {
    position: absolute;

    z-index: 20;

    display: flex;

    align-items: center;

    pointer-events: none;

    transition:
        top .3s ease,
        left .3s ease,
        right .3s ease,
        bottom .3s ease;
}


.callout-dot {
    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #b5ee91;

    border:
        2px solid #69be45;

    box-shadow:
        0 0 8px rgba(105,190,69,.9);
}


.callout-line {
    position: absolute;

    height: 2px;

    background: #69be45;

    transform-origin:
        left center;
}


.callout-text {
    position: absolute;

    color: #8fda67;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;

    white-space: nowrap;

    margin-left: 10px;

    text-shadow:
        0 2px 3px #000;
}


/* ==========================================
   ROUND CALLOUT POSITION
========================================== */

.round-pipe .thickness-callout {
    right: 7px;
    bottom: 28px;
}


.round-pipe .callout-dot {
    left: -2px;
    top: -2px;
}


.round-pipe .callout-line {
    left: 3px;
    top: 1px;

    width: 55px;

    transform:
        rotate(28deg);
}


.round-pipe .callout-text {
    left: 52px;
    top: 18px;
}


/* ==========================================
   ARCH CALLOUT POSITION
========================================== */

.arch-pipe .thickness-callout {
    right: 7px;
    top: 73px;
}


.arch-pipe .callout-dot {
    left: -2px;
    top: -2px;
}


.arch-pipe .callout-line {
    left: 3px;
    top: 1px;

    width: 54px;

    transform:
        rotate(-17deg);
}


.arch-pipe .callout-text {
    left: 52px;
    top: -20px;
}


/* ==========================================
   ELLIPTICAL CALLOUT POSITION
========================================== */

.elliptical-pipe .thickness-callout {
    right: 8px;
    bottom: 23px;
}


.elliptical-pipe .callout-dot {
    left: -2px;
    top: -2px;
}


.elliptical-pipe .callout-line {
    left: 3px;
    top: 1px;

    width: 52px;

    transform:
        rotate(24deg);
}


.elliptical-pipe .callout-text {
    left: 49px;
    top: 16px;
}


/* ==========================================
   SHAPE LABEL
========================================== */

.visual-shape {
    position: absolute;

    bottom: 10px;
    left: 50%;

    transform:
        translateX(-50%);

    color: #68767e;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;

    white-space: nowrap;
}


/* ==========================================
   SHAPE SELECTOR
========================================== */

.shape-selector {
    display: grid;

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

    gap: 7px;

    margin:
        12px 0 18px;
}


.shape {
    min-height: 45px;

    border-radius: 6px;

    border:
        1px solid #46545d;

    background:
        linear-gradient(
            #202a30,
            #171f24
        );

    color: #c3cbd0;

    font-weight: bold;
}


.shape.active {
    background:
        linear-gradient(
            #128ed2,
            #076da8
        );

    border-color: #20a3ec;

    color: white;

    box-shadow:
        inset 0 1px rgba(255,255,255,.15);
}


/* ==========================================
   INPUTS
========================================== */

.inputs {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 13px;
}


label {
    font-size: 11px;

    font-weight: bold;

    color: #b8c1c6;

    letter-spacing: .5px;
}


.input-wrap {
    margin-top: 5px;

    display: flex;

    align-items: center;

    background: #10161a;

    border:
        1px solid #45535c;

    border-radius: 7px;

    overflow: hidden;

    box-shadow:
        inset 0 2px 5px rgba(0,0,0,.25);
}


input {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: none;

    background: transparent;

    color: white;

    padding: 13px;

    font-size: 22px;

    font-weight: bold;
}


.input-wrap span {
    padding-right: 12px;

    color: #6f7d85;

    font-size: 11px;

    font-weight: bold;
}


/* ==========================================
   CALCULATE
========================================== */

.calculate {
    width: 100%;

    min-height: 54px;

    margin-top: 18px;

    border: 0;

    border-radius: 7px;

    background:
        linear-gradient(
            #76ca50,
            #5eaf3d
        );

    color: #071007;

    font-size: 17px;

    font-weight: 900;

    letter-spacing: 1px;

    box-shadow:
        0 4px 10px rgba(0,0,0,.3);
}


/* ==========================================
   RESULTS
========================================== */

.results {
    margin-top: 18px;

    padding: 18px;

    background:
        linear-gradient(
            145deg,
            #202a30,
            #11171b
        );

    border:
        1px solid #3d4a52;

    border-radius: 10px;

    text-align: center;

    box-shadow:
        0 7px 20px rgba(0,0,0,.25);
}


.result-label {
    color: #8f9ba2;

    font-size: 11px;

    letter-spacing: 2px;

    font-weight: bold;
}


.pounds {
    margin-top: 4px;

    color: #69be45;

    font-size: 46px;

    line-height: 1;

    font-weight: 900;
}


.unit {
    margin-top: 4px;

    color: #78858c;

    font-size: 10px;

    letter-spacing: 2px;
}


/* ==========================================
   ORDER
========================================== */

.order-card {
    margin-top: 18px;

    padding: 14px;

    background:
        linear-gradient(
            145deg,
            #162127,
            #10171b
        );

    border-left:
        4px solid #69be45;

    border-radius: 7px;

    text-align: left;
}


.order-heading {
    color: #8f9ba2;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;
}


.order-number {
    margin-top: 2px;

    color: #69be45;

    font-size: 34px;

    font-weight: 900;

    line-height: 1;
}


.order-unit {
    margin-top: 4px;

    color: #89959c;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1px;
}


/* ==========================================
   DELIVERY
========================================== */

.delivery-card {
    margin-top: 12px;

    background: #0d1317;

    border:
        1px solid #334149;

    border-radius: 7px;

    overflow: hidden;
}


.delivery-header {
    padding:
        12px 14px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    text-align: left;

    border-bottom:
        1px solid #334149;
}


.delivery-header > span {
    color: #8f9ba2;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;
}


.delivery-header div {
    text-align: right;
}


.delivery-header strong {
    display: block;

    color: white;

    font-size: 27px;

    line-height: 1;
}


.delivery-header small {
    color: #75828a;

    font-size: 8px;

    font-weight: bold;

    letter-spacing: 1px;
}


.delivery-details {
    padding:
        6px 14px;
}


.delivery-row {
    min-height: 37px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    border-bottom:
        1px solid #222d33;
}


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


.delivery-row span {
    color: #7f8c93;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1px;
}


.delivery-row strong {
    color: #e6ebee;

    font-size: 13px;
}


.truck-note {
    margin-top: 10px;

    color: #66747c;

    font-size: 9px;

    letter-spacing: 1px;
}


/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 360px) {

    .app {
        padding: 12px;
    }

    .inputs {
        gap: 9px;
    }

    .pounds {
        font-size: 40px;
    }

}

/* ==========================================
   GEOKRETE - PREMIUM VISUAL UPGRADE V1
========================================== */

body {
    background-color: #101417;
    background-image:
        repeating-linear-gradient(
            135deg,
            transparent 0px,
            rgba(255,255,255,.018) 2px,
            transparent 5px,
            rgba(0,0,0,.13) 11px
        ),
        radial-gradient(
            ellipse at 50% 10%,
            #3d4548 0%,
            #1a2024 48%,
            #080b0e 100%
        );
}

.app {
    padding: 14px;
}

/* Metallic branding */

.header {
    padding: 12px 0 20px;
    border-bottom: 2px solid #168bd3;
}

.sak {
    font-size: 46px;
    font-style: italic;
    letter-spacing: -4px;
    color: #dce4e9;
    text-shadow:
        0 2px 0 #56636c,
        0 4px 7px #000;
}

.division {
    color: #78c94e;
    letter-spacing: 2.5px;
}

.title {
    font-size: 37px;
    font-style: italic;
    letter-spacing: -1px;
    color: #f4f7f9;
    text-shadow: 0 3px 5px #000;
}

.subtitle {
    color: #c3cdd3;
    font-weight: 800;
}

/* Engineering display */

.pipe-hero {
    border: 1px solid #65747d;
    border-top: 2px solid #87939b;
    border-radius: 15px;
    background:
        radial-gradient(
            ellipse at 50% 46%,
            #38454c 0%,
            #151d22 58%,
            #06090c 100%
        );
    box-shadow:
        inset 0 0 45px #000,
        0 9px 20px rgba(0,0,0,.45);
}

.dimension-top {
    color: #f5f9fc;
    text-shadow: 0 2px 5px #000;
}

.visual-shape {
    color: #aebcc4;
}

/* Raised shape controls */

.shape {
    border: 1px solid #65747c;
    border-bottom: 3px solid #090d10;
    border-radius: 9px;
    background: linear-gradient(
        160deg,
        #45525a,
        #222b31 60%,
        #141b20
    );
    color: #f1f4f6;
    box-shadow:
        inset 0 1px rgba(255,255,255,.17),
        0 4px 7px rgba(0,0,0,.4);
    font-size: 11px;
    letter-spacing: .4px;
}

.shape.active {
    background: linear-gradient(
        160deg,
        #19a5f2,
        #0878bf 45%,
        #034778
    );
    border-color: #49baff;
    box-shadow:
        inset 0 1px rgba(255,255,255,.35),
        0 0 12px rgba(16,143,220,.25);
}

/* Precision input panels */

.inputs {
    gap: 11px;
}

.inputs label {
    color: #e0e7eb;
    font-size: 10px;
    letter-spacing: 1px;
}

.input-wrap {
    background: linear-gradient(
        180deg,
        #e4e9eb,
        #c7d0d4
    );
    border: 1px solid #f3f5f6;
    border-bottom: 3px solid #707f88;
    border-radius: 8px;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,.15),
        0 3px 8px rgba(0,0,0,.25);
}

.input-wrap input {
    color: #16232c;
    font-size: 23px;
    font-weight: 900;
}

.input-wrap span {
    color: #52616a;
}

/* Premium calculate button */

.calculate {
    min-height: 59px;
    border: 1px solid #a5ef77;
    border-bottom: 4px solid #316c20;
    border-radius: 10px;
    background: linear-gradient(
        180deg,
        #9be869,
        #6ac341 48%,
        #46992c
    );
    color: #0b2507;
    text-shadow: 0 1px rgba(255,255,255,.3);
    box-shadow:
        inset 0 1px rgba(255,255,255,.5),
        0 7px 15px rgba(0,0,0,.4);
}

.calculate:active {
    transform: translateY(2px);
}

/* Main results instrument panel */

.results {
    border: 1px solid #268ec3;
    border-top: 2px solid #6ab8df;
    border-radius: 14px;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(42,140,185,.38),
            transparent 65%
        ),
        linear-gradient(
            160deg,
            #123b54,
            #092338 60%,
            #081723
        );
    box-shadow:
        inset 0 1px rgba(255,255,255,.18),
        0 12px 25px rgba(0,0,0,.5);
}

.result-label {
    color: #e3f0f7;
    font-size: 14px;
    letter-spacing: 1px;
}

.pounds {
    margin-top: 10px;
    color: #fff;
    font-size: clamp(42px, 11vw, 59px);
    letter-spacing: -2px;
    text-shadow:
        0 3px 0 #233c4b,
        0 6px 9px rgba(0,0,0,.7);
}

.unit {
    margin-top: 8px;
    color: #a0db74;
    font-weight: 900;
}

/* Ordering and delivery */

.order-card {
    border: 1px solid #4c9350;
    border-left: 5px solid #8ee461;
    background: linear-gradient(
        145deg,
        #214e3a,
        #102b29
    );
}

.order-number {
    color: #a6f47b;
    font-size: 39px;
}

.order-heading,
.order-unit {
    color: #d0e6d2;
}

.delivery-card {
    border-color: #53758a;
    background: linear-gradient(
        145deg,
        #1b3443,
        #0c1a24
    );
}

.delivery-header {
    border-color: #3b596a;
}

.delivery-header > span,
.delivery-row span {
    color: #c0d3dd;
}

.delivery-header strong {
    color: #fff;
}

.delivery-row strong {
    color: #eaf7ff;
}

.truck-note {
    color: #a5b7c0;
}


/* ==========================================
   GEOKRETE VISUAL UPGRADE V2
   BRICK SEWER + GRAY GEOPOLYMER LINING
========================================== */

/* Existing brick sewer pipe */

.pipe-shell {
    background-color: #874b3c;
    background-image:
        linear-gradient(
            90deg,
            transparent 48%,
            rgba(218,190,161,.85) 49%,
            rgba(218,190,161,.85) 51%,
            transparent 52%
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 15px,
            rgba(210,186,162,.85) 16px,
            rgba(210,186,162,.85) 18px,
            transparent 19px
        ),
        linear-gradient(
            135deg,
            #b47860 0%,
            #844c3d 35%,
            #58382f 75%,
            #9b6250 100%
        );

    box-shadow:
        inset 0 0 6px rgba(0,0,0,.65),
        0 0 0 2px #3b2925,
        0 0 16px rgba(0,0,0,.35),
        0 16px 25px rgba(0,0,0,.75);
}

/* Gray GeoKrete lining */

.geokrete-layer {
    background:
        repeating-linear-gradient(
            145deg,
            rgba(255,255,255,.045) 0px,
            rgba(255,255,255,.045) 2px,
            transparent 3px,
            transparent 8px
        ),
        linear-gradient(
            145deg,
            #c6c8c5 0%,
            #a3a7a4 28%,
            #737b78 70%,
            #b7bbb7 100%
        );

    box-shadow:
        inset 0 0 5px rgba(255,255,255,.35),
        inset 0 0 13px rgba(0,0,0,.35),
        0 0 5px rgba(210,215,210,.2);
}

/* Dark sewer interior */

.pipe-opening {
    background:
        radial-gradient(
            ellipse at 48% 45%,
            #293034 0%,
            #10171b 48%,
            #020405 100%
        );

    box-shadow:
        inset 0 0 28px rgba(0,0,0,.95);
}

/* Gray lining indicator with SAK green accents */

.callout-dot {
    background: #e0e4df;
    border-color: #75bc4e;
}

.callout-line {
    background: #75bc4e;
}

.callout-text {
    color: #a9e58a;
    margin-left: 10px;
}

/* Subtle pipe depth */

.tunnel-back {
    background: #030405;
    filter: blur(13px);
    opacity: .95;
}


/* ==========================================
   GEOKRETE V3 - REALISTIC 3D PIPE
========================================== */

.pipe-3d-image {
    display: none;
    position: absolute;
    z-index: 5;
    width: 235px;
    max-width: none;
    height: auto;
    object-fit: contain;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.55));
}

/* Display 3D image for Round only */

.pipe-hero:has(.pipe-shell.round-pipe) .pipe-3d-image {
    display: block;
}

.pipe-hero:has(.pipe-shell.round-pipe) .pipe-shell,
.pipe-hero:has(.pipe-shell.round-pipe) .tunnel-back {
    opacity: 0;
}

/* Keep dimension and thickness labels visible */

.pipe-hero:has(.pipe-shell.round-pipe) .dimension-top {
    z-index: 10;
}


/* Official SAK branding */

.sak-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
}

.sak-logo-img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 5px;
}


/* ==========================================
   GEOKRETE V4 - COMPACT IPHONE LAYOUT
========================================== */

@media (max-width: 600px) {

    .app {
        padding: 10px 14px 20px;
    }

    /* Smaller SAK header */
    .header {
        padding-bottom: 8px;
    }

    .sak-logo-wrap {
        margin-bottom: 3px;
    }

    .sak-logo-img {
        max-width: 215px;
    }

    .division {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .title {
        font-size: 21px;
        margin-top: 5px;
        line-height: 1.1;
    }

    .subtitle {
        font-size: 9px;
        letter-spacing: 2px;
    }

    /* Reduce 3D pipe display height */
    .pipe-hero {
        height: 185px;
        margin: 9px 0 4px;
    }

    .tunnel-stage {
        top: 51%;
        transform: translate(-50%, -50%) scale(.83);
    }

    .dimension-top {
        top: 8px;
        font-size: 9px;
    }

    .visual-shape {
        bottom: 5px;
        font-size: 8px;
    }

    /* Compact pipe shape buttons */
    .shape-selector {
        margin: 8px 0 11px;
        gap: 6px;
    }

    .shape {
        min-height: 36px;
        font-size: 11px;
    }

    /* Compact input fields */
    .inputs {
        gap: 9px 11px;
    }

    .inputs label {
        font-size: 10px;
    }

    .input-wrap {
        margin-top: 4px;
    }

    .input-wrap input {
        padding: 9px 10px;
        font-size: 19px;
    }

    /* Calculate button stays prominent */
    .calculate {
        min-height: 46px;
        margin-top: 12px;
        font-size: 15px;
    }

    .results {
        margin-top: 12px;
    }
}


/* ==========================================
   GEOKRETE V5 - EXTRA COMPACT IPHONE
========================================== */

@media (max-width: 600px) {

    .app {
        padding: 7px 12px 16px;
    }

    .header {
        padding-bottom: 5px;
    }

    .sak-logo-wrap {
        margin-bottom: 0;
    }

    .sak-logo-img {
        max-width: 175px;
    }

    .division {
        font-size: 8px;
        margin-top: 0;
    }

    .title {
        font-size: 17px;
        margin-top: 3px;
    }

    .subtitle {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .pipe-hero {
        height: 150px;
        margin: 6px 0 3px;
    }

    .tunnel-stage {
        top: 52%;
        transform: translate(-50%, -50%) scale(.68);
    }

    .dimension-top {
        top: 5px;
        font-size: 8px;
    }

    .visual-shape {
        bottom: 4px;
        font-size: 7px;
    }

    .shape-selector {
        margin: 6px 0 8px;
        gap: 5px;
    }

    .shape {
        min-height: 32px;
        font-size: 10px;
    }

    .inputs {
        gap: 7px 9px;
    }

    .inputs label {
        font-size: 9px;
    }

    .input-wrap {
        margin-top: 3px;
    }

    .input-wrap input {
        padding: 7px 9px;
        font-size: 18px;
    }

    .calculate {
        min-height: 43px;
        margin-top: 9px;
        font-size: 14px;
    }

    .results {
        margin-top: 10px;
    }
}


/* GEOKRETE V6 - COMPACT BRANDING HEADER */

@media (max-width: 600px) {

    .header {
        padding-top: 0;
        padding-bottom: 4px;
        line-height: 1;
    }

    .sak-logo-wrap {
        margin: 0 auto;
        padding: 0;
    }

    .sak-logo-img {
        max-width: 175px;
        margin: 0;
    }

    .division {
        margin: 0;
        line-height: 1;
    }

    .title {
        font-size: 17px;
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    .subtitle {
        font-size: 8px;
        margin: 2px 0 0;
        line-height: 1;
    }
}


/* ==========================================
   GEOKRETE V7 - THREE 3D PIPE SHAPES
========================================== */

.pipe-3d-arch,
.pipe-3d-elliptical {
    display: none;
}

/* Show the Arch image when Arch is selected */
.pipe-hero:has(.pipe-shell.arch-pipe) .pipe-3d-arch {
    display: block;
}

/* Show the Elliptical image when Elliptical is selected */
.pipe-hero:has(.pipe-shell.elliptical-pipe) .pipe-3d-elliptical {
    display: block;
}

/* Hide the old CSS drawings behind the 3D images */
.pipe-hero:has(.pipe-shell.arch-pipe) .pipe-shell,
.pipe-hero:has(.pipe-shell.arch-pipe) .tunnel-back,
.pipe-hero:has(.pipe-shell.elliptical-pipe) .pipe-shell,
.pipe-hero:has(.pipe-shell.elliptical-pipe) .tunnel-back {
    opacity: 0;
}


/* GEOKRETE V8 - SINGLE PIPE IMAGE DISPLAY */

/* Hide every 3D image by default */
.pipe-hero .pipe-3d-image {
    display: none !important;
}

/* Display only the selected shape */
.pipe-hero:has(.pipe-shell.round-pipe)
.pipe-3d-image:not(.pipe-3d-arch):not(.pipe-3d-elliptical) {
    display: block !important;
}

.pipe-hero:has(.pipe-shell.arch-pipe)
.pipe-3d-arch {
    display: block !important;
}

.pipe-hero:has(.pipe-shell.elliptical-pipe)
.pipe-3d-elliptical {
    display: block !important;
}

/* Keep images inside the visual area */
.pipe-hero {
    overflow: hidden;
}

