/* ===== ROCKUTILITY GRASS SEED CALCULATOR ===== */

* {
    box-sizing: border-box;
}

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

body {
    background: #ffffff;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

button,
input,
select {
    font: inherit;
}

[hidden] {
    display: none !important;
}

/* ===== TOOL LAYOUT ===== */

.tool-container {
    width: 100%;
    max-width: 760px;
    margin: 0;
    padding: 16px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 6px;
    font-size: 30px;
    line-height: 1.2;
}

h2 {
    margin-bottom: 16px;
    font-size: 24px;
    line-height: 1.25;
}

h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.tool-description {
    margin-bottom: 28px;
    color: #444444;
}

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

.calculator-section {
    margin-top: 0;
    padding-top: 28px;
    border-top: 2px solid #333333;
}

.form-section {
    margin-top: 30px;
}

.form-grid {
    display: grid;
    gap: 18px 20px;
}

.form-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
    min-width: 0;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #aaaaaa;
    border-radius: 5px;
    background: #ffffff;
    color: #222222;
}

select {
    padding-top: 6px;
    padding-bottom: 6px;
}

input:hover,
select:hover {
    border-color: #777777;
}

input:focus,
select:focus {
    border-color: #333333;
    outline: 2px solid rgba(0, 0, 0, 0.12);
    outline-offset: 1px;
}

.input-with-unit {
    display: flex;
    align-items: stretch;
}

.input-with-unit input {
    min-width: 0;
    border-radius: 5px 0 0 5px;
}

.input-with-unit span {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #aaaaaa;
    border-left: 0;
    border-radius: 0 5px 5px 0;
    background: #f2f2ef;
    color: #555555;
    font-size: 13px;
    white-space: nowrap;
}

.field-note {
    margin: 7px 0 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.4;
}

.section-note {
    margin: 16px 0 0;
    color: #555555;
    font-size: 14px;
}

.shape-fields {
    max-width: 470px;
    margin-top: 18px;
}

/* ===== SEED TAG ===== */

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    font-weight: 700;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    flex: 0 0 auto;
}

.seed-tag-help {
    margin-left: 28px;
}

.seed-tag-fields {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #bbbbbb;
    background: #f5f5f2;
}

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

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-button,
.secondary-button {
    min-height: 50px;
    padding: 11px 20px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    border: 2px solid #222222;
    background: #222222;
    color: #ffffff;
}

.primary-button:hover {
    border-color: #000000;
    background: #000000;
}

.secondary-button {
    border: 2px solid #222222;
    background: #ffffff;
    color: #222222;
}

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

.primary-button:focus-visible,
.secondary-button:focus-visible {
    outline: 2px solid #555555;
    outline-offset: 2px;
}

/* ===== ERRORS ===== */

.form-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #a94442;
    border-left: 4px solid #a94442;
    background: #f8e9e8;
    color: #812c2a;
    font-weight: 700;
}

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

.results-section {
    margin-top: 30px;
    padding: 22px;
    border-left: 5px solid #304f38;
    background: #eef2ed;
}

.results-section h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

.primary-result {
    margin-bottom: 16px;
    padding: 17px;
    border: 1px solid #b7bcb5;
    background: #ffffff;
}

.primary-result span {
    display: block;
    margin-bottom: 4px;
    color: #555555;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.primary-result strong {
    display: block;
    font-size: 28px;
    line-height: 1.2;
}

.primary-result small {
    display: block;
    margin-top: 5px;
    color: #555555;
    font-size: 14px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.result-box {
    min-height: 92px;
    padding: 16px;
    border: 1px solid #c4c8c2;
    background: #ffffff;
}

.result-box span {
    display: block;
    margin-bottom: 6px;
    color: #555555;
    font-size: 14px;
    font-weight: 700;
}

.result-box strong {
    display: block;
    font-size: 19px;
    line-height: 1.3;
}

.result-summary {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #b7bcb5;
    background: #ffffff;
}

.result-summary p {
    margin-bottom: 0;
}

.result-note {
    margin: 14px 0 0;
    color: #444444;
}

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

.information-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #333333;
}

.information-section h2 {
    margin-bottom: 12px;
    font-size: 21px;
}

.information-section p:last-child,
.information-section ul:last-child {
    margin-bottom: 0;
}

.information-section ul {
    margin-top: 0;
    padding-left: 22px;
}

.information-section li + li {
    margin-top: 6px;
}

.disclaimer {
    margin: 28px 0 0;
    padding: 14px 0;
    border-top: 1px solid #aaaaaa;
    color: #555555;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 650px) {
    .tool-container {
        padding: 14px;
    }

    h1 {
        font-size: 27px;
    }

    h2 {
        font-size: 22px;
    }

    .form-grid-two,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .shape-fields {
        max-width: none;
    }

    .input-with-unit {
        display: block;
    }

    .input-with-unit input {
        border-radius: 5px 5px 0 0;
    }

    .input-with-unit span {
        display: block;
        border-top: 0;
        border-left: 1px solid #aaaaaa;
        border-radius: 0 0 5px 5px;
    }

    .button-row {
        display: grid;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .results-section {
        padding: 18px;
    }
}