#help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: #ae1c1c;
    color: white;
    border: none;
    border-radius: 999rem;
    cursor: pointer;
    z-index: 999;
    font-size: 17px;
    font-weight: bold;
}

.help-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 340px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 1021;
}

.help-popup-content {
    padding: 0;
    border-radius: 15px;
}

.close-button {
    float: right;
    cursor: pointer;
    font-size: 25px;
    color: white;
    padding: 0 10px 0 0;
}

#help-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 20px;
}

#help-form input,
#help-form textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#help-form textarea {
    height: 100px;
    resize: vertical;
}

#help-form button {
    padding: 10px;
    background-color: #ae1c1c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 50%;
    margin-bottom: 10px;
}

.message-container {
    text-align: center;
    padding: 20px;
}

.message-container.success {
    color: #155724;
    background-color: #d4edda;
    border-radius: 4px;
}

.message-container.error {
    color: #721c24;
    background-color: #f8d7da;
    border-radius: 4px;
}

.message-container button {
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #ae1c1c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.message-container button:hover {
    background-color: #ae1c1c;
}

.help-popup-content h2 {
    font-size: 21px;
    font-family: Akkurat,sans-serif;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    background: #ae1c1c;
    color: white;
    border-radius: 9px 9px 0 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#help-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.captcha-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.refresh-captcha {
    padding: 5px 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.refresh-captcha:hover {
    background: #e9ecef;
}

#captchaImage {
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#help-form .captcha-container .refresh-captcha {
    width: 100px;
    padding: 5px;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: #dc3545;
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}