/*
 * All the style for the public-facing side of the site goes here.
 */

/* Стили для списка сертификатов пользователя */
.bhp-certificates-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.bhp-certificates-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 10px;
}

.bhp-certificates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bhp-certificate-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.bhp-certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.bhp-certificate-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.bhp-certificate-date {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.bhp-certificate-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.bhp-certificate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.bhp-certificate-button:hover {
    background-color: #2980b9;
}

.bhp-certificate-button.download {
    background-color: #27ae60;
}

.bhp-certificate-button.download:hover {
    background-color: #219653;
}

.bhp-certificate-button svg {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.bhp-no-certificates {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #7f8c8d;
    font-size: 16px;
}

/* Стили для модального окна просмотра сертификата */
.bhp-certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow: auto;
}

.bhp-certificate-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.bhp-certificate-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.bhp-certificate-modal-close:hover {
    color: #333;
}

.bhp-certificate-modal-body {
    margin-top: 20px;
    text-align: center;
}

.bhp-certificate-modal-body img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
}

/* ===== СТИЛИ ДЛЯ ТЕСТОВ ===== */

/* Контейнер теста */
.bhp-test-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/* Заголовок теста */
.bhp-test-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
}

.bhp-test-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
}

.bhp-test-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Информация о тесте */
.bhp-test-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.bhp-test-info-item {
    text-align: center;
}

.bhp-test-info-label {
    font-weight: bold;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.bhp-test-info-value {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
}

/* Таймер */
.bhp-test-timer {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    font-weight: bold;
    font-size: 18px;
}

.bhp-timer-label {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.bhp-timer-time {
    font-size: 24px;
    font-family: 'Courier New', monospace;
}

/* Поля пользователя */
.bhp-user-data-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.bhp-user-data-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.bhp-user-data-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.bhp-field-group {
    display: flex;
    flex-direction: column;
}

.bhp-field-label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.bhp-field-input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.bhp-field-input:focus {
    outline: none;
    border-color: #e74c3c;
}

.bhp-field-input.bhp-error {
    border-color: #e74c3c;
    background-color: #ffeaea;
}

.bhp-field-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* Вопросы */
.bhp-questions-section {
    margin-bottom: 30px;
}

.bhp-question {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    transition: border-color 0.3s ease;
}

.bhp-question.bhp-question-error {
    border-color: #e74c3c;
    background-color: #ffeaea;
}

.bhp-question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.bhp-question-number {
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.bhp-question-points {
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.bhp-question-text {
    font-size: 18px;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.bhp-question-type {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Варианты ответов */
.bhp-answer-options {
    margin-bottom: 15px;
}

.bhp-answer-option {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.bhp-answer-option:hover {
    background: #e9ecef;
}

.bhp-answer-option input[type="radio"],
.bhp-answer-option input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.bhp-answer-option label {
    cursor: pointer;
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
}

/* Текстовые ответы */
.bhp-text-answer {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.bhp-text-answer:focus {
    outline: none;
    border-color: #e74c3c;
}

/* Matching вопросы */
.bhp-matching-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: start;
}

.bhp-matching-left,
.bhp-matching-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bhp-matching-arrows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.bhp-matching-item {
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bhp-matching-item:hover {
    background: #e9ecef;
    border-color: #e74c3c;
}

.bhp-matching-item.selected {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

.bhp-matching-arrow {
    font-size: 24px;
    color: #666;
}

/* Sorting вопросы */
.bhp-sorting-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bhp-sorting-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: move;
}

.bhp-sorting-handle {
    margin-right: 10px;
    color: #666;
    font-size: 18px;
    cursor: grab;
}

.bhp-sorting-handle:active {
    cursor: grabbing;
}

.bhp-sorting-text {
    flex: 1;
    font-size: 16px;
}

.bhp-sorting-controls {
    display: flex;
    gap: 5px;
}

.bhp-sort-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.bhp-sort-btn:hover {
    background: #c0392b;
}

.bhp-sort-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Сообщения об ошибках */
.bhp-question-error-msg {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background: #ffeaea;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
}

/* Кнопка отправки */
.bhp-submit-section {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #e9ecef;
}

.bhp-submit-test-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 200px;
}

.bhp-submit-test-btn:hover:not(:disabled) {
    background: #c0392b;
}

.bhp-submit-test-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Сообщение об успехе */
.bhp-test-success {
    text-align: center;
    padding: 40px;
    background: #d4edda;
    border: 2px solid #27ae60;
    border-radius: 8px;
    color: #155724;
}

.bhp-test-success h3 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 24px;
}

/* GDPR Tools Styles */
.bhp-gdpr-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bhp-gdpr-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.bhp-gdpr-header h2 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.bhp-gdpr-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.bhp-gdpr-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.bhp-gdpr-button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 150px;
    justify-content: center;
}

.bhp-gdpr-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bhp-gdpr-button.export {
    background-color: #0073aa;
    color: white;
}

.bhp-gdpr-button.export:hover:not(:disabled) {
    background-color: #005a87;
}

.bhp-gdpr-button.delete {
    background-color: #dc3545;
    color: white;
}

.bhp-gdpr-button.delete:hover:not(:disabled) {
    background-color: #c82333;
}

.bhp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#bhp-gdpr-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

#bhp-gdpr-result.bhp-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#bhp-gdpr-result.bhp-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

#bhp-gdpr-result p {
    margin: 0;
}

.bhp-gdpr-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.bhp-gdpr-warning strong {
    display: block;
    margin-bottom: 5px;
}

/* Test Shortcode Styles */
.bhp-test-shortcode {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bhp-test-shortcode .bhp-test-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.bhp-test-shortcode .bhp-test-description {
    color: #5a6c7d;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.bhp-test-shortcode .bhp-test-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 24px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
}

.bhp-test-shortcode .bhp-test-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

.bhp-test-shortcode .bhp-test-info .dashicons {
    color: #007cba;
    font-size: 16px;
}

.bhp-test-shortcode .bhp-start-test-btn {
    display: inline-block;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bhp-test-shortcode .bhp-start-test-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,124,186,0.3);
}

/* Test List Shortcode Styles */
.bhp-test-list-shortcode {
    margin: 20px 0;
}

.bhp-test-list-shortcode .bhp-test-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 0 0 16px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.bhp-test-list-shortcode .bhp-test-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.bhp-test-list-shortcode .bhp-test-item-title {
    margin: 0 0 12px 0;
}

.bhp-test-list-shortcode .bhp-test-item-title a {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
}

.bhp-test-list-shortcode .bhp-test-item-title a:hover {
    color: #007cba;
    text-decoration: none;
}

.bhp-test-list-shortcode .bhp-test-item-description {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.bhp-test-list-shortcode .bhp-test-item-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 16px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.bhp-test-list-shortcode .bhp-test-item-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
}

.bhp-test-list-shortcode .bhp-test-item-info .dashicons {
    color: #007cba;
    font-size: 14px;
}

.bhp-test-list-shortcode .bhp-start-test-btn {
    display: inline-block;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bhp-test-list-shortcode .bhp-start-test-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,124,186,0.3);
}

/* Gutenberg Block Editor Styles */
.bhp-block-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
}

.bhp-block-placeholder .dashicons {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.bhp-block-placeholder p {
    font-size: 16px;
    margin: 0;
}

.bhp-test-block-preview,
.bhp-test-list-block-preview {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.bhp-test-preview h3 {
    color: #2c3e50;
    margin: 0 0 16px 0;
}

.bhp-test-preview p {
    color: #5a6c7d;
    margin: 0 0 16px 0;
}

.bhp-test-preview button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: not-allowed;
    opacity: 0.7;
}

.bhp-test-list-preview h4 {
    color: #2c3e50;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e5e9;
}

.bhp-test-item-preview {
    padding: 16px;
    margin: 0 0 12px 0;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.bhp-test-item-preview h5 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.bhp-test-item-preview p {
    color: #5a6c7d;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.bhp-test-item-preview .test-info {
    color: #495057;
    font-size: 12px;
    margin: 0 0 12px 0;
}

.bhp-test-item-preview button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: not-allowed;
    opacity: 0.7;
}

/* User Data Form Styles */
.bhp-user-data-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bhp-user-data-form h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.bhp-user-data-form p {
    margin: 0 0 25px 0;
    color: #495057;
    text-align: center;
    font-size: 16px;
}

.bhp-form-row {
    margin-bottom: 20px;
}

.bhp-form-row label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.bhp-form-row input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.bhp-form-row input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.bhp-form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Test Form Styles */
.bhp-test-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bhp-test-form h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
}

.bhp-test-form .bhp-test-description {
    margin: 0 0 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #495057;
    line-height: 1.6;
}

.bhp-test-form .bhp-test-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 0 30px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.bhp-test-form .bhp-test-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

.bhp-test-form .bhp-test-info .dashicons {
    color: #007cba;
    font-size: 16px;
}

.bhp-question {
    margin: 0 0 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.bhp-question-title {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.bhp-question-text {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 16px;
    line-height: 1.6;
}

.bhp-question-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bhp-answer-option {
    display: block;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.bhp-answer-option input[type="radio"],
.bhp-answer-option input[type="checkbox"] {
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}

.bhp-answer-option .bhp-answer-text {
    display: inline-block;
    vertical-align: middle;
    color: #000;
    margin-left: 4px;
}

.bhp-answer-option:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.bhp-answer-option input[type="radio"],
.bhp-answer-option input[type="checkbox"] {
    margin: 0 12px 0 0;
    flex-shrink: 0;
}

.bhp-answer-option span {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.4;
}

.bhp-question-answers textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

.bhp-question-answers textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.bhp-test-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e1e5e9;
}

.bhp-submit-test-btn {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;
}

.bhp-submit-test-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

/* Timer Styles */
.bhp-test-timer {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.bhp-timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bhp-timer-label {
    font-weight: 600;
    color: #000;
    font-size: 16px;
}

.bhp-timer-countdown {
    font-size: 24px;
    font-weight: bold;
    color: #1976d2;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 8px 16px;
    border-radius: 4px;
    border: 2px solid #2196f3;
    min-width: 80px;
}

/* Test Result Styles */
.bhp-test-result {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bhp-test-result h3 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 600;
}

.bhp-test-result h3:first-child {
    color: #28a745;
}

.bhp-test-result p {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #495057;
}

.bhp-retake-test-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.bhp-retake-test-btn:hover {
    background: #005a87;
}

.bhp-download-certificate-btn {
    display: inline-block;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bhp-download-certificate-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,124,186,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bhp-test-shortcode,
    .bhp-test-list-shortcode .bhp-test-item {
        padding: 16px;
        margin: 0 0 12px 0;
    }
    
    .bhp-test-shortcode .bhp-test-title {
        font-size: 20px;
    }
    
    .bhp-test-shortcode .bhp-test-info,
    .bhp-test-list-shortcode .bhp-test-item-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .bhp-test-list-shortcode .bhp-test-item-title a {
        font-size: 18px;
    }
    
    .bhp-user-data-form,
    .bhp-test-form {
        margin: 10px;
        padding: 20px;
    }
    
    .bhp-test-form .bhp-test-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .bhp-question {
        padding: 20px;
    }
    
    .bhp-answer-option {
        padding: 10px 12px;
    }
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .bhp-certificates-list {
        grid-template-columns: 1fr;
    }
    
    .bhp-certificate-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .bhp-test-container {
        margin: 10px;
        padding: 15px;
    }
    
    .bhp-test-timer {
        position: static;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .bhp-test-info {
        grid-template-columns: 1fr;
    }
    
    .bhp-user-data-fields {
        grid-template-columns: 1fr;
    }
    
    .bhp-matching-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bhp-matching-arrows {
        display: none;
    }
    
    .bhp-question-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .bhp-gdpr-container {
        margin: 10px;
        padding: 15px;
    }
    
    .bhp-gdpr-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .bhp-gdpr-button {
        width: 100%;
        max-width: 250px;
    }
}
/* Overrides to ensure styles apply across themes and caching */
.bhp-test-timer .bhp-timer-label,
.bhp-test-timer .bhp-timer-time {
  color: #000 !important;
}
/* Increase spacing between selector and text */
.bhp-answer-option input[type="radio"],
.bhp-answer-option input[type="checkbox"] {
  margin-right: 16px !important;
}
/* Ensure answer text is black */
.bhp-answer-option .bhp-answer-text {
  color: #000 !important;
}

.bhp-answer-option:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.bhp-answer-option input[type="radio"],
.bhp-answer-option input[type="checkbox"] {
    margin: 0 12px 0 0;
    flex-shrink: 0;
}

.bhp-answer-option span {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.4;
}

.bhp-question-answers textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

.bhp-question-answers textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.bhp-test-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e1e5e9;
}

.bhp-submit-test-btn {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;
}

.bhp-submit-test-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

/* Timer Styles */
.bhp-test-timer {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.bhp-timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bhp-timer-label {
    font-weight: 600;
    color: #000;
    font-size: 16px;
}

.bhp-timer-countdown {
    font-size: 24px;
    font-weight: bold;
    color: #1976d2;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 8px 16px;
    border-radius: 4px;
    border: 2px solid #2196f3;
    min-width: 80px;
}

/* Test Result Styles */
.bhp-test-result {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bhp-test-result h3 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 600;
}

.bhp-test-result h3:first-child {
    color: #28a745;
}

.bhp-test-result p {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #495057;
}

.bhp-retake-test-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.bhp-retake-test-btn:hover {
    background: #005a87;
}

.bhp-download-certificate-btn {
    display: inline-block;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bhp-download-certificate-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,124,186,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bhp-test-shortcode,
    .bhp-test-list-shortcode .bhp-test-item {
        padding: 16px;
        margin: 0 0 12px 0;
    }
    
    .bhp-test-shortcode .bhp-test-title {
        font-size: 20px;
    }
    
    .bhp-test-shortcode .bhp-test-info,
    .bhp-test-list-shortcode .bhp-test-item-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .bhp-test-list-shortcode .bhp-test-item-title a {
        font-size: 18px;
    }
    
    .bhp-user-data-form,
    .bhp-test-form {
        margin: 10px;
        padding: 20px;
    }
    
    .bhp-test-form .bhp-test-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .bhp-question {
        padding: 20px;
    }
    
    .bhp-answer-option {
        padding: 10px 12px;
    }
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .bhp-certificates-list {
        grid-template-columns: 1fr;
    }
    
    .bhp-certificate-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .bhp-test-container {
        margin: 10px;
        padding: 15px;
    }
    
    .bhp-test-timer {
        position: static;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .bhp-test-info {
        grid-template-columns: 1fr;
    }
    
    .bhp-user-data-fields {
        grid-template-columns: 1fr;
    }
    
    .bhp-matching-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bhp-matching-arrows {
        display: none;
    }
    
    .bhp-question-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .bhp-gdpr-container {
        margin: 10px;
        padding: 15px;
    }
    
    .bhp-gdpr-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .bhp-gdpr-button {
        width: 100%;
        max-width: 250px;
    }
}