/*
Theme Name: Kadence Paint Calculator
Description: Child theme for Kadence with Paint Calculator
Author: Menat
Template: kadence
Version: 1.0
*/
/* ============================================================
   PAINT CALCULATOR — FINAL
============================================================ */

.paint-calc {
    width: 100%;
    max-width: 920px;
    margin: 32px auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dde3e8;
    border-radius: 14px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}


/* HEADER */

.paint-calc-header {
    margin-bottom: 24px;
}

.paint-calc-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.25;
}

.paint-calc-header p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #5c6670;
}


/* ROWS */

.paint-calc-row {
    display: grid;
    gap: 14px;
}

.paint-calc-row-main {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
}

.paint-calc-row-result {
    grid-template-columns: 1fr 1fr 1.35fr;
    align-items: stretch;
}


/* FIELDS */

.paint-calc-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    min-width: 0;
}

.paint-calc-field > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #252b31;
}

.paint-calc input,
.paint-calc select {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #cbd4dd;
    border-radius: 6px;
    background: #ffffff;
    color: #222222;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
}

.paint-calc input:focus,
.paint-calc select:focus {
    outline: none;
    border-color: #2f6fb3;
    box-shadow: 0 0 0 2px rgba(47, 111, 179, 0.12);
}

.paint-calc small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.4;
    color: #6f7780;
}


/* DIVIDER */

.paint-calc-divider {
    height: 1px;
    margin: 24px 0;
    background: #e5e9ed;
}


/* LOWER BOXES */

.paint-calc-coverage,
.paint-calc-box {
    padding: 16px;
    background: #f8f9fb;
    border: 1px solid #e1e5e9;
    border-radius: 9px;
    box-sizing: border-box;
}

.paint-calc-coverage {
    justify-content: center;
}

.paint-calc-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.paint-calc-box > span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #5f6973;
}

.paint-calc-box strong {
    display: block;
    font-size: 25px;
    line-height: 1.2;
    color: #222222;
}

.paint-calc-box-result {
    background: #f2f6fa;
    border-color: #d6e2ed;
}

.paint-calc-box-result strong {
    font-size: 30px;
    color: #1f5f9e;
}

.paint-calc-box-result small {
    margin-top: 5px;
}


/* FOOTER */

.paint-calc-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.paint-calc-clear {
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #cfd6dd;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.paint-calc-clear:hover {
    background: #f3f5f7;
}


/* TABLET */

@media (max-width: 900px) {

    .paint-calc-row-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .paint-calc-row-result {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .paint-calc-box-result {
        grid-column: 1 / -1;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    .paint-calc {
        margin: 24px 0;
        padding: 18px;
        border-radius: 10px;
    }

    .paint-calc-header h2 {
        font-size: 24px;
    }

    .paint-calc-row-main,
    .paint-calc-row-result {
        grid-template-columns: 1fr;
    }

    .paint-calc-box-result {
        grid-column: auto;
    }

    .paint-calc-clear {
        width: 100%;
    }
}