/* ── Carebiuro Reviews Form Styles ── */

.cbr-form-wrapper {
    max-width: 760px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
    color: #333;
}

.cbr-form-title {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 24px;
    color: #222;
}

/* ── Fields ── */
.cbr-field {
    margin-bottom: 18px;
}

.cbr-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.cbr-required {
    color: #c0392b;
}

.cbr-field input[type="text"],
.cbr-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.cbr-field input[type="text"]:focus,
.cbr-field textarea:focus {
    border-color: #5b9bd5;
    box-shadow: 0 0 4px rgba(91,155,213,0.3);
}

.cbr-field textarea {
    resize: vertical;
    min-height: 150px;
}

/* ── Star Ratings ── */
.cbr-stars {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.cbr-star {
    font-size: 28px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.15s, transform 0.1s;
    line-height: 1;
    user-select: none;
}

.cbr-star:hover,
.cbr-star.active {
    color: #4a7c3f;   /* dark green like in the screenshot */
}

.cbr-star:hover {
    transform: scale(1.15);
}

/* ── Consent ── */
.cbr-consent-field {
    margin-top: 4px;
}

.cbr-consent-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    cursor: pointer;
}

.cbr-consent-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Action Buttons ── */
.cbr-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
}

.cbr-btn {
    padding: 8px 18px;
    font-size: 14px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.cbr-btn:hover {
    opacity: 0.85;
}

.cbr-btn-return {
    background: #888;
    color: #fff;
}

.cbr-btn-submit {
    background: #3a6ea8;
    color: #fff;
}

.cbr-btn-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

/* ── Attention Box ── */
.cbr-attention-box {
    background: #d9eaf7;
    border: 1px solid #b0cfe8;
    border-radius: 4px;
    padding: 14px 18px;
    margin-top: 20px;
}

.cbr-attention-box strong {
    display: block;
    font-size: 16px;
    color: #2a6099;
    margin-bottom: 6px;
}

.cbr-attention-box p {
    margin: 0;
    font-size: 13px;
    color: #444;
}

/* ── Success / Error Messages ── */
.cbr-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cbr-success-message span {
    font-size: 18px;
    color: #28a745;
}

.cbr-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ── Field hint text ── */
.cbr-field-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.cbr-star-hint {
    font-size: 12px;
    color: #999;
    margin-left: 6px;
    vertical-align: middle;
    font-style: italic;
}
