/* ─── Participant Consent Form Page ─── */
/* Extends profile.css (.profile-hero, .profile-section, .form-grid, .field, ...) */

/* Status banner inside hero */
.consent-status-banner {
    margin-top: 22px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 720px;
    flex-wrap: wrap;
}

.consent-status-banner > span { flex: 1; min-width: 200px; }

.consent-status-loading {
    background: rgba(59, 130, 246, 0.18);
    color: #dbeafe;
}

.consent-status-signed {
    background: rgba(16, 185, 129, 0.18);
    color: #d1fae5;
    border-color: rgba(52, 211, 153, 0.4);
}

.consent-status-missing {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.45);
}

/* Project info readonly grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
}

.info-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.info-label {
    flex: 0 0 200px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.info-value {
    flex: 1;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
}

/* Legal text */
.legal-text {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.7;
    margin: 8px 0 14px;
}

.legal-subhead {
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    margin: 22px 0 10px;
}

.legal-subhead:first-of-type {
    margin-top: 6px;
}

.legal-list {
    margin: 0 0 16px 0;
    padding-left: 22px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.legal-list li {
    margin-bottom: 4px;
}

/* Consent block (fieldset) */
.consent-block {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px 14px;
    margin-bottom: 18px;
    background: #fdfdfd;
}

.consent-block legend {
    padding: 4px 14px;
    background: #1e293b;
    color: white;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.consent-block legend .req {
    color: #fca5a5;
    margin-left: 4px;
}

/* Consent radio cards */
.consent-radio {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 10px;
}

.consent-radio:hover {
    border-color: #93c5fd;
    background: white;
}

.consent-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-radio strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.consent-radio p {
    margin: 0;
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.5;
}

.consent-radio:has(input:checked) {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.consent-radio:has(input[value="no_consent"]:checked) {
    background: #fef2f2;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.consent-radio:has(input[value="no_consent"]:checked) strong {
    color: #991b1b;
}

/* Signature confirm checkbox */
.check-confirm {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    background: #fffbeb;
    border: 1.5px solid #fbbf24;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.check-confirm:has(input:checked) {
    background: #d1fae5;
    border-color: #10b981;
}

.check-confirm input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: #10b981;
    cursor: pointer;
    flex-shrink: 0;
}

.check-confirm span {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
}

/* Secondary PDF button */
.btn-secondary {
    background: white;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}

.btn-secondary:hover:not(:disabled) {
    border-color: #3b82f6;
    color: #1d4ed8;
    background: #eff6ff;
    transform: translateY(-1px);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form actions adjustments for 3-column layout */
.form-actions {
    flex-wrap: wrap;
    gap: 12px;
}

/* Footer tag */
.footer-tag {
    text-align: center;
    margin: 40px 0 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.footer-tag small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .info-label {
        flex: 0 0 100%;
    }
    .consent-block {
        padding: 14px 14px 10px;
    }
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-secondary,
    .btn-save {
        width: 100%;
        justify-content: center;
    }
}
