* {
    box-sizing: border-box;
}

:root {
    --navy: #052b50;
    --navy-dark: #031d36;
    --blue: #0c5fa8;
    --light-blue: #edf6fd;
    --gold: #f4b632;
    --gold-dark: #d9980d;
    --white: #ffffff;
    --text: #12263d;
    --muted: #657487;
    --border: #dbe4ec;
    --background: #f4f7fa;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);
    color: var(--text);
}


/* HEADER */

.siteHeader {
    height: 76px;
    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        linear-gradient(
            135deg,
            var(--navy-dark),
            var(--navy)
        );

    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    color: white;
    text-decoration: none;
}

.brandIcon {
    font-size: 38px;
    color: var(--gold);
    line-height: 1;
}

.brandText {
    display: flex;
    flex-direction: column;
}

.brandText strong {
    font-size: 18px;
    letter-spacing: .5px;
}

.brandText small {
    margin-top: 2px;
    font-size: 9px;
    letter-spacing: 1px;
}

.homeButton {
    padding: 10px 19px;

    border: 1px solid
        rgba(255,255,255,.5);

    border-radius: 8px;

    color: white;
    text-decoration: none;

    font-weight: 700;
}


/* HERO */

.hero {
    padding:
        50px 20px
        85px;

    text-align: center;
    color: white;

    background:
        radial-gradient(
            circle at top,
            #1263a0,
            var(--navy) 48%,
            var(--navy-dark)
        );
}

.eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.hero h1 {
    max-width: 700px;
    margin: 0 auto;

    font-size: clamp(
        38px,
        6vw,
        64px
    );

    line-height: .98;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    max-width: 580px;

    margin:
        18px auto
        0;

    color: #dbe9f5;

    font-size: 17px;
    line-height: 1.55;
}


/* DESIGNER */

.designerSection {
    width: min(
        700px,
        calc(100% - 30px)
    );

    margin:
        -45px auto
        50px;
}

.designerCard {
    padding: 24px;

    background: white;

    border-radius: 18px;

    box-shadow:
        0 18px 55px
        rgba(4,35,64,.16);
}


/* UPLOAD */

.uploadArea {
    overflow: hidden;

    border:
        2px dashed
        #afbdca;

    border-radius: 15px;

    background: #fafcfe;
}

.emptyUpload {
    padding: 35px 20px;
    text-align: center;
}

.cameraIcon {
    width: 72px;
    height: 72px;

    margin:
        0 auto
        15px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--light-blue);

    font-size: 34px;
}

.emptyUpload h2 {
    margin: 0;
    font-size: 24px;
}

.emptyUpload p {
    margin:
        8px auto
        20px;

    color: var(--muted);
}

.uploadButtons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

button {
    font: inherit;
    cursor: pointer;
}

.primaryButton,
.secondaryButton {
    min-height: 48px;
    padding: 0 24px;

    border-radius: 8px;

    font-weight: 800;
}

.primaryButton {
    border: 0;
    background: var(--navy);
    color: white;
}

.secondaryButton {
    border: 2px solid var(--navy);
    background: white;
    color: var(--navy);
}


/* PREVIEW */

.photoPreview {
    position: relative;
    height: 390px;
}

.photoPreview img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.changePhoto {
    position: absolute;

    right: 15px;
    bottom: 15px;

    padding:
        10px 15px;

    border: 0;
    border-radius: 7px;

    background:
        rgba(3,29,54,.92);

    color: white;
    font-weight: 800;
}


/* FORM */

.formGroup {
    margin-top: 24px;
}

.formGroup label {
    display: flex;
    justify-content: space-between;

    margin-bottom: 9px;

    color: var(--navy);

    font-size: 16px;
    font-weight: 800;
}

.formGroup label span {
    color: #8793a0;

    font-size: 12px;
    font-weight: 500;
}

select,
textarea,
.modalCard input {
    width: 100%;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background: white;

    color: var(--text);

    font: inherit;

    outline: none;
}

select {
    height: 55px;
    padding: 0 15px;
}

textarea {
    min-height: 125px;

    padding: 15px;

    resize: vertical;

    line-height: 1.5;
}

select:focus,
textarea:focus,
.modalCard input:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(12,95,168,.1);
}

.characterCount {
    margin-top: 5px;

    text-align: right;

    color: #8995a0;

    font-size: 12px;
}


/* VISUALIZE */

.visualizeButton {
    width: 100%;
    min-height: 58px;

    margin-top: 20px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--navy),
            #075795
        );

    color: white;

    font-size: 18px;
    font-weight: 800;

    box-shadow:
        0 10px 25px
        rgba(5,43,80,.18);
}

.visualizeButton span {
    margin-right: 6px;
}

.formMessage {
    min-height: 18px;

    margin:
        12px 0
        0;

    text-align: center;

    color: #bd3030;

    font-size: 13px;
}


/* GENERATING */

.generatingSection {
    width: min(
        650px,
        calc(100% - 30px)
    );

    margin:
        45px auto;
}

.generatingCard {
    padding: 60px 25px;

    border-radius: 18px;

    background: white;

    text-align: center;

    box-shadow:
        0 15px 45px
        rgba(5,43,80,.12);
}

.magicHouse {
    position: relative;

    font-size: 80px;
    color: var(--navy);
}

.magicHouse span {
    position: absolute;

    margin-left: -14px;

    font-size: 27px;
}

.generatingCard h2 {
    margin-bottom: 7px;
}

.generatingCard p {
    color: var(--muted);
}

.progressTrack {
    max-width: 350px;
    height: 9px;

    margin:
        30px auto
        0;

    overflow: hidden;

    border-radius: 20px;

    background: #e4ecf3;
}

.progressBar {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--gold)
        );

    transition: width .25s;
}


/* RESULT */

.resultSection {
    width: min(
        900px,
        calc(100% - 30px)
    );

    margin:
        50px auto
        70px;
}

.resultHeader {
    margin-bottom: 20px;
    text-align: center;
}

.resultHeader h2 {
    margin: 0;
    font-size: 32px;
}

.resultHeader p {
    color: var(--muted);
}

.comparisonCard {
    padding: 10px;

    border-radius: 17px;

    background: white;

    box-shadow:
        0 15px 45px
        rgba(5,43,80,.14);
}

.comparison {
    position: relative;

    height: 560px;

    overflow: hidden;

    border-radius: 12px;

    background: #ddd;
}

.beforeImage,
.afterImage {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.afterWrapper {
    position: absolute;

    inset: 0;

    width: 50%;

    overflow: hidden;
}

.afterImage {
    width: 100vw;
    max-width: 880px;
}

.beforeLabel,
.afterLabel {
    position: absolute;
    top: 15px;

    z-index: 5;

    padding:
        8px 13px;

    border-radius: 6px;

    background:
        rgba(3,29,54,.9);

    color: white;

    font-size: 13px;
    font-weight: 800;
}

.beforeLabel {
    left: 15px;
}

.afterLabel {
    right: 15px;
}

.sliderLine {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 50%;

    z-index: 6;

    width: 3px;

    background: white;

    pointer-events: none;
}

.sliderHandle {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    transform:
        translate(-50%,-50%);

    border:
        3px solid
        var(--gold);

    border-radius: 50%;

    background: white;

    color: var(--navy);

    font-size: 20px;
    font-weight: 900;

    box-shadow:
        0 4px 15px
        rgba(0,0,0,.2);
}

#comparisonSlider {
    position: absolute;

    inset: 0;

    z-index: 10;

    width: 100%;
    height: 100%;

    margin: 0;

    opacity: 0;

    cursor: ew-resize;
}


/* RESULT BUTTONS */

.resultActions {
    display: grid;

    grid-template-columns:
        1.4fr 1fr;

    gap: 10px;

    margin-top: 15px;
}

.estimateButton,
.anotherButton {
    min-height: 55px;

    border-radius: 9px;

    font-weight: 800;
}

.estimateButton {
    border: 0;

    background: var(--gold);

    color: var(--navy-dark);
}

.anotherButton {
    border:
        2px solid
        var(--navy);

    background: white;

    color: var(--navy);
}

.conceptNotice {
    margin-top: 15px;

    text-align: center;

    color: #7b8793;

    font-size: 12px;
}


/* MODAL */

.modal {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;
    place-items: center;

    padding: 20px;
}

.modal.open {
    display: grid;
}

.modalBackdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(2,20,37,.76);

    backdrop-filter: blur(5px);
}

.modalCard {
    position: relative;

    z-index: 2;

    width: min(
        480px,
        100%
    );

    max-height: 90vh;

    overflow-y: auto;

    padding: 30px;

    border-radius: 17px;

    background: white;

    box-shadow:
        0 25px 80px
        rgba(0,0,0,.3);
}

.modalClose {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: var(--navy);

    color: white;

    font-size: 27px;
}

.modalCard h2 {
    margin:
        0 0 8px;

    color: var(--navy);
}

.modalCard > p {
    color: var(--muted);
    line-height: 1.5;
}

.modalCard form {
    margin-top: 20px;
}

.modalCard label {
    display: block;

    margin-top: 15px;

    color: var(--navy);

    font-weight: 800;
}

.modalCard input {
    height: 50px;

    margin-top: 6px;
    padding: 0 12px;
}

.estimateSubmit {
    width: 100%;
    min-height: 54px;

    margin-top: 22px;

    border: 0;
    border-radius: 9px;

    background: var(--gold);

    color: var(--navy-dark);

    font-weight: 900;
}

.estimateStatus {
    text-align: center;
}


/* MOBILE */

@media (max-width: 600px) {

    .siteHeader {
        height: 65px;
        padding: 0 15px;
    }

    .brandIcon {
        font-size: 29px;
    }

    .brandText strong {
        font-size: 14px;
    }

    .brandText small {
        font-size: 7px;
    }

    .homeButton {
        padding: 8px 12px;
        font-size: 12px;
    }


    .hero {
        padding:
            35px 20px
            68px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero p {
        font-size: 15px;
    }


    .designerSection {
        margin-top: -35px;
    }

    .designerCard {
        padding: 14px;
        border-radius: 15px;
    }


    .emptyUpload {
        padding: 25px 12px;
    }

    .cameraIcon {
        width: 60px;
        height: 60px;
        font-size: 29px;
    }

    .emptyUpload h2 {
        font-size: 21px;
    }


    .uploadButtons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .primaryButton,
    .secondaryButton {
        width: 100%;
    }


    .photoPreview {
        height: 285px;
    }


    .formGroup {
        margin-top: 19px;
    }

    select {
        height: 53px;
    }

    textarea {
        min-height: 105px;
    }


    .visualizeButton {
        min-height: 57px;
    }


    .comparison {
        height: 430px;
    }


    .resultActions {
        grid-template-columns: 1fr;
    }


    .modal {
        align-items: end;
        padding: 10px;
    }

    .modalCard {
        width: 100%;

        padding:
            28px 20px
            22px;

        border-radius:
            20px 20px
            12px 12px;
    }

}