.bug-report-page {
    max-width: 920px;
    margin: 28px auto 72px;
    padding: 0 16px;
    color: #26342b;
    text-align: right;
}

.bug-report-card {
    background: #fff;
    border: 1px solid #dce6de;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(29, 55, 36, .07);
    padding: clamp(22px, 4vw, 42px);
}

.bug-report-page h1 {
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.25;
    margin: 0 0 14px;
}

.bug-report-intro {
    font-size: 17px;
    line-height: 1.75;
    color: #4f6255;
    margin: 0 0 28px;
}

.bug-report-page label {
    display: block;
    font-weight: 650;
    margin: 22px 0 8px;
}

.bug-report-page label span:not(.bug-report-optional) { color: #a62842; }
.bug-report-page label .bug-report-optional { color: #68796d; font-weight: 400; }

.bug-report-page :is(input, textarea) {
    display: block;
    width: 100%;
    border: 1px solid #bdccc1;
    border-radius: 9px;
    background: #fff;
    color: #26342b;
    font: inherit;
    padding: 12px 14px;
}

.bug-report-page textarea { resize: vertical; min-height: 150px; }
.bug-report-page :is(input, textarea):focus-visible { outline: 3px solid #55b778; outline-offset: 2px; }

.bug-report-contact-note {
    margin: 28px 0 0;
    padding: 15px 18px;
    background: #f1f8f3;
    border-radius: 9px;
    line-height: 1.65;
    color: #395c42;
}

.bug-report-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    margin-top: 24px;
}

.bug-report-fields .bug-report-field { min-width: 0; }
.bug-report-fields label { margin: 0 0 8px; white-space: nowrap; }
.bug-report-fields input { height: 56px; }

.bug-report-upload { margin-top: 28px; }
.bug-report-upload label { margin: 0 0 8px; }
.bug-report-page input[type=file] { min-height: 58px; padding: 9px 12px; background: #f7faf8; }
.bug-report-page input[type=file]::file-selector-button {
    margin-inline-end: 14px;
    border: 1px solid #b9d4c0;
    border-radius: 7px;
    background: #eaf4ed;
    color: #245b35;
    padding: 7px 14px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.bug-report-page small { display: block; margin-top: 8px; color: #65756a; }
.bug-report-field-error, .bug-report-errors { display: block; color: #a62842; font-size: 14px; margin-top: 4px; }
.bug-report-errors:empty, .bug-report-field-error:empty, .bug-report-errors.validation-summary-valid { display: none; }

.bug-report-page button, .bug-report-success a {
    display: inline-block;
    margin-top: 28px;
    border: 0;
    border-radius: 9px;
    background: #2c8c4c;
    color: white;
    padding: 12px 24px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.bug-report-page button:hover, .bug-report-success a:hover { background: #20723b; color: white; }
.bug-report-success p { line-height: 1.7; }
.bug-report-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 760px) {
    .bug-report-fields { grid-template-columns: 1fr; gap: 18px; }
    .bug-report-page { margin: 16px auto 48px; }
    .bug-report-card { border-radius: 12px; }
}
