/* Join Page - TestParticipant */

.join-required-indicator {
    color: #e74c3c;
    font-weight: 600;
}

.join-field-required {
    border-color: #e74c3c;
}

.join-info-short {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
    margin: 0 0 24px 0;
    max-height: 3.2em;
    overflow: hidden;
}

.join-info-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.join-info-popup {
    background: #fff;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 32px 28px;
}

.join-info-popup-logo {
    text-align: center;
    margin-bottom: 20px;
}

.join-info-popup-logo img {
    max-width: 180px;
    height: auto;
}

.join-info-popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
    text-align: center;
    margin-bottom: 16px;
}

.join-info-popup-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.join-info-popup-body p:last-child {
    margin-bottom: 0;
}

.join-info-popup-close {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fb5373 0%, #ff7a93 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.join-info-popup-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(251,83,115,0.35);
}

.join-consent-group {
    margin: 20px 0 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.join-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px 0;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    user-select: none;
}

.join-consent-item:last-child {
    margin-bottom: 0;
}

.join-consent-checkbox {
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    accent-color: #fb5373;
}

.join-consent-checkbox:not(:checked) {
    opacity: 0.85;
}

.join-consent-hint {
    font-size: 12px;
    color: #888;
    margin: 12px 0 0;
    line-height: 1.4;
}

.join-consent-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.join-consent-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 28px 24px 24px;
}

.join-consent-modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #2d2d2d;
    text-align: center;
    margin: 0 0 16px;
    line-height: 1.4;
}

.join-consent-modal-scroll {
    max-height: 55vh;
    overflow-y: auto;
    flex: 1 1 auto;
    padding-right: 4px;
}

.join-consent-modal-scroll p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.join-consent-modal-scroll p:last-child {
    margin-bottom: 0;
}

.join-consent-scroll-hint {
    font-size: 15px;
    font-weight: 700;
    color: #555;
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.5;
}

.join-consent-scroll-hint.is-complete {
    color: #28a745;
}

.join-consent-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.join-consent-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.join-consent-btn-reject {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.join-consent-btn-reject:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.join-consent-btn-approve {
    background: linear-gradient(135deg, #fb5373 0%, #ff7a93 100%);
    color: #fff;
}

.join-consent-btn-approve:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(251,83,115,0.35);
}

.join-consent-btn-approve:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
