/* =====================================================
   Automated Reference Check (RC) - Public Form Styles
   ===================================================== */

/* Container styling for public RC forms */
.rc-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

.rc-container h2 {
    color: #23305e;
    margin-bottom: 5px;
}

.rc-container .lead {
    color: #666;
}

/* Candidate note alert */
.rc-candidate-note {
    background: #eef7ff;
    border: 1px solid #bce0fd;
    border-left: 4px solid #337ab7;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 3px;
}

.rc-candidate-note strong {
    display: block;
    margin-bottom: 5px;
    color: #23305e;
}

/* Referee panels */
.rc-referee-panel {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.rc-referee-panel .panel-heading {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 20px;
}

.rc-referee-panel .panel-heading h4 {
    margin: 0;
    font-size: 16px;
    color: #23305e;
}

.rc-referee-panel .panel-body {
    padding: 20px;
}

.rc-referee-panel .panel-body hr {
    margin: 20px 0;
    border-top-color: #e9ecef;
}

.rc-referee-panel .panel-body h5 {
    color: #555;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Type label badge */
.rc-type-badge {
    display: inline-block;
    background: #23305e;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* Consent section */
.rc-consent-section {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 25px;
}

.rc-consent-section h4 {
    margin-top: 0;
    color: #f57f17;
}

.rc-consent-section .checkbox {
    margin-bottom: 10px;
}

.rc-consent-section .checkbox label {
    font-weight: 500;
    color: #333;
}

/* PIN verification page */
.rc-pin-container {
    max-width: 500px;
    margin: 80px auto;
}

.rc-pin-input {
    letter-spacing: 8px;
    font-size: 24px !important;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    padding: 12px !important;
}

/* Success/Thank you pages */
.rc-success-container {
    max-width: 700px;
    margin: 60px auto;
}

.rc-success-container .panel-body {
    padding: 40px;
}

.rc-success-container .fa-check-circle,
.rc-success-container .fa-info-circle {
    margin-bottom: 20px;
}

/* Existing referee status list (candidate add-new mode) */
.rc-existing-referees {
    margin-bottom: 25px;
}

.rc-existing-referees .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rc-existing-referees .referee-name {
    font-weight: 500;
}

.rc-existing-referees .referee-rejected .referee-name {
    text-decoration: line-through;
    color: #999;
}

.rc-existing-referees .referee-type {
    font-size: 12px;
    color: #888;
}

.rc-existing-referees .rejection-reason {
    font-size: 12px;
    color: #d9534f;
    font-style: italic;
}

/* Signature pad */
.rc-signature-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 25px 0;
    background: #fff;
}

.rc-signature-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23305e;
}

.rc-signature-canvas-wrapper {
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    display: inline-block;
}

.rc-signature-canvas-wrapper canvas {
    display: block;
}

/* Question groups */
.rc-question-group {
    margin-bottom: 30px;
}

.rc-question-group h3 {
    color: #23305e;
    font-size: 18px;
    border-bottom: 2px solid #23305e;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.rc-question-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #23305e;
}

.rc-question-item label.rc-question-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.rc-question-item .rc-required {
    color: #d9534f;
}

.rc-question-item .comment-field {
    margin-top: 10px;
}

/* Rating display */
.rc-rating-group {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.rc-rating-group .radio-inline {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.rc-rating-group .radio-inline:hover {
    background: #e8f4fd;
    border-color: #337ab7;
}

.rc-rating-group .radio-inline input[type="radio"] {
    margin-right: 3px;
}

/* Landing page */
.rc-landing-container {
    max-width: 700px;
    margin: 60px auto;
}

.rc-landing-container .panel-body {
    padding: 40px;
}

.rc-landing-container .btn-lg {
    min-width: 180px;
    margin: 5px;
}

/* Admin detail page - fraud guard */
.rc-fraud-match {
    color: #d9534f;
    font-weight: bold;
}

/* Admin detail page - activity log */
.rc-activity-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rc-activity-timeline li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rc-activity-timeline li:last-child {
    border-bottom: none;
}

.rc-activity-timeline .activity-action {
    font-weight: 600;
    color: #23305e;
}

.rc-activity-timeline .activity-time {
    font-size: 11px;
    color: #999;
}

.rc-activity-timeline .activity-note {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rc-container {
        margin-top: 15px;
    }

    .rc-landing-container .btn-lg {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .rc-pin-input {
        letter-spacing: 5px;
        font-size: 20px !important;
    }

    .rc-referee-panel .panel-body {
        padding: 15px;
    }
}
