/* ============================================
   BUG REPORT FORM
   ============================================ */

.bug-report-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: inherit;
}

.bug-report-header {
    margin-bottom: 28px;
    text-align: center;
}

.bug-report-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2e3b;
    margin: 0 0 8px;
}

.bug-report-header p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* Form */
.bug-report-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.bug-field-wrap {
    margin-bottom: 20px;
}

.bug-field-wrap label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a2e3b;
    margin-bottom: 6px;
}

.bug-field-wrap label .bug-required {
    color: #c62828;
    margin-left: 2px;
}

.bug-field-wrap label .bug-optional {
    font-weight: 400;
    color: #888;
    font-size: 0.8rem;
    margin-left: 4px;
}

/* Inputs */
.bug-report-form input[type="text"],
.bug-report-form input[type="email"],
.bug-report-form select,
.bug-report-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1a2e3b;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.bug-report-form input:focus,
.bug-report-form select:focus,
.bug-report-form textarea:focus {
    border-color: #62c608;
    box-shadow: 0 0 0 3px rgba(98, 198, 8, 0.15);
    background: #fff;
}

.bug-report-form textarea {
    resize: vertical;
    min-height: 90px;
}

.bug-report-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Validation states */
.bug-report-form input.bug-field-error,
.bug-report-form select.bug-field-error,
.bug-report-form textarea.bug-field-error {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.bug-report-form input.bug-field-ok,
.bug-report-form select.bug-field-ok,
.bug-report-form textarea.bug-field-ok {
    border-color: #62c608;
}

.bug-field-msg {
    display: none;
    font-size: 0.78rem;
    color: #c62828;
    margin-top: 4px;
}

/* Radio group */
.bug-radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.bug-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.bug-radio-group input[type="radio"] {
    width: auto;
    accent-color: #62c608;
    cursor: pointer;
}

/* File input */
.bug-file-hint {
    font-size: 0.78rem;
    color: #888;
    margin-top: 4px;
}

/* Submit button */
.bug-submit-btn {
    display: block;
    width: 100%;
    padding: 13px 24px;
    background: #62c608;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
    letter-spacing: 0.2px;
}

.bug-submit-btn:hover:not(:disabled) {
    background: #52a807;
}

.bug-submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.bug-submit-btn:disabled {
    background: #a0d060;
    cursor: not-allowed;
}

/* Messages */
.bug-form-message {
    display: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 20px;
    line-height: 1.5;
}

.bug-form-message--success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.bug-form-message--error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

/* Divider */
.bug-form-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

/* Responsive */
@media (max-width: 480px) {
    .bug-report-form {
        padding: 20px 16px;
    }
    .bug-radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
