* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111111;
    background: #ffffff;
}

header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 32px;
}

.site-logo {
    font-size: 16px;
    font-weight: 600;
}


/* HERO */

#hero {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 32px;
}

#hero h1 {
    max-width: 900px;
    margin: 0 0 24px;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -2px;
}

#hero p {
    max-width: 700px;
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.6;
    color: #666666;
}

button {
    font: inherit;
}

#startCalculator {
    padding: 15px 20px;
    border: 0;
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
}


/* CALCULATOR */

#calculator {
    max-width: 1200px;
    margin: 60px auto 120px;
    padding: 0 32px;

    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 90px;
    align-items: start;
}

#calculator[hidden] {
    display: none;
}

.questions {
    min-width: 0;
}

.questions > h2 {
    margin: 0 0 52px;
    font-size: 38px;
    letter-spacing: -1px;
}

.question-section {
    margin-bottom: 70px;
}

.question-section h3 {
    margin: 0 0 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #777777;
}

.field {
    margin-bottom: 32px;
}

.field > label {
    display: block;
    margin-bottom: 11px;
    font-size: 16px;
    line-height: 1.45;
}

input[type="number"],
select {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-size: 16px;
}

input[type="number"] {
    width: 100%;
}

select {
    width: 100%;
}

.field > select {
    max-width: 420px;
}

.input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
    max-width: 420px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
}

.input-with-unit input {
    max-width: 180px;
}

.input-with-unit span {
    font-size: 14px;
    color: #777777;
}

.radio-row {
    display: flex;
    gap: 28px;
}

.radio-row label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.info {
    margin-left: 3px;
    color: #888888;
    cursor: help;
}

small {
    display: block;
    max-width: 420px;
    margin-top: 9px;
    color: #888888;
    line-height: 1.45;
}


/* DESKTOP RESULTS */

#liveResults {
    position: sticky;
    top: 32px;

    padding: 38px;
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    background: #ffffff;
}

.result-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    color: #777777;
}

.estimate-label {
    margin-top: 30px;
    color: #777777;
}

.main-result {
    margin-top: 6px;
    font-size: 58px;
    font-weight: 600;
    letter-spacing: -2px;
}

.per-hour {
    margin-top: 2px;
    color: #777777;
}

.divider {
    height: 1px;
    margin: 32px 0;
    background: #e7e7e7;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin: 18px 0;
    font-size: 15px;
}

.result-row span {
    color: #666666;
}

.result-row strong {
    white-space: nowrap;
}


/* MOBILE BAR */

.mobile-result-bar {
    display: none;
}


/* MOBILE */

@media (max-width: 800px) {

    header {
        padding: 22px 20px;
    }

    #hero {
        margin: 60px auto;
        padding: 0 20px;
    }

    #hero h1 {
        font-size: 40px;
        letter-spacing: -1.3px;
    }

    #hero p {
        font-size: 16px;
    }

    #calculator {
        grid-template-columns: 1fr;
        gap: 0;

        margin-top: 35px;
        margin-bottom: 120px;
        padding: 0 20px;
    }

    .questions > h2 {
        font-size: 32px;
    }

    #liveResults {
        display: none;
    }

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

    .input-with-unit {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .input-with-unit input {
        max-width: none;
    }

    .radio-row {
        flex-wrap: wrap;
    }

    .mobile-result-bar {
        position: fixed;
        z-index: 100;
        left: 12px;
        right: 12px;
        bottom: 12px;

        width: calc(100% - 24px);
        min-height: 58px;

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

        padding: 0 18px;

        border: 1px solid #dddddd;
        border-radius: 12px;

        background: #111111;
        color: #ffffff;

        font-size: 14px;
    }

    .mobile-result-bar strong {
        font-size: 18px;
    }

    .mobile-result-bar[hidden] {
        display: none;
    }
}