/* ===== ROCKUTILITY PAINT CALCULATOR ===== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.4;
}


/* ===== MAIN TOOL ===== */

.paint-calculator {
    max-width: 760px;
    margin: 0;
    padding: 20px;
}

h1 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 30px;
}

.tool-description {
    margin-top: 0;
    margin-bottom: 24px;
    color: #555;
}


/* ===== SECTIONS ===== */

.calculator-section,
.results-section,
.useful-info,
.disclaimer {
    border-top: 2px solid #333;
    padding-top: 16px;
    margin-top: 24px;
}

.calculator-section h2,
.results-section h2,
.useful-info h2,
.disclaimer h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 20px;
}

.section-note {
    margin-top: -6px;
    margin-bottom: 16px;
    color: #666;
    font-size: 14px;
}


/* ===== WALLS / OPENINGS ===== */

.dimension-item {
    max-width: 600px;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.dimension-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.dimension-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dimension-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}


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

.input-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.input-row label {
    font-weight: bold;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #999;
    background: #fff;
    max-width: 260px;
}

.input-wrapper input {
    width: 100%;
    border: 0;
    padding: 9px;
    font-size: 16px;
    outline: none;
}

.input-prefix,
.input-suffix {
    padding: 0 9px;
    color: #555;
    white-space: nowrap;
}

.input-prefix {
    border-right: 1px solid #ccc;
}

.input-suffix {
    border-left: 1px solid #ccc;
}

select {
    width: 260px;
    max-width: 100%;
    padding: 9px;
    font-size: 16px;
    border: 1px solid #999;
    background: #fff;
}


/* ===== BUTTONS ===== */

#calcBtn,
.secondary-button,
.remove-button {
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
}

#calcBtn {
    margin-top: 24px;
    padding: 11px 20px;
    font-size: 17px;
    font-weight: bold;
    background: #e6e6e6;
    color: #111;
    border: 1px solid #777;
}

#calcBtn:hover {
    background: #d7d7d7;
}

.secondary-button {
    margin-top: 12px;
    padding: 8px 12px;
    font-size: 14px;
    background: #f0f0f0;
    color: #111;
    border: 1px solid #999;
}

.secondary-button:hover {
    background: #e2e2e2;
}

.remove-button {
    padding: 4px 8px;
    font-size: 12px;
    background: #fff;
    color: #444;
    border: 1px solid #aaa;
}

.remove-button:hover {
    background: #eee;
}


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

.results {
    max-width: 600px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
    border-bottom: 1px solid #ddd;
}

.total-row {
    margin-top: 5px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    font-size: 18px;
}

.rounding-note {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}


/* ===== USEFUL INFORMATION ===== */

.useful-info {
    max-width: 650px;
}

.useful-info p {
    margin: 0 0 12px 0;
}


/* ===== DISCLAIMER ===== */

.disclaimer {
    max-width: 650px;
    font-size: 13px;
    color: #555;
    padding-bottom: 20px;
}

.disclaimer p {
    margin-bottom: 0;
}


/* ===== MOBILE ===== */

@media (max-width: 650px) {

    .paint-calculator {
        padding: 14px;
    }

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

    .dimension-fields {
        grid-template-columns: 1fr;
    }

    .input-wrapper,
    select {
        width: 100%;
        max-width: none;
    }

    h1 {
        font-size: 26px;
    }
}